|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.util.stateMachine.StateMachine com.bbn.openmap.omGraphics.editable.EOMGStateMachine
public class EOMGStateMachine
Field Summary | |
---|---|
static int |
DEFAULT_NUMBER_STATES
|
EditableOMGraphic |
graphic
|
static int |
GRAPHIC_EDIT
The state when the graphic points are in the process of changing. |
static int |
GRAPHIC_SELECTED
The state when an existing graphic is selected, ready for change given the correct input. |
static int |
GRAPHIC_SETOFFSET
The state where an offset point needs to be defined. |
static int |
GRAPHIC_UNDEFINED
The state when a graphic is not there yet, about to be drawn. |
static int |
GRAPHIC_UNSELECTED
The state when an existing graphic is present, but has not been selected. |
int |
NUMBER_STATES
|
protected boolean |
offsetNeeded
|
Fields inherited from class com.bbn.openmap.util.stateMachine.StateMachine |
---|
currentState, resetState, states |
Constructor Summary | |
---|---|
EOMGStateMachine(EditableOMGraphic graphic)
|
Method Summary | |
---|---|
protected State[] |
init()
|
boolean |
isOffsetNeeded()
Check to see if the graphic offset point needs to be defined. |
void |
setEdit()
|
void |
setOffset()
|
void |
setOffsetNeeded(boolean set)
The state machine, from the edit mode, tests this to see if an offset point needs to be defined. |
void |
setSelected()
|
void |
setUndefined()
|
void |
setUnselected()
|
Methods inherited from class com.bbn.openmap.util.stateMachine.StateMachine |
---|
addStates, getResetState, getState, getState, getStates, reset, setMapMouseListenerResponses, setResetState, setResetState, setState, setState, setStateAt, setStates, setStates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public EditableOMGraphic graphic
protected boolean offsetNeeded
public static final int GRAPHIC_UNDEFINED
public static final int GRAPHIC_UNSELECTED
public static final int GRAPHIC_SELECTED
public static final int GRAPHIC_EDIT
public static final int GRAPHIC_SETOFFSET
public static final int DEFAULT_NUMBER_STATES
public int NUMBER_STATES
Constructor Detail |
---|
public EOMGStateMachine(EditableOMGraphic graphic)
Method Detail |
---|
protected State[] init()
public boolean isOffsetNeeded()
public void setOffsetNeeded(boolean set)
public void setUndefined()
public void setUnselected()
public void setSelected()
public void setEdit()
public void setOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |