public class ListStateMachine extends EOMGStateMachine
DEFAULT_NUMBER_STATES, graphic, GRAPHIC_EDIT, GRAPHIC_SELECTED, GRAPHIC_SETOFFSET, GRAPHIC_UNDEFINED, GRAPHIC_UNSELECTED, NUMBER_STATES, offsetNeeded
currentState, resetState, states
Constructor and Description |
---|
ListStateMachine(EditableOMGraphicList list) |
Modifier and Type | Method and Description |
---|---|
protected State[] |
init() |
boolean |
isOffsetNeeded()
Check to see if the graphic offset point needs to be defined.
|
void |
setState(int state)
Set the current state to the state residing in the vector at
the given index.
|
setEdit, setOffset, setOffsetNeeded, setSelected, setUndefined, setUnselected
addStates, getResetState, getState, getState, getStates, reset, setMapMouseListenerResponses, setResetState, setResetState, setState, setStateAt, setStates, setStates
public ListStateMachine(EditableOMGraphicList list)
protected State[] init()
init
in class EOMGStateMachine
public boolean isOffsetNeeded()
isOffsetNeeded
in class EOMGStateMachine
public void setState(int state)
StateMachine
setState
in class StateMachine
state
- the index of the current state.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details