|
||||||||||
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.EditBox
Displays spatial model information (bounding area, resolution, title, notes etc) and allows selective editing of values.
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 | |
static int |
BLANK
Blank raster selected. |
static int |
EXISTING_RAST
Allow editing of existing raster (no new surface generation allowed). |
static int |
EXISTING_VECT
Allow editing of existing vector map. |
static int |
FRACTAL
Fractal raster selected. |
static int |
INFO_RAST
Display raster fields for information (read only). |
static int |
INFO_VECT
Display vector fields for information (read only). |
static int |
NEW_RAST
Allow creation of new raster (fractal and polynomial options available). |
static int |
NEW_RAST_DIM
Allow creation of new raster dimensions. |
static int |
NEW_VECT
Allow creation of new vector map. |
static int |
NEW_VECT_DIM
Allow creation of new vector dimensions. |
static int |
POLYNOMIAL
Polynomial raster selected. |
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 | |
EditBox(GISFrame gisFrame,
RasterMap rast,
RasterMap origRast)
Creates a dialogue box for editing existing raster details. |
|
EditBox(GISFrame gisFrame,
SpatialObject spObj,
SpatialObject origSpObject,
int editType)
Creates a dialogue box for editing or displaying spatial model details. |
|
EditBox(GISFrame gisFrame,
VectorMap vect,
VectorMap origVect)
Creates a dialogue box for editing existing vector map details. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Checks for button presses and updates boundaries if 'Reset' button pressed. |
void |
changedUpdate(DocumentEvent docEvent)
Responds to a change in one of the bounding text fields by checking input is valid and updating raster row and column sizes (if object is a raster) and interpolation/subset options. |
boolean |
checkInput()
Checks input parameters are legal before finishing. |
float |
getFracDimension()
Returns the fractal dimension identified by the user. |
boolean |
getInterpolate()
Reports whether interpolation of exisiting raster is required. |
int |
getNewRastType()
Reports the type of newraster to be created. |
String |
getNotes()
Returns the new set of notes associated with the raster after it has been edited. |
SpatialObject |
getOriginalSpatialObject()
Reports the original spatial object of which this edited one is based. |
String |
getPolynomial()
Returns the polynomial expression identified by the user. |
RasterMap |
getRaster()
Reports the raster that has been edited. |
boolean |
getSubset()
Reports whether subsetting of exisiting raster is required. |
VectorMap |
getVector()
Reports the vector map that has been edited. |
void |
insertUpdate(DocumentEvent docEvent)
Responds to an insert in one of the bounding text fields by checking input is valid and updating row and column sizes and interpolation/subset options. |
void |
itemStateChanged(ItemEvent event)
Checks to see if any of the raster creation types have changed and updates the user inferface appropriately. |
void |
removeUpdate(DocumentEvent docEvent)
Responds to a remove event in one of the bounding text fields by checking input is valid and updating row and column sizes and interpolation/subset options. |
void |
updateFromRubberband(Footprint bounds)
Updates the boundary boxes from values in a graphically selected rubberband box. |
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 |
Field Detail |
public static final int INFO_RAST
public static final int NEW_RAST
public static final int EXISTING_RAST
public static final int NEW_RAST_DIM
public static final int INFO_VECT
public static final int NEW_VECT
public static final int EXISTING_VECT
public static final int NEW_VECT_DIM
public static final int BLANK
public static final int FRACTAL
public static final int POLYNOMIAL
Constructor Detail |
public EditBox(GISFrame gisFrame, RasterMap rast, RasterMap origRast)
gisFrame
- Frame from which dialogue was called.rast
- Raster spatial object to edit.origRast
- Original raster map that can be replaced with the edited version,
or null if an existing raster map is not to be replaced.public EditBox(GISFrame gisFrame, VectorMap vect, VectorMap origVect)
gisFrame
- Frame from which dialogue was called.vect
- Vector spatial object to edit.origVect
- Original vector map that can be replaced with the edited version,
or null if an existing vector map is not to be replaced.public EditBox(GISFrame gisFrame, SpatialObject spObj, SpatialObject origSpObject, int editType)
gisFrame
- Frame from which dialogue was called.spObj
- Spatial object to edit.origSpObject
- Original spatial object that can be replaced with the edited version,
or null if an existing object is not to be replaced.editType
- Type of spatial object to edit/view (NEW_RAST/VECT/NEW_RAST_DIM,
EXISTING_RAST/VECT or INFO_RAST/VECT).Method Detail |
public boolean getInterpolate()
public boolean getSubset()
public int getNewRastType()
public float getFracDimension()
public String getPolynomial()
public String getNotes()
public RasterMap getRaster()
public VectorMap getVector()
public SpatialObject getOriginalSpatialObject()
public void itemStateChanged(ItemEvent event)
itemStateChanged
in interface ItemListener
event
- Item selection event.public void updateFromRubberband(Footprint bounds)
updateFromRubberband
in interface RubberbandListener
bounds
- New geographical boundaries.public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Action event representing button press.public void changedUpdate(DocumentEvent docEvent)
changedUpdate
in interface DocumentListener
docEvent
- Event representing a change in a text field.public void insertUpdate(DocumentEvent docEvent)
insertUpdate
in interface DocumentListener
docEvent
- Event representing an insert in a text field.public void removeUpdate(DocumentEvent docEvent)
removeUpdate
in interface DocumentListener
docEvent
- Event representing an insert in a text field.public boolean checkInput()
checkInput
in class JWDialogue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |