public class CanvasEvent extends Event implements IEventArgs
com.yworks.yfiles.canvas.CanvasControl
to notify when the control is updated.Modifier and Type | Field and Description |
---|---|
static EventType<CanvasEvent> |
ANY
Common supertype for all canvas event types.
|
static EventType<CanvasEvent> |
UPDATED
Event type for events that will be triggered after the
visual tree has been updated . |
static EventType<CanvasEvent> |
UPDATING
Event type for events that will be triggered before the
visual tree is updated . |
consumed, eventType, NULL_SOURCE_TARGET, target
source
EMPTY
Constructor and Description |
---|
CanvasEvent(CanvasControl control,
EventTarget eventTarget,
EventType<? extends Event> eventType)
Returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
CanvasControl |
getCanvasControl()
Returns the
CanvasControl that is the source of this event. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
getSource, toString
public static final EventType<CanvasEvent> ANY
public static final EventType<CanvasEvent> UPDATED
visual tree has been updated
.public static final EventType<CanvasEvent> UPDATING
visual tree is updated
.public CanvasEvent(CanvasControl control, EventTarget eventTarget, EventType<? extends Event> eventType)
public CanvasControl getCanvasControl()
CanvasControl
that is the source of this event.