public class EOMGStateMachine extends StateMachine
Modifier and Type | Field and Description |
---|---|
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 |
currentState, resetState, states
Constructor and Description |
---|
EOMGStateMachine(EditableOMGraphic graphic) |
Modifier and Type | Method and Description |
---|---|
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() |
addStates, getResetState, getState, getState, getStates, reset, setMapMouseListenerResponses, setResetState, setResetState, setState, setState, setStateAt, setStates, setStates
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
public EOMGStateMachine(EditableOMGraphic graphic)
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()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details