public class RenderContextEvent extends Event implements IEventArgs
com.yworks.util.IEventHandler
used by PrepareRenderContextEvent.
This event argument can be used to modify the Context
during CanvasControl.exportContent(IRenderContext)
and CanvasControl.updateImmediately()
CanvasControl#addPrepareRenderContextListener(com.yworks.util.IEventHandler)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static EventType<RenderContextEvent> |
ANY
Common supertype for all render context event types.
|
static EventType<RenderContextEvent> |
PREPARE
Event type for the event that can be used to modify the
getContext()
during com.yworks.yfiles.canvas.CanvasControl#createContentVisual(com.yworks.yfiles.drawing.IRenderContext)
and com.yworks.yfiles.canvas.CanvasControl#update() . |
consumed, eventType, NULL_SOURCE_TARGET, target
source
EMPTY
Constructor and Description |
---|
RenderContextEvent(IRenderContext context)
Initializes a new instance of the
PrepareRenderContextEventArgs class. |
Modifier and Type | Method and Description |
---|---|
IRenderContext |
getContext()
Gets the context.
|
void |
setContext(IRenderContext value)
Sets the context.
|
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
getSource, toString
public static final EventType<RenderContextEvent> ANY
public static final EventType<RenderContextEvent> PREPARE
getContext()
during com.yworks.yfiles.canvas.CanvasControl#createContentVisual(com.yworks.yfiles.drawing.IRenderContext)
and com.yworks.yfiles.canvas.CanvasControl#update()
.public RenderContextEvent(IRenderContext context)
PrepareRenderContextEventArgs
class.context
- The initial context which can be modified by the event handlers using the Context
property.public final IRenderContext getContext()
NullPointerException
- If the argument is null
.null
.setContext(IRenderContext)
public final void setContext(IRenderContext value)
NullPointerException
- If the argument is null
.value
- The context that can be modified, wrapped, or exchanged by the event handlers. This value may not be null
.getContext()