documentationfor yFiles for HTML 3.0.0.3

Usages of ICanvasContext

Properties

canvasContextin CanvasComponentGets an implementation of ICanvasContext that describes the state of this CanvasComponent.

Method Parameters

getBounds (ICanvasContext, IEdge)in CompositeEdgeStyleCalculates the bounds as the union of bounds from all styles.
isVisible (ICanvasContext, Rect, IEdge)in CompositeEdgeStyleDetermines visibility based on the visibility of all styles.
getBounds (ICanvasContext, ILabel)in CompositeLabelStyleCalculates the bounds as the union of bounds from all styles.
isVisible (ICanvasContext, Rect, ILabel)in CompositeLabelStyleDetermines visibility based on the visibility of all styles.
getBounds (ICanvasContext, INode)in CompositeNodeStyleCalculates the bounds as the union of bounds from all styles.
isVisible (ICanvasContext, Rect, INode)in CompositeNodeStyleDetermines visibility based on the visibility of all styles.
getBounds (ICanvasContext, IPort)in CompositePortStyleCalculates the bounds as the union of bounds from all styles.
isVisible (ICanvasContext, Rect, IPort)in CompositePortStyleDetermines visibility based on the visibility of all styles.
getBounds (ICanvasContext, IEdge)in DelegatingEdgeStyleGets the bounds with the style from getStyle and the edge from getEdge.
isVisible (ICanvasContext, Rect, IEdge)in DelegatingEdgeStyleDetermines with the style from getStyle whether the visualization of the edge from getEdge is visible.
getBounds (ICanvasContext, ILabel)in DelegatingLabelStyleGets the bounds with the style from getStyle and the label from getLabel.
isVisible (ICanvasContext, Rect, ILabel)in DelegatingLabelStyleDetermines with the style from getStyle whether the visualization of the label from getLabel is visible.
getBounds (ICanvasContext, INode)in DelegatingNodeStyleGets the bounds with the style from getStyle and the node from getNode.
isVisible (ICanvasContext, Rect, INode)in DelegatingNodeStyleDetermines with the style from getStyle whether the visualization of the node from getNode is visible.
getBounds (ICanvasContext, IPort)in DelegatingPortStyleGets the bounds with the style from getStyle and the port from getPort.
isVisible (ICanvasContext, Rect, IPort)in DelegatingPortStyleDetermines with the style from getStyle whether the visualization of the port from getPort is visible.
getBounds (ICanvasContext, IEdge)in EdgeStyleBaseGets the bounds of the visual for the edge in the given context.
isVisible (ICanvasContext, Rect, IEdge)in EdgeStyleBaseDetermines whether the visualization for the specified edge is visible in the context.
getBounds (ICanvasContext, ILabel)in LabelStyleBaseGets the bounds of the visual for the label in the given context.
isVisible (ICanvasContext, Rect, ILabel)in LabelStyleBaseDetermines whether the visualization for the specified label is visible in the context.
getBounds (ICanvasContext, INode)in NodeStyleBaseGets the bounds of the visual for the node in the given context.
isVisible (ICanvasContext, Rect, INode)in NodeStyleBaseDetermines whether the visualization for the specified node is visible in the context.
getBounds (ICanvasContext, IEdge)in PathEdgeStyleBaseGets the bounds of the visual for the edge in the given context.
isVisible (ICanvasContext, Rect, IEdge)in PathEdgeStyleBaseDetermines whether the visualization for the specified edge is visible in the context.
getBounds (ICanvasContext, IPort)in PortStyleBaseReturns the bounds of the visual for the port in the given context.
isVisible (ICanvasContext, Rect, IPort)in PortStyleBaseDetermines whether the visualization for the specified port is visible in the context.
applyTo (SVGElement, ICanvasContext)in FillAssigns the fill defined by this instance to the given SVG element.
setFill (Fill, SVGElement, ICanvasContext)in FillSets the Fill on a given SVG element as the fill.
create (function(ICanvasContext):Rect)in IBoundsProvider
getBounds (ICanvasContext)in IBoundsProviderReturns a tight rectangular area where the whole rendering would fit into.
accept (ICanvasContext, Node, string)in ISvgDefsCreatorChecks if the specified node references the element represented by this object.
create ()in ISvgDefsCreator
createDefsElement (ICanvasContext)in ISvgDefsCreatorCreates the element that is put into the defs section of the SVG element.
updateDefsElement (ICanvasContext, SVGElement)in ISvgDefsCreatorUpdates the defs element with the current gradient data.
create (function(ICanvasContext, Rect):boolean)in IVisibilityTestable
isVisible (ICanvasContext, Rect)in IVisibilityTestableDetermines whether an element might intersect the visible region for a given context.
accept (ICanvasContext, Node, string)in LinearGradient
createDefsElement (ICanvasContext)in LinearGradientCreates a new SVG gradient that corresponds to this LinearGradient.
updateDefsElement (ICanvasContext, SVGElement)in LinearGradientUpdates the SVG gradient within the defs section of the SVG document if it has changed.
updateSvgGradient (SVGElement, ICanvasContext)in LinearGradientUpdates the SVG gradient within the defs section of the SVG document if it has changed.
getBounds (ICanvasContext, TRenderTag)in ObjectRendererBaseGets the bounds of the visual for the render tag in the given context.
isVisible (ICanvasContext, Rect, TRenderTag)in ObjectRendererBaseDetermines whether the visualization for the specified node is visible in the given area for the given context.
accept (ICanvasContext, Node, string)in PatternFill
createDefsElement (ICanvasContext)in PatternFill
updateDefsElement (ICanvasContext, SVGElement)in PatternFill
accept (ICanvasContext, Node, string)in RadialGradient
createDefsElement (ICanvasContext)in RadialGradientCreates a new SVG gradient that corresponds to this gradient brush.
updateDefsElement (ICanvasContext, SVGElement)in RadialGradientUpdates the SVG gradient within the defs section of the SVG document if it has changed.
updateSvgGradient (SVGElement, ICanvasContext)in RadialGradientUpdates the SVG gradient within the defs section of the SVG document if it has changed.
applyTo (SVGElement, ICanvasContext)in StrokeAssigns the stroke defined by this instance to the given SVG element.
setStroke (Stroke, SVGElement, ICanvasContext)in StrokeSets the Stroke on a given SVG element as the stroke.

Implementing Types

IInputModeContextThe interface for the context object that is passed to IInputMode instances during install and uninstall and IDragHandler implementations like IPositionHandler and IHandle to provide additional context for the implementations.
IRenderContextAn interface that describes the current context for rendering routines.