org.arakhne.neteditor.android.actionmode
public class ActionModeManager extends ActionModeManager<Figure,DroidViewGraphics2D,Color> implements FigureActionModeManager
Modes for a given workspace.
Events are passed to the Modes for handling. The submodes are
prioritized according to their order on a stack, i.e., the last
Mode added gets the first chance to handle an Event.
This ModeManager takes into account an exclusive Mode. An exclusive
mode is a Mode was received all events before the
stacked modes. If an event was not eated by the exclusive mode,
the exclusive mode was destroy and the event was ignored.
| Modifier and Type | Field and Description |
|---|---|
static int |
REPAINTING_INFLATING_SIZE
Size of the inflating of the repaint rectangle
|
static int |
SELECTION_FRAME_SIZE
Size of the selection frame.
|
| Constructor and Description |
|---|
ActionModeManager(UUID viewID,
ActionModeOwner component) |
| Modifier and Type | Method and Description |
|---|---|
ActionModeOwner |
getModeManagerOwner() |
SelectionMode |
getSelectionMode()
Replies the current mode of selection.
|
void |
setSelectionMode(SelectionMode mode)
Change the mode of selection.
|
void |
startMode(ActionMode<Figure,DroidViewGraphics2D,Color> mode)
Change the mode of selection.
|
addModeListener, addSelectableInteractionListener, beginMode, fireActionPerformed, fireActionPerformed, fireActionPerformed, fireError, fireFigureDeletionPerformed, firePopupPerformed, getFigureHitArea, getLastPointerEvent, getModeFromBottom, getModeFromTop, getModes, getPointedFigure, getViewID, isExclusiveMode, isExclusiveMode, isPointerInFigureShape, isResetHitFigureWhenPointerReleased, keyPressed, keyReleased, keyTyped, paint, pointerClicked, pointerDragged, pointerLongClicked, pointerMoved, pointerPressed, pointerReleased, removeModeListener, removeSelectableInteractionListener, resetModes, setResetHitFigureWhenPointerReleasedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddModeListener, addSelectableInteractionListener, removeModeListener, removeSelectableInteractionListenerpublic static final int SELECTION_FRAME_SIZE
public static final int REPAINTING_INFLATING_SIZE
public ActionModeManager(UUID viewID, ActionModeOwner component)
viewID - is the identifier of the view associated to this manager.component - is a reference to the component that is
containing this mode manager.public ActionModeOwner getModeManagerOwner()
getModeManagerOwner in class ActionModeManager<Figure,DroidViewGraphics2D,Color>public void setSelectionMode(SelectionMode mode)
FigureActionModeManagersetSelectionMode in interface FigureActionModeManagerpublic SelectionMode getSelectionMode()
FigureActionModeManagergetSelectionMode in interface FigureActionModeManagerpublic void startMode(ActionMode<Figure,DroidViewGraphics2D,Color> mode)
FigureActionModeManagerstartMode in interface FigureActionModeManagerCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor