Events

From Emitrom

Jump to: navigation, search

Back to Index


Contents

Node events

Lienzo Nodes support event handling for Mouse Events, Touch Events and Drag Events (both with the mouse and touch interfaces.)

Each event has a corresponding Event Handler and a Node method to register the Event Handler:

Hand-point.png Event Package Javadoc

Node Events Node Event Handlers Event related methods
in the Node class
Node Event Hierarchy Node Event Handlers Event related methods in the Node class

TODO Add here a note describing when we finish the functionality how to detect if we used LEFT, RIGHT or CENTER Click Button.

Drag related events

Only IPrimitive nodes (i.e. Groups and Shapes) can be dragged.

Hand-point.png See Dragging for more information Hand-point.png Mouse Event demo

Viewport events

Viewport Transform Changed events

To listen for changes in the Viewport Transform attribute, create a ViewportTransformChangedHandler and add it with Viewport.addViewportTransformChangedHandler().

Hand-point.png See ViewportTransformChangedHandler.

Resize events

TODO link to resize event page

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox