Package | Description |
---|---|
com.yworks.yfiles.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractEdgeStyle.addArrows(IRenderContext context,
VisualGroup group,
IEdge edge,
GeneralPath edgePath,
IArrow sourceArrow,
IArrow targetArrow)
Convenience method that adds the arrows to a given container.
|
protected Node |
CollapsibleNodeStyleDecoratorRenderer.createButton(IRenderContext context)
Factory method that creates the toggle button instance.
|
Node |
TemplateLabelStyle.createControl(IRenderContext context,
ILabel label)
Factory method that is called by the
TemplateLabelStyleRenderer to create the control that will be used for the
display of the label. |
Node |
TemplateNodeStyle.createControl(IRenderContext context,
INode node)
Factory method that is called by the
TemplateNodeStyleRenderer to create the control that will be used for the
display of the node. |
Node |
TemplatePortStyle.createControl(IRenderContext context,
IPort port)
Factory method that is called by the
TemplatePortStyleRenderer to create the control that will be used for the
display of the port. |
Node |
TemplateStripeStyle.createControl(IRenderContext context,
IStripe stripe)
Factory method that is called by the
TemplateStripeStyleRenderer to create the control that will be used for the
display of the stripe. |
Node |
TemplateStripeStyleRenderer.createVisual(IRenderContext context)
Creates the visual by delegating to
TemplateStripeStyle.createControl(IRenderContext, IStripe) and then
initializing the control with the context. |
Node |
TemplatePortStyleRenderer.createVisual(IRenderContext context)
Creates the visual by delegating to
TemplatePortStyle.createControl(IRenderContext, IPort) and then initializing
the control with the context. |
Node |
TemplateNodeStyleRenderer.createVisual(IRenderContext context)
Creates the visual by delegating to
TemplateNodeStyle.createControl(IRenderContext, INode) and then initializing
the control with the context. |
Node |
TemplateLabelStyleRenderer.createVisual(IRenderContext context)
Creates the visual by delegating to
TemplateLabelStyle.createControl(IRenderContext, ILabel) and then
initializing the control with the context. |
Node |
TableNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
ShinyPlateNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
ShapeNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
PathBasedEdgeStyleRenderer.createVisual(IRenderContext context) |
Node |
PanelNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
MemoryImageNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
ImageNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
IconLabelStyleRenderer.createVisual(IRenderContext context) |
Node |
GeneralPathNodeStyleRenderer.createVisual(IRenderContext context) |
Node |
DefaultLabelStyleRenderer.createVisual(IRenderContext context) |
Node |
CollapsibleNodeStyleDecoratorRenderer.createVisual(IRenderContext context)
Creates the visual for the given context.
|
Node |
BevelNodeStyleRenderer.createVisual(IRenderContext context) |
protected abstract Node |
AbstractEdgeStyle.createVisual(IRenderContext context,
IEdge edge)
Callback that creates the visual.
|
protected abstract Node |
AbstractLabelStyle.createVisual(IRenderContext context,
ILabel label)
Callback that creates the visual.
|
protected abstract Node |
AbstractNodeStyle.createVisual(IRenderContext context,
INode node)
Callback that creates the visual.
|
protected abstract Node |
AbstractPortStyle.createVisual(IRenderContext context,
IPort port)
Callback that creates the visual.
|
protected abstract Node |
AbstractStripeStyle.createVisual(IRenderContext context,
IStripe stripe)
Callback that creates the visual.
|
GeneralPath |
PathBasedEdgeStyleRenderer.getObstacles(IRenderContext context)
Returns
PathBasedEdgeStyleRenderer.createPath() unless PathBasedEdgeStyleRenderer.isVisible(ICanvasContext, RectD) yields false for the provided
context and Clip . |
protected SizeD |
TemplatePortStyleRenderer.getPreferredSize(IRenderContext context)
Gets the preferred size for the current configuration.
|
protected SizeD |
TemplateNodeStyleRenderer.getPreferredSize(IRenderContext context)
Calculates the preferred size given the current state of the renderer for the given context.
|
protected SizeD |
TemplateLabelStyleRenderer.getPreferredSize(IRenderContext context)
Gets the size of the preferred for the current configuration using the provided context.
|
SizeD |
TemplateLabelStyle.getPreferredSize(IRenderContext context,
ILabel label)
Convenience method that determines the preferred size of the label if this style was applied.
|
SizeD |
TemplateLabelStyleRenderer.getPreferredSize(IRenderContext context,
ILabel label,
ILabelStyle style)
Calculates the preferred size for the given label and style.
|
SizeD |
TemplateNodeStyle.getPreferredSize(IRenderContext context,
INode node)
Convenience method that determines the preferred size of the node if this style was applied.
|
SizeD |
TemplateNodeStyleRenderer.getPreferredSize(IRenderContext context,
INode node,
INodeStyle style)
Calculates the preferred size for the given node and style in the provided context.
|
SizeD |
TemplatePortStyle.getPreferredSize(IRenderContext context,
IPort port)
Convenience method that determines the preferred
RenderSize of the port if this style was
applied. |
SizeD |
TemplatePortStyleRenderer.getPreferredSize(IRenderContext context,
IPort port,
TemplatePortStyle style)
Calculates the preferred size for the given port and style.
|
protected Object |
TemplateStripeStyle.getStyle(IRenderContext context,
IModelItem stripe)
Callback method that determines the
Style for the Node . |
protected URL |
TemplatePortStyle.getStyle(IRenderContext context,
IModelItem port)
Callback method that determines the
Style for the Node . |
protected URL |
TemplateNodeStyle.getStyle(IRenderContext context,
IModelItem node)
|
protected URL |
TemplateLabelStyle.getStyle(IRenderContext context,
IModelItem label)
|
protected void |
LabelTemplate.initializeFrom(IRenderContext ctx,
ILabel label,
TemplateLabelStyle style)
Initializes all properties with the given
ILabel and style information. |
protected void |
NodeTemplate.initializeFrom(IRenderContext ctx,
INode node,
TemplateNodeStyle style)
Initializes all properties with the given
INode and style information. |
protected void |
PortTemplate.initializeFrom(IRenderContext ctx,
IPort port,
TemplatePortStyle style)
Initializes all properties with the given
IPort and style information. |
void |
LabelTemplate.initializeFromInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Initializes this label template with the given
ILabel and style information. |
void |
NodeTemplate.initializeFromInternal(IRenderContext ctx,
INode item,
INodeStyle style)
Initializes this node template with the given
INode and style information. |
void |
PortTemplate.initializeFromInternal(IRenderContext ctx,
IPort item,
IPortStyle style)
Initializes this port template with the given
IPort and style information. |
protected boolean |
CollapsibleNodeStyleDecoratorRenderer.isExpanded(IRenderContext context,
INode node)
Returns the folding state of the group node.
|
protected boolean |
DefaultLabelStyleRenderer.isTextMirrored(IRenderContext context)
Determines whether the text should be horizontally mirrored.
|
protected void |
AbstractEdgeStyle.updateArrows(IRenderContext context,
VisualGroup group,
IEdge edge,
GeneralPath edgePath,
IArrow sourceArrow,
IArrow targetArrow)
Convenience method that updates the arrows in a given container.
|
protected void |
CollapsibleNodeStyleDecoratorRenderer.updateButton(IRenderContext context,
Node button,
boolean expanded)
Updates the toggle button depending on the folding state of the group node.
|
protected void |
LabelTemplate.updateFor(IRenderContext ctx,
ILabel label,
TemplateLabelStyle style)
Updates all properties with the given
ILabel and style information. |
protected void |
NodeTemplate.updateFor(IRenderContext ctx,
INode node,
TemplateNodeStyle style)
Updates all properties with the given
INode and style information. |
protected void |
PortTemplate.updateFor(IRenderContext ctx,
IPort port,
TemplatePortStyle style)
Updates all properties with the given
IPort and style information. |
void |
LabelTemplate.updateForInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Updates this label template with the given
ILabel and style information. |
void |
NodeTemplate.updateForInternal(IRenderContext ctx,
INode item,
INodeStyle style)
Updates this node template with the given
INode and style information. |
void |
PortTemplate.updateForInternal(IRenderContext ctx,
IPort item,
IPortStyle style)
Updates this port template with the given
IPort and style information. |
protected void |
AbstractGraphItemTemplate.updateState(IRenderContext ctx,
TModelItem item,
AbstractTemplateStyle<TModelItem> style)
Updates all properties according to the given
IModelItem and additional information. |
Node |
TemplateStripeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual)
Updates the
Node correspondingly. |
Node |
TemplatePortStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual)
Updates the
Node correspondingly. |
Node |
TemplateNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual)
Updates the
Node correspondingly. |
Node |
TemplateLabelStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual)
Updates the
Node correspondingly. |
Node |
TableNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
ShinyPlateNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
ShapeNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
PathBasedEdgeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
PanelNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
MemoryImageNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
ImageNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
IconLabelStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
GeneralPathNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
DefaultLabelStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
CollapsibleNodeStyleDecoratorRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
BevelNodeStyleRenderer.updateVisual(IRenderContext context,
Node oldVisual) |
protected Node |
AbstractEdgeStyle.updateVisual(IRenderContext context,
Node oldVisual,
IEdge edge)
Callback that updates the visual previously created by
AbstractEdgeStyle.createVisual(IRenderContext, IEdge) . |
protected Node |
AbstractLabelStyle.updateVisual(IRenderContext context,
Node oldVisual,
ILabel label)
Callback that updates the visual previously created by
AbstractLabelStyle.createVisual(IRenderContext, ILabel) . |
protected Node |
AbstractNodeStyle.updateVisual(IRenderContext context,
Node oldVisual,
INode node)
Callback that updates the visual previously created by
AbstractNodeStyle.createVisual(IRenderContext, INode) . |
protected Node |
AbstractPortStyle.updateVisual(IRenderContext context,
Node oldVisual,
IPort port)
Callback that updates the visual previously created by
AbstractPortStyle.createVisual(IRenderContext, IPort) . |
protected Node |
AbstractStripeStyle.updateVisual(IRenderContext context,
Node oldVisual,
IStripe stripe)
Callback that updates the visual previously created by
AbstractStripeStyle.createVisual(IRenderContext, IStripe) . |
Modifier and Type | Method and Description |
---|---|
IRenderContext |
CanvasControl.createRenderContext()
Creates an appropriate
render context that can be used to create visuals
using IVisualCreator implementations. |
IRenderContext |
ContextConfigurator.createRenderContext(CanvasControl canvas)
Returns an initialized IRenderContext and taht contains a transforms and clip such that
a part of the given CanvasControl instance can be exported.
|
IRenderContext |
RenderContextEvent.getContext()
Gets the context.
|
IRenderContext |
PrintingEvent.getContext()
Gets the context that was used initially to create the node that is being printed.
|
IRenderContext |
PrepareRenderContextEventArgs.getContext()
Gets the context.
|
Modifier and Type | Method and Description |
---|---|
GeneralPath |
BridgeManager.addBridges(IRenderContext context,
GeneralPath path,
IBridgeCreator callback)
Core method that will add bridges to a
GeneralPath using the IBridgeCreator callback to determine the
type of the bridges. |
void |
IBridgeCreator.createCustomBridge(IRenderContext context,
GeneralPath path,
PointD start,
PointD end,
double gapLength)
Callback that will be used by the
BridgeManager if the IBridgeCreator.getCrossingStyle(IRenderContext)
method yields BridgeCrossingStyle.CUSTOM to actually insert a bridge into the given GeneralPath . |
protected Node |
CanvasPrinter.createPrintingNode(IRenderContext renderContext)
Constructs the node instance that is used for printing.
|
Node |
VoidVisualCreator.createVisual(IRenderContext context)
Returns
null . |
Node |
OverviewGraphVisualCreator.createVisual(IRenderContext context) |
Node |
IVisualCreator.createVisual(IRenderContext context)
This method is called by the framework to create a
Node that will be included into the IRenderContext . |
Node |
GridVisualCreator.createVisual(IRenderContext context) |
Node |
DefaultPortCandidateDescriptor.createVisual(IRenderContext context) |
Node |
IVisualTemplate.createVisual(IRenderContext context,
RectD bounds,
Object dataObject)
This method is called by the framework to create a
Node with the given bounds that will be included into the IRenderContext . |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context)
Creates a visual representation (
Node ) using the given template. |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context,
RectD initialBounds)
Creates a visual representation (
Node ) using the given template. |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context,
RectD initialBounds,
Object dataObject)
Creates a visual representation (
Node ) using the given template. |
Node |
IDisposeVisualCallback.dispose(IRenderContext context,
Node removedVisual,
boolean dispose)
A callback which will be called to free the resources which are occupied by the given
removedVisual when the
visual will be removed. |
Node |
CanvasControl.exportContent(IRenderContext context)
Exports the graphical content for this
CanvasControl . |
double |
IBridgeCreator.getBridgeHeight(IRenderContext context)
Gets the height of the bridge for the given
IRenderContext . |
double |
IBridgeCreator.getBridgeWidth(IRenderContext context)
Gets the width of the bridge for the given
IRenderContext . |
BridgeCrossingStyle |
IBridgeCreator.getCrossingStyle(IRenderContext context)
Gets the
BridgeCrossingStyle to use in the given IRenderContext . |
protected IVisualCreator |
OverviewGraphVisualCreator.getEdgeVisualCreator(IRenderContext context,
IEdge edge)
Obtains the
IVisualCreator for the given edge. |
protected IGraph |
GraphObstacleProvider.getGraph(IRenderContext context)
Helper method that retrieves the
IGraph to use from the . |
protected IVisualCreator |
OverviewGraphVisualCreator.getGroupNodeVisualCreator(IRenderContext context,
INode node)
Obtains the
IVisualCreator for the given group node. |
protected IVisualCreator |
OverviewGraphVisualCreator.getNodeVisualCreator(IRenderContext context,
INode node)
Obtains the
IVisualCreator for the given node. |
long |
BridgeManager.getObstacleHash(IRenderContext context)
Gets a hash code that describes the current state of the obstacles.
|
GeneralPath |
IObstacleProvider.getObstacles(IRenderContext context)
Returns a path representing obstacles that would need bridges.
|
GeneralPath |
GraphObstacleProvider.getObstacles(IRenderContext context)
Iterates over all
Edges and Nodes to query an IObstacleProvider
from the IModelItem 's ILookup.lookup(java.lang.Class) . |
BridgeOrientationStyle |
IBridgeCreator.getOrientationStyle(IRenderContext context)
Gets the
BridgeOrientationStyle to use in the given IRenderContext . |
void |
BridgeManager.insertDefaultCustomBridge(IRenderContext context,
GeneralPath path,
PointD start,
PointD end,
double gapLength)
Implementation that will be called by the default value of the
DefaultBridgeCreator
to satisfy requests to IBridgeCreator.createCustomBridge(IRenderContext, GeneralPath, PointD, PointD, double) . |
void |
BridgeManager.registerObstacle(IRenderContext context,
GeneralPath path)
Convenience method that can be called to dynamically register an obstacle path with the context during the rendering.
|
void |
BridgeManager.registerObstacleCubicCurve(IRenderContext context,
PointD p1,
PointD cp1,
PointD cp2,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle cubic curve with the context during the
rendering.
|
void |
BridgeManager.registerObstacleLine(IRenderContext context,
PointD p1,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle line with the context during the
rendering.
|
void |
BridgeManager.registerObstacleQuadCurve(IRenderContext context,
PointD p1,
PointD cp,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle quadratic curve with the context during
the rendering.
|
protected void |
BridgeManager.registerObstacles(IRenderContext context)
Called to initialize the context with the obstacles.
|
void |
RenderContextEvent.setContext(IRenderContext value)
Sets the context.
|
void |
PrepareRenderContextEventArgs.setContext(IRenderContext value)
Sets the context.
|
Node |
VoidVisualCreator.updateVisual(IRenderContext context,
Node oldVisual)
Returns
null . |
Node |
OverviewGraphVisualCreator.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
IVisualCreator.updateVisual(IRenderContext context,
Node oldVisual)
This method updates or replaces a previously created
Node for inclusion in the IRenderContext . |
Node |
GridVisualCreator.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
DefaultPortCandidateDescriptor.updateVisual(IRenderContext context,
Node oldVisual) |
Node |
IVisualTemplate.updateVisual(IRenderContext context,
Node oldVisual,
RectD bounds,
Object dataObject)
This method updates or replaces a previously created
Node for inclusion in the IRenderContext . |
Constructor and Description |
---|
PrepareRenderContextEventArgs(IRenderContext context)
Initializes a new instance of the
PrepareRenderContextEventArgs class. |
PrintingEvent(IRenderContext context,
EventType<PrintingEvent> eventType,
Node node,
int row,
int col,
CanvasPrinter.PrintInfo printInfo)
Initializes a new instance of the
PrintingEvent class. |
RenderContextEvent(IRenderContext context)
Initializes a new instance of the
PrepareRenderContextEventArgs class. |
Modifier and Type | Method and Description |
---|---|
protected Node |
HandleInputMode.createVisual(IRenderContext context,
IHandle handle)
Callback that creates the
Node for the given handle. |