|
|||||||||
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.JToolBar
schmitzm.geotools.gui.StyleToolBar
public class StyleToolBar
A toolbar to define simple parameters of a layer style.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JToolBar |
---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
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 | |
---|---|
static String |
BORDER_COLOR
Identifies the "border color" (value type Color ) for the
PropertyChangeListener . |
static String |
BORDER_WIDTH
Identifies the "border width" (value type int ) for the
PropertyChangeListener . |
protected ColorInputOption |
borderColor
InputOption to define the border color. |
protected JLabel |
borderColorLabel
Label next to the border color InputOption . |
protected SelectionInputOption.Combo<Integer> |
borderWidth
InputOption to define the border width. |
protected JLabel |
borderWidthLabel
Label next to the border width InputOption . |
static String |
FILL_COLOR
Identifies the "fill color" (value type Color ) for the
PropertyChangeListener . |
protected ColorInputOption |
fillColor
InputOption to define the fill color. |
protected JLabel |
fillColorLabel
Label next to the fill color InputOption . |
protected static Logger |
LOGGER
|
static String |
MARK_SIZE
Identifies the "mark size" (value type int ) for the
PropertyChangeListener . |
static String |
MARK_STYLE
Identifies the "mark style" (value type String ) for the
PropertyChangeListener . |
protected JLabel |
markLabel
Label next to the mark style and size InputOptions . |
protected SelectionInputOption.Combo<Integer> |
markSize
InputOption to define the mark size. |
protected SelectionInputOption.Combo<String> |
markStyle
InputOption to define the mark style. |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
StyleToolBar()
Creates a new tool bar. |
Method Summary | |
---|---|
Style |
createLineStyle()
Creates a line style with the currently set border color and width. |
Style |
createPointStyle()
Creates a point style with the currently set point style, size, fill and border color. |
Style |
createPolygonStyle()
Creates a polygon style with the currently set fill, border color and width. |
protected void |
initGUI()
Creates the GUI. |
void |
optionChanged(InputOption option,
Object oldValue,
Object newValue)
Called whenever one of the input options of this tool bar has changed its value. |
void |
optionGainedFocus(InputOption option)
Called whenever one of the input options of this tool bar gained focus. |
void |
optionLostFocus(InputOption option)
Called whenever one of the input options of this tool bar lost focus. |
Methods inherited from class javax.swing.JToolBar |
---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
public static final String FILL_COLOR
Color
) for the
PropertyChangeListener
.
Container.addPropertyChangeListener(PropertyChangeListener)
,
Constant Field Valuespublic static final String BORDER_COLOR
Color
) for the
PropertyChangeListener
.
Container.addPropertyChangeListener(PropertyChangeListener)
,
Constant Field Valuespublic static final String BORDER_WIDTH
int
) for the
PropertyChangeListener
.
Container.addPropertyChangeListener(PropertyChangeListener)
,
Constant Field Valuespublic static final String MARK_STYLE
String
) for the
PropertyChangeListener
.
Container.addPropertyChangeListener(PropertyChangeListener)
,
Constant Field Valuespublic static final String MARK_SIZE
int
) for the
PropertyChangeListener
.
Container.addPropertyChangeListener(PropertyChangeListener)
,
Constant Field Valuesprotected JLabel fillColorLabel
InputOption
.
protected ColorInputOption fillColor
InputOption
to define the fill color.
protected JLabel borderColorLabel
InputOption
.
protected ColorInputOption borderColor
InputOption
to define the border color.
protected JLabel borderWidthLabel
InputOption
.
protected SelectionInputOption.Combo<Integer> borderWidth
InputOption
to define the border width.
protected JLabel markLabel
InputOptions
.
protected SelectionInputOption.Combo<String> markStyle
InputOption
to define the mark style.
protected SelectionInputOption.Combo<Integer> markSize
InputOption
to define the mark size.
Constructor Detail |
---|
public StyleToolBar()
initGUI()
.
Method Detail |
---|
protected void initGUI()
public Style createPointStyle()
public Style createLineStyle()
public Style createPolygonStyle()
public void optionChanged(InputOption option, Object oldValue, Object newValue)
PropertyChangeEvent
according to the changed input option.
optionChanged
in interface InputOptionListener
option
- Option, die sich geaendert hatoldValue
- alter WertnewValue
- neuer WertFILL_COLOR
,
BORDER_COLOR
,
BORDER_WIDTH
,
MARK_STYLE
,
MARK_SIZE
public void optionLostFocus(InputOption option)
optionLostFocus
in interface InputOptionListener
option
- Option, die den Focus verloren hatpublic void optionGainedFocus(InputOption option)
optionGainedFocus
in interface InputOptionListener
option
- Option, die den Focus erhalten hat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |