|
|||||||||
| 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.DigitizeBox
public class DigitizeBox
Allows vector screen digitization to take place including the user selection of object type (POINT, LINE, AREA) and object attribute.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces 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 | |
|---|---|
DigitizeBox(VectorMap vectorMap,
GISFrame gisFrame)
Creates a non-modal screen digitization box for inputting coordinates, attribute and object type. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Checks for button presses and clears or stores the last digitized points. |
void |
changedUpdate(DocumentEvent docEvent)
Responds to a change in attribute text field and checks whether the attribute is valid. |
boolean |
checkInput()
Checks that the last digitized object was stored before closing. |
void |
commitChanges()
Commits changes to digitized vector map. |
void |
footprintReceived(Footprint fp)
Responds to a broadcast coordinate pair and updates vector object accordingly. |
VectorMap |
getDigitizedVectorMap()
Deprecated. There should now be no need to extract the original and digitized vectors. Instead, call commitChanges to combine the
two vectors. |
VectorMap |
getOriginalVectorMap()
Deprecated. There should now be no need to extract the original and digitized vectors. Instead, call commitChanges to combine the
two vectors. |
void |
insertUpdate(DocumentEvent docEvent)
Responds to an insert in the attribute filed and ensures it is valid. |
void |
removeUpdate(DocumentEvent docEvent)
Responds to the removal of a character in the attribute filed and ensures it is valid. |
| Methods inherited from class jwo.utils.gui.JWDialogue |
|---|
addDialogueListener, closedown, getContentPane, isChanged, removeDialogueListener, setFullBackground |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, 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 DigitizeBox(VectorMap vectorMap,
GISFrame gisFrame)
vectorMap - Vector map in which to add or edit digitized objects.gisFrame - Frame from which dialogue was called.| Method Detail |
|---|
public VectorMap getOriginalVectorMap()
commitChanges to combine the
two vectors.
public void commitChanges()
public VectorMap getDigitizedVectorMap()
commitChanges to combine the
two vectors.
public boolean checkInput()
checkInput in class JWDialoguepublic void footprintReceived(Footprint fp)
footprintReceived in interface FootprintListenerfp - Footprint broadcast. If MERWidth is negative, the point
is considered to represent an interior ring (hole or island) if part of a polygon
object.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - Action event representing button press.public void changedUpdate(DocumentEvent docEvent)
changedUpdate in interface DocumentListenerdocEvent - Event representing a change in the attribute text field.public void insertUpdate(DocumentEvent docEvent)
insertUpdate in interface DocumentListenerdocEvent - Event representing an insert in a text field.public void removeUpdate(DocumentEvent docEvent)
removeUpdate in interface DocumentListenerdocEvent - Event representing an insert in a text field.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||