public class PrepareRenderContextEventArgs extends RoutedEventArgs
IEventHandler used by
CanvasControl#raisePrepareRenderContextEvent(PrepareRenderContextEventArgs).
This event argument can be used to modify the Context during CanvasControl.exportContent(IRenderContext)
and CanvasControl.invalidate()
CanvasControl#addPrepareRenderContextListener(com.yworks.yfiles.utils.IEventHandler)EMPTY| Constructor and Description |
|---|
PrepareRenderContextEventArgs(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.
|
getOriginalSource, isHandled, setHandledpublic PrepareRenderContextEventArgs(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()