documentationfor yFiles for HTML 3.0.0.3

Usages of IRenderContext

Properties

contextin PrepareRenderContextEventArgsGets or sets the context.

Method Return Values

createRenderContext ()in CanvasComponentCreates an appropriate IRenderContext that can be used to create visuals using IVisualCreator implementations.
createRenderContext (CanvasComponent)in SvgExportReturns an initialized IRenderContext and changes the given transform and the clip bounds such that a part of the given CanvasComponent instance can be exported to an image.

Method Parameters

createButton (IRenderContext, boolean, Size)in CollapsibleNodeStyleDecoratorCreates the button's svg element.
createVisual (IRenderContext, IEdge)in CompositeEdgeStyleCreates the visual by delegating to all styles.
updateVisual (IRenderContext, Visual, IEdge)in CompositeEdgeStyleUpdates the visual by delegating to all styles.
createVisual (IRenderContext, ILabel)in CompositeLabelStyleCreates the visual by delegating to all styles.
updateVisual (IRenderContext, Visual, ILabel)in CompositeLabelStyleUpdates the visual by delegating to all styles.
createVisual (IRenderContext, INode)in CompositeNodeStyleCreates the visual by delegating to all styles.
updateVisual (IRenderContext, Visual, INode)in CompositeNodeStyleUpdates the visual by delegating to all styles.
createVisual (IRenderContext, IPort)in CompositePortStyleCreates the visual by delegating to all styles.
updateVisual (IRenderContext, Visual, IPort)in CompositePortStyleUpdates the visual by delegating to all styles.
createVisual (IRenderContext, IEdge)in DelegatingEdgeStyleCreates the visual with the style from getStyle and the edge from getEdge.
updateVisual (IRenderContext, Visual, IEdge)in DelegatingEdgeStyleUpdates the visual with the style from getStyle and the edge from getEdge.
createVisual (IRenderContext, ILabel)in DelegatingLabelStyleCreates the visual with the style from getStyle and the label from getLabel.
updateVisual (IRenderContext, Visual, ILabel)in DelegatingLabelStyleUpdates the visual with the style from getStyle and the label from getLabel.
createVisual (IRenderContext, INode)in DelegatingNodeStyleCreates the visual with the style from getStyle and the node from getNode.
updateVisual (IRenderContext, Visual, INode)in DelegatingNodeStyleUpdates the visual with the style from getStyle and the node from getNode.
createVisual (IRenderContext, IPort)in DelegatingPortStyleCreates the visual with the style from getStyle and the port from getPort.
updateVisual (IRenderContext, Visual, IPort)in DelegatingPortStyleUpdates the visual with the style from getStyle and the port from getPort.
addArrows (IRenderContext, SVGGElement, IEdge, GeneralPath, IArrow, IArrow)in EdgeStyleBaseAdds the arrows to a given container.
createVisual (IRenderContext, IEdge)in EdgeStyleBaseCreates the visual.
updateArrows (IRenderContext, SVGGElement, IEdge, GeneralPath, IArrow, IArrow)in EdgeStyleBaseUpdates the arrows in a given container.
updateVisual (IRenderContext, TVisual, IEdge)in EdgeStyleBaseUpdates the visual previously created by createVisual.
createLayoutTransform (IRenderContext, IOrientedRectangle, boolean)in LabelStyleBaseCreates a transform matrix that can be applied to a Visual to arrange it according to the given layout and autoFlip rule.
createVisual (IRenderContext, ILabel)in LabelStyleBaseCreates the visual.
updateVisual (IRenderContext, TVisual, ILabel)in LabelStyleBaseUpdates the visual previously created by createVisual.
createVisual (IRenderContext, INode)in NodeStyleBaseCreates the visual representation for node.
updateVisual (IRenderContext, TVisual, INode)in NodeStyleBaseUpdates a visual representation for node previously created by createVisual.
createVisual (IRenderContext, IEdge)in PathEdgeStyleBaseCreates the visualization for the edge's path.
getObstacles (IRenderContext, IEdge)in PathEdgeStyleBaseReturns getCroppedPath unless isVisible yields false for the provided context and clip.
updateVisual (IRenderContext, Visual, IEdge)in PathEdgeStyleBaseUpdates the visual previously created by createVisual.
createVisual (IRenderContext, IPort)in PortStyleBaseCreates the visual.
updateVisual (IRenderContext, TVisual, IPort)in PortStyleBaseUpdates the visual previously created by createVisual.
createVisual (IRenderContext, IStripe)in StripeStyleBaseCreates the visual.
updateVisual (IRenderContext, TVisual, IStripe)in StripeStyleBaseUpdates the visual previously created by createVisual.
addBridges (IRenderContext, GeneralPath, IBridgeCreator?)in BridgeManagerCore method that will add bridges to a GeneralPath using the IBridgeCreator callback to determine the type of the bridges.
getObstacleHash (IRenderContext)in BridgeManagerGets a hash code that describes the current state of the obstacles.
insertDefaultCustomBridge (IRenderContext, GeneralPath, Point, Point, number)in BridgeManagerImplementation that will be called by the default value of the defaultBridgeCreator to satisfy requests to createCustomBridge.
registerObstacle (IRenderContext, GeneralPath)in BridgeManagerDynamically registers an obstacle path with the context during the rendering.
registerObstacleCubicCurve (IRenderContext, Point, Point, Point, Point)in BridgeManagerDynamically registers a single obstacle cubic curve with the context during the rendering.
registerObstacleLine (IRenderContext, Point, Point)in BridgeManagerDynamically registers a single obstacle line with the context during the rendering.
registerObstacleQuadCurve (IRenderContext, Point, Point, Point)in BridgeManagerDynamically registers a single obstacle quadratic curve with the context during the rendering.
registerObstacles (IRenderContext)in BridgeManagerCalled to initialize the context with the obstacles.
exportContent (IRenderContext)in CanvasComponentExports the graphical content for this CanvasComponent.
getGraph (IRenderContext)in GraphObstacleProviderHelper method that retrieves the IGraph to use from the context
getObstacles (IRenderContext)in GraphObstacleProviderIterates over all edges and nodes to query an IObstacleProvider from the IModelItem's lookup.
paintEdge (IRenderContext, CanvasRenderingContext2D, IEdge)in GraphOverviewRendererCallback that paints the specified edge.
paintGroupNode (IRenderContext, CanvasRenderingContext2D, INode)in GraphOverviewRendererCallback method that paints the specified node.
paintNode (IRenderContext, CanvasRenderingContext2D, INode)in GraphOverviewRendererCallback method that paints the specified node.
render (IRenderContext, CanvasRenderingContext2D)in HtmlCanvasVisualPaints onto the context using HTML Canvas operations.
create ()in IBridgeCreator
createCustomBridge (IRenderContext, GeneralPath, Point, Point, number)in IBridgeCreatorCalled by the BridgeManager if the getCrossingStyle method yields CUSTOM to actually insert a bridge into the given GeneralPath.
getBridgeHeight (IRenderContext)in IBridgeCreatorGets the height of the bridge for the given IRenderContext.
getBridgeWidth (IRenderContext)in IBridgeCreatorGets the width of the bridge for the given IRenderContext.
getCrossingStyle (IRenderContext)in IBridgeCreatorGets the BridgeCrossingStyle to use in the given IRenderContext.
getOrientationStyle (IRenderContext)in IBridgeCreatorGets the BridgeOrientationStyle to use in the given IRenderContext.
create (function(IRenderContext):GeneralPath)in IObstacleProvider
getObstacles (IRenderContext)in IObstacleProviderReturns a path representing obstacles that would need bridges.
registerForChildrenIfNecessary (TVisual, function(IRenderContext, TVisual, boolean):TVisual)in IRenderContextRegisters a visual if children have registered themselves for disposal.
setDisposeCallback (TVisual, function(IRenderContext, TVisual, boolean):TVisual)in IRenderContextRegisters a callback which will be called when the visual will be removed from the visual tree.
create ()in IVisualCreator
createVisual (IRenderContext)in IVisualCreatorThis method is called by the framework to create a Visual that will be included in the IRenderContext.
updateVisual (IRenderContext, Visual)in IVisualCreatorThis method updates or replaces a previously created Visual for inclusion in the IRenderContext.
createVisual (IRenderContext, TRenderTag)in ObjectRendererBaseCreates the visual representation for the renderTag.
updateVisual (IRenderContext, TVisual, TRenderTag)in ObjectRendererBaseUpdates a visual representation for the renderTag previously created by createVisual.
PrepareRenderContextEventArgs (IRenderContext)in PrepareRenderContextEventArgsInitializes a new instance of the PrepareRenderContextEventArgs class.
render (IRenderContext, WebGL2RenderingContext)in WebGL2VisualRenders into the context using WebGL2 operations.
render (IRenderContext, WebGLRenderingContext)in WebGLVisualRenders into the context using WebGL operations.