public class OverviewGraphVisualCreator extends Object implements IVisualCreator
IVisualCreator for use in a CanvasControl that renders a IGraph instance in a sloppy overview
style.| Constructor and Description |
|---|
OverviewGraphVisualCreator(IGraph graph)
Creates a new instance for the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
createVisual(IRenderContext context)
This method is called by the framework to create a
Node that will be included into the IRenderContext. |
IEdgeStyle |
getEdgeStyle()
Gets the overview edge style.
|
protected IEdgeStyle |
getEdgeStyle(IEdge edge)
Callback that returns and/or configures a edge style for the given node to render.
|
protected IVisualCreator |
getEdgeVisualCreator(IRenderContext context,
IEdge edge)
Obtains the
IVisualCreator for the given edge. |
INodeStyle |
getGroupNodeStyle()
Gets the overview group node style.
|
protected INodeStyle |
getGroupNodeStyle(INode node)
Callback that returns and/or configures a group node style for the given node to render.
|
protected IVisualCreator |
getGroupNodeVisualCreator(IRenderContext context,
INode node)
Obtains the
IVisualCreator for the given group node. |
INodeStyle |
getNodeStyle()
Gets the overview node style.
|
protected INodeStyle |
getNodeStyle(INode node)
Callback that returns and/or configures a node style for the given node to render.
|
protected IVisualCreator |
getNodeVisualCreator(IRenderContext context,
INode node)
Obtains the
IVisualCreator for the given node. |
void |
setEdgeStyle(IEdgeStyle value)
Sets the overview edge style.
|
void |
setGroupNodeStyle(INodeStyle value)
Sets the overview group node style.
|
void |
setNodeStyle(INodeStyle value)
Sets the overview node style.
|
Node |
updateVisual(IRenderContext context,
Node oldVisual)
This method updates or replaces a previously created
Node for inclusion in the IRenderContext. |
public OverviewGraphVisualCreator(IGraph graph)
public final Node createVisual(IRenderContext context)
IVisualCreatorNode that will be included into the IRenderContext.
CanvasControl uses this interface through the ICanvasObjectDescriptor
to populate the visual canvas object tree.
createVisual in interface IVisualCreatorcontext - The context that describes where the visual will be used.null.IVisualCreator.updateVisual(IRenderContext, Node)public final IEdgeStyle getEdgeStyle()
setEdgeStyle(IEdgeStyle)protected IEdgeStyle getEdgeStyle(IEdge edge)
edge - The edge to render.nullprotected IVisualCreator getEdgeVisualCreator(IRenderContext context, IEdge edge)
IVisualCreator for the given edge.context - The context.edge - The edge.getEdgeStyle(IEdge)'s IEdgeStyleRenderer.getVisualCreator(IEdge, IEdgeStyle)
method.public final INodeStyle getGroupNodeStyle()
setGroupNodeStyle(INodeStyle)protected INodeStyle getGroupNodeStyle(INode node)
node - The group node to render.nullprotected IVisualCreator getGroupNodeVisualCreator(IRenderContext context, INode node)
IVisualCreator for the given group node.context - The context.node - The group node.getGroupNodeStyle(INode)'s INodeStyleRenderer.getVisualCreator(INode, INodeStyle)
method.public final INodeStyle getNodeStyle()
setNodeStyle(INodeStyle)protected INodeStyle getNodeStyle(INode node)
node - The node to render.nullprotected IVisualCreator getNodeVisualCreator(IRenderContext context, INode node)
IVisualCreator for the given node.context - The context.node - The node.getNodeStyle(INode)'s INodeStyleRenderer.getVisualCreator(INode, INodeStyle)
method.public final void setEdgeStyle(IEdgeStyle value)
value - The overview edge style.getEdgeStyle()public final void setGroupNodeStyle(INodeStyle value)
value - The overview node style.getGroupNodeStyle()public final void setNodeStyle(INodeStyle value)
value - The overview node style.getNodeStyle()public final Node updateVisual(IRenderContext context, Node oldVisual)
IVisualCreatorNode for inclusion in the IRenderContext.
The CanvasControl uses this method to give implementations a chance to update an existing
Visual that has previously been created by the same instance during a call to IVisualCreator.createVisual(IRenderContext).
Implementation may update the oldVisual and return that same reference, or create a new visual and return the
new instance or null.
updateVisual in interface IVisualCreatorcontext - The context that describes where the visual will be used in.oldVisual - The visual instance that had been returned the last time the IVisualCreator.createVisual(IRenderContext) method was called on
this instance.oldVisual, if this instance modified the visual, or a new visual that should replace the existing one in the
canvas object visual tree.IVisualCreator.createVisual(IRenderContext),
ICanvasObjectDescriptor,
CanvasControl