|
|||||||||
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
schmitzm.swing.JPanel
schmitzm.geotools.gui.GridPanel
public class GridPanel
Diese Klasse stellt eine horizontale oder vertikale Koordinaten-Leiste (Grid)
dar, die an ein JMapPane
gekoppelt ist.
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 MathTransform |
gridToMap
Transformation von CRS des Koordinaten-Rasters zu Karten-CRS |
static int |
HOR_HEIGHT
Container-Hoehe bei horizontalem Grid. |
static int |
HORIZONTAL
Flag fuer ein horizontales Grid. |
protected JMapPane |
mapPane
Karte, an der die Koordinaten-Leiste ausgerichtet wird. |
protected MathTransform |
mapToGrid
Transformation von Karten-CRS zu CRS des Koordinaten-Rasters |
static int |
VERT_WIDTH
Container-Breite bei vertikalem Grid. |
static int |
VERTICAL
Flag fuer ein vertikales Grid. |
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 | |
---|---|
GridPanel(int orientation,
JMapPane mapPane)
Erzeugt eine Koordinaten-Leiste fuer ein JMapPane . |
Method Summary | |
---|---|
int |
getOrientation()
Liefert die Orientierung der Koordinaten-Leiste. |
boolean |
isHorizontal()
Prueft, ob es sich um eine horizontale Koordinaten-Leiste handelt. |
boolean |
isVertical()
Prueft, ob es sich um eine vertikale Koordinaten-Leiste handelt. |
void |
paint(Graphics g)
Zeichnet die Koordinaten-Leiste. |
void |
print(Graphics g)
Nuetzlich wenn die Componente gedruckt (z.B. wenn ein Screenshot gemacht wird) wird. |
Methods inherited from class schmitzm.swing.JPanel |
---|
setBackground, setEnabled |
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 |
---|
public static final int VERT_WIDTH
public static final int HOR_HEIGHT
public static final int HORIZONTAL
public static final int VERTICAL
protected JMapPane mapPane
protected MathTransform mapToGrid
protected MathTransform gridToMap
Constructor Detail |
---|
public GridPanel(int orientation, JMapPane mapPane)
JMapPane
.
orientation
- Orientierung (HORIZONTAL
oder VERTICAL
)mapPane
- Karte an der die Koordinaten-Leiste ausgerichtet wirdMethod Detail |
---|
public int getOrientation()
HORIZONTAL
,
VERTICAL
public boolean isHorizontal()
public boolean isVertical()
public void paint(Graphics g)
paint
in class JComponent
g
- Graphicspublic void print(Graphics g)
print
in class JComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |