public class PolyStateMachine extends EOMGStateMachine
Modifier and Type | Field and Description |
---|---|
static int |
POLY_ADD_NODE |
static int |
POLY_ADD_POINT |
static int |
POLY_DELETE_NODE |
DEFAULT_NUMBER_STATES, graphic, GRAPHIC_EDIT, GRAPHIC_SELECTED, GRAPHIC_SETOFFSET, GRAPHIC_UNDEFINED, GRAPHIC_UNSELECTED, NUMBER_STATES, offsetNeeded
currentState, resetState, states
Constructor and Description |
---|
PolyStateMachine(EditableOMPoly p) |
Modifier and Type | Method and Description |
---|---|
protected State[] |
init() |
void |
setAddNode()
State where a node is duplicated if you click on it.
|
void |
setAddPoint()
State where points are added to the end of the polyline.
|
void |
setDeleteNode()
State where a node is deleted if you click on it.
|
void |
setSelected() |
void |
setUnselected() |
isOffsetNeeded, setEdit, setOffset, setOffsetNeeded, setUndefined
addStates, getResetState, getState, getState, getStates, reset, setMapMouseListenerResponses, setResetState, setResetState, setState, setState, setStateAt, setStates, setStates
public static final int POLY_ADD_POINT
public static final int POLY_ADD_NODE
public static final int POLY_DELETE_NODE
public PolyStateMachine(EditableOMPoly p)
protected State[] init()
init
in class EOMGStateMachine
public void setAddPoint()
public void setAddNode()
public void setDeleteNode()
public void setSelected()
setSelected
in class EOMGStateMachine
public void setUnselected()
setUnselected
in class EOMGStateMachine
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details