|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
jwo.utils.gui.JWDialogue
jwo.landserf.gui.VectAppearanceBox
Allows vector appearance to be controlled.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class jwo.utils.gui.JWDialogue |
DIALOGUE, MONOLOGUE |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
VectAppearanceBox(GISFrame gisFrame,
float pointSize,
boolean pointFixed,
float lineWidth,
boolean lineFixed,
float trans,
Color boundColour,
int style,
boolean showLabels,
Color labelBgColour,
Color labelFgColour,
float labelSize)
Create a dialog allowing vector appearance to be changed. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Responds to a press of the colour editor by bringing up a colour chooser and allowing the polygon boundary colour to be redefined. |
boolean |
checkInput()
Checks that line width value is appropriate. |
Color |
getBoundaryColour()
Reports the colour to use for polygon boundaries. |
Color |
getLabelBackgroundColour()
Reports the colour to use for label backgrounds. |
Color |
getLabelForegroundColour()
Reports the colour to use for label foregrounds. |
float |
getLabelSize()
Reports the font size at which to display labels. |
float |
getLineWidth()
Reports the line width (in pixels) chosen by the user. |
float |
getPointSize()
Reports the size of point symbols (in pixels) chosen by the user. |
int |
getRenderingStyle()
Reports the rendering style for all vectors. |
float |
getTransparency()
Reports the transparency of polygon interiors selected by user. |
boolean |
isLineFixed()
Reports whether line width should be fixed as user zooms in/out. |
boolean |
isPointFixed()
Reports whether point symbol size should be fixed as user zooms in/out. |
boolean |
isShowLabels()
Reports whether point lables are to be shown or not. |
void |
itemStateChanged(ItemEvent event)
Responds to a checkbox item being changed by disabling non checked parameters. |
void |
stateChanged(ChangeEvent e)
Responds to a change in the font size slider by altering the size of the displayed text. |
Methods inherited from class jwo.utils.gui.JWDialogue |
addDialogueListener, closedown, getContentPane, isChanged, removeDialogueListener, setFullBackground |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VectAppearanceBox(GISFrame gisFrame, float pointSize, boolean pointFixed, float lineWidth, boolean lineFixed, float trans, Color boundColour, int style, boolean showLabels, Color labelBgColour, Color labelFgColour, float labelSize)
gisFrame
- GUI holding vector to be displayed.pointFixed
- Point size will remain fixed size with zooming if true.lineWidth
- Width of vector lines in pixels (can be fractional).lineFixed
- Line width will remain fixed size with zooming if true.trans
- Transparency scaled between 0 and 1 for polygon interiors.boundColour
- Boundary colour to use for polygons.style
- Style of rendinering. Either VectorMap.QUALITY or VectorMap.SPEED.showLabels
- Point lables shown if true.labelBgColour
- Label background colour.labelFgColour
- Lable foreground colour.labelSize
- Size of label text in font point units.VectorMap.QUALITY
,
VectorMap.SPEED
Method Detail |
public boolean checkInput()
checkInput
in class JWDialogue
public void itemStateChanged(ItemEvent event)
itemStateChanged
in interface ItemListener
event
- Checkbox item that has changed.public float getPointSize()
public boolean isPointFixed()
public float getLineWidth()
public boolean isLineFixed()
public float getTransparency()
public Color getBoundaryColour()
public Color getLabelBackgroundColour()
public Color getLabelForegroundColour()
public boolean isShowLabels()
public float getLabelSize()
public int getRenderingStyle()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Action event associated with the button press.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
e
- Slider change event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |