|
||||||||||
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)
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. |
float |
getLineWidth()
Reports the line width (in pixels) chosen by the user. |
float |
getPointSize()
Reports the point size (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. |
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)
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.VectorMap.QUALITY
,
VectorMap.SPEED
Method Detail |
public boolean checkInput()
checkInput
in class JWDialogue
public float getPointSize()
public boolean isPointFixed()
public float getLineWidth()
public boolean isLineFixed()
public float getTransparency()
public Color getBoundaryColour()
public int getRenderingStyle()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Action event associated with the button press.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |