|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
skrueger.geotools.MapView
public class MapView
Achtung! Dieser code ist verwuestet TODO DOKU und initialize schöner machen. SK
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected GeoMapPane |
geoMapPane
Komponente, in der die Karten, der Massstab und das Koordinaten-Raster dargestellt werden. |
protected MapPaneStatusBar |
statusBar
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MapView(Component parentGui)
Creates a new MapView . |
|
MapView(Component parentGui,
MapPaneToolBar toolBar)
Creates a new MapView . |
Method Summary | |
---|---|
void |
dispose()
Help the garbage collection |
GeoMapPane |
getGeoMapPane()
|
SelectableXMapPane |
getMapPane()
Liefert den Karten-Bereich der Komponente. |
int |
getSelectedTool()
|
JComponent |
getSidePane()
called by initialize() to fill the left of the XULUMapView Supposed to be overwritten by AtlasMapView or DesignMapView |
JSplitPane |
getSplitPane()
Returns the split pane which divides the layer list from the map panel. |
MapPaneStatusBar |
getStatusBar()
Liefert die Status-Zeile, in der die Koordinaten und Raster-Werte angezeigt werden. |
MapPaneToolBar |
getToolBar()
Returns the tool bar which controls the active mouse actions on the map. |
void |
initialize()
This routine creates the main components of the GUI: The left Side and the map on the right side. |
boolean |
isToolEnabled(Integer tool)
Checks whether a tool is activated. |
void |
setAllToolsEnabled(boolean enabled,
boolean hideOnDisable)
Sets the activation for all tools. |
void |
setSelectedTool(Integer tool)
Sets the active tool. |
void |
setToolEnabled(Integer tool,
boolean enabled,
boolean hideOnDisable)
Sets whether a tool is activated or not. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MapPaneStatusBar statusBar
protected final GeoMapPane geoMapPane
Constructor Detail |
---|
public MapView(Component parentGui, MapPaneToolBar toolBar)
MapView
. A MapView
is a combination of a
GeoMapPane
, a MapContextManagerInterface
on the left, and
some buttons floating over the SelectableXMapPane
public MapView(Component parentGui)
MapView
. A MapView
is a combination of a
GeoMapPane
, a MapContextManagerInterface
on the left, and
some buttons floating over the SelectableXMapPane
Method Detail |
---|
public void initialize()
statusBar
and
splitPane
#adjustSizeOfGeoMapPane()
public MapPaneToolBar getToolBar()
null
, will rather create a defaultpublic JSplitPane getSplitPane()
public void setSelectedTool(Integer tool)
MapPaneToolBar.setSelectedTool(Integer)
.
tool
- One of #TOOL_INFO
, #TOOL_PAN
.. constantspublic void setToolEnabled(Integer tool, boolean enabled, boolean hideOnDisable)
MapPaneToolBar.setButtonEnabled(int, boolean, boolean)
.
tool
- tool IDenabled
- if true
the tool becomes availablehideOnDisable
- if true
the button is also hidden if enabled
is false
public void setAllToolsEnabled(boolean enabled, boolean hideOnDisable)
MapPaneToolBar.setAllToolsEnabled(boolean, boolean)
.
enabled
- if true
all tool becomes availablehideOnDisable
- if true
the buttons are also hidden if enabled
is false
public boolean isToolEnabled(Integer tool)
MapPaneToolBar#isButtonEnabled(Integer)
.
tool
- tool ID
false
if an unknown ID is specifiedpublic JComponent getSidePane()
public MapPaneStatusBar getStatusBar()
public final SelectableXMapPane getMapPane()
public GeoMapPane getGeoMapPane()
public int getSelectedTool()
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |