|
|||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
This is a base class for chainable controllers handling user input to a GraphCanvas.
| Constructor Summary | |
|---|---|
InputMode(/*GraphCanvas*/ canvas)
This is a base class for chainable controllers handling user input to a GraphCanvas. |
|
| Method Summary | |
|---|---|
|
_attachEventListeners()
rewrite this function in derived classes to attach the event listeners needed for the specific subclass. |
|
_detachEventListeners()
rewrite this function in derived classes to detach all event listeners used in the specific subclass. |
|
activate()
activates this input mode. |
|
deactivate()
deactivates this input mode and any descendant input mode. |
Graph |
getGraph()
returns the graph of the graph canvas for this input mode. |
Boolean |
isActive()
returns true, if this input mode or a descendant input mode is active. |
|
onReactivate(/*InputMode*/ child)
is called after this mode was reactivated. |
|
restoreCursor()
restores the cursor for the graph canvas (see setCursor()). |
Boolean |
setChild(/*InputMode*/ another)
adds another InputMode as a child of this InputMode, if this InputMode is active. |
|
setCursor(/*String*/ cursor, /*String?*/ oldCursor)
sets the cursor for the graph canvas to the give style (e.g., "pointer"). |
|
setEdgeTestSensitivity(/*float*/ sensitivity)
sets the edge test sensitivity in world units for the hit test belonging to this input mode. |
| Constructor Detail |
|---|
InputMode(/*GraphCanvas*/ canvas)
| Method Detail |
|---|
_attachEventListeners()
_detachEventListeners()
activate()
deactivate()
Graph getGraph()
Boolean isActive()
onReactivate(/*InputMode*/ child)
restoreCursor()
Boolean setChild(/*InputMode*/ another)
setCursor(/*String*/ cursor, /*String?*/ oldCursor)
setEdgeTestSensitivity(/*float*/ sensitivity)