Revision 7566 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/gui/panels/MapOverViewPalette.java
MapOverViewPalette.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import com.iver.andami.PluginServices; |
6 | 6 |
import com.iver.andami.ui.mdiManager.IWindow; |
7 |
import com.iver.andami.ui.mdiManager.IWindowTransform; |
|
7 | 8 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
9 |
import com.iver.cit.gvsig.gui.IView; |
|
8 | 10 |
import com.iver.cit.gvsig.gui.MapOverview; |
11 |
import com.iver.cit.gvsig.gui.View; |
|
9 | 12 |
|
10 |
public class MapOverViewPalette extends JPanel implements IWindow{ |
|
13 |
public class MapOverViewPalette extends JPanel implements IWindow, IWindowTransform{
|
|
11 | 14 |
|
12 | 15 |
private MapOverview mov; |
16 |
private View view; |
|
13 | 17 |
|
14 |
public MapOverViewPalette(MapOverview mapOverView) { |
|
18 |
public MapOverViewPalette(MapOverview mapOverView,IView view) {
|
|
15 | 19 |
super(); |
16 | 20 |
mov = mapOverView; |
21 |
this.view=(View)view; |
|
17 | 22 |
initialize(); |
18 | 23 |
this.add(mov); |
19 | 24 |
} |
... | ... | |
40 | 45 |
return m_viewinfo; |
41 | 46 |
} |
42 | 47 |
|
48 |
|
|
49 |
public void toPalette() { |
|
50 |
view.toPalette(); |
|
51 |
} |
|
52 |
|
|
53 |
|
|
54 |
public void restore() { |
|
55 |
view.restore(); |
|
56 |
} |
|
57 |
|
|
58 |
|
|
59 |
public boolean isPalette() { |
|
60 |
return true; |
|
61 |
} |
|
62 |
|
|
43 | 63 |
} |
Also available in: Unified diff