Package | com.yworks.graph.drawing |
Class | public class OverviewGraphDisplayObjectCreator |
Inheritance | OverviewGraphDisplayObjectCreator Object |
Implements | IDisplayObjectCreator |
IDisplayObjectCreator
for use in a CanvasComponent
that renders an IGraph
instance in a sloppy overview style.
Property | Defined By | ||
---|---|---|---|
overviewEdgeStyle : IEdgeStyle
The overview edge style. | OverviewGraphDisplayObjectCreator | ||
overviewGroupNodeStyle : INodeStyle
The overview group node style. | OverviewGraphDisplayObjectCreator | ||
overviewNodeStyle : INodeStyle
The overview node style. | OverviewGraphDisplayObjectCreator |
Method | Defined By | ||
---|---|---|---|
Creates a new instance for the given graph. | OverviewGraphDisplayObjectCreator | ||
createDisplayObject(ctx:IDisplayObjectContext):DisplayObject
Creates a new DisplayObject from scratch. | OverviewGraphDisplayObjectCreator | ||
updateDisplayObject(oldDisplayObject:DisplayObject, ctx:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject or creates a new one. | OverviewGraphDisplayObjectCreator |
Method | Defined By | ||
---|---|---|---|
Factory method that creates the overviewEdgeStyle
| OverviewGraphDisplayObjectCreator | ||
Factory method that creates the overviewGroupNodeStyle
| OverviewGraphDisplayObjectCreator | ||
Factory method that creates the overviewNodeStyle
| OverviewGraphDisplayObjectCreator | ||
Obtains the IDisplayObjectCreator for the given edge. | OverviewGraphDisplayObjectCreator | ||
Obtains the IDisplayObjectCreator for the given group node. | OverviewGraphDisplayObjectCreator | ||
Obtains the IDisplayObjectCreator for the given node. | OverviewGraphDisplayObjectCreator | ||
Callback that returns and/or configures a edge style for the given edge to render. | OverviewGraphDisplayObjectCreator | ||
Callback that returns and/or configures a node style for the given group node to render. | OverviewGraphDisplayObjectCreator | ||
Callback that returns and/or configures a node style for the given node to render. | OverviewGraphDisplayObjectCreator |
overviewEdgeStyle | property |
overviewEdgeStyle:IEdgeStyle
The overview edge style.
public function get overviewEdgeStyle():IEdgeStyle
public function set overviewEdgeStyle(value:IEdgeStyle):void
overviewGroupNodeStyle | property |
overviewGroupNodeStyle:INodeStyle
The overview group node style.
public function get overviewGroupNodeStyle():INodeStyle
public function set overviewGroupNodeStyle(value:INodeStyle):void
overviewNodeStyle | property |
overviewNodeStyle:INodeStyle
The overview node style.
public function get overviewNodeStyle():INodeStyle
public function set overviewNodeStyle(value:INodeStyle):void
OverviewGraphDisplayObjectCreator | () | Constructor |
public function OverviewGraphDisplayObjectCreator(graph:IGraph)
Creates a new instance for the given graph.
Parametersgraph:IGraph |
createDisplayObject | () | method |
public function createDisplayObject(ctx:IDisplayObjectContext):DisplayObject
Creates a new DisplayObject
from scratch.
Parameters
ctx:IDisplayObjectContext — The context for which the display object is created.
|
DisplayObject — A DisplayObject .
|
createEdgeStyle | () | method |
protected function createEdgeStyle():IEdgeStyle
Factory method that creates the overviewEdgeStyle
IEdgeStyle — a simple edge style
|
See also
createGroupNodeStyle | () | method |
protected function createGroupNodeStyle():INodeStyle
Factory method that creates the overviewGroupNodeStyle
INodeStyle — a simple node style
|
See also
createNodeStyle | () | method |
protected function createNodeStyle():INodeStyle
Factory method that creates the overviewNodeStyle
INodeStyle — a simple node style
|
See also
getEdgeDisplayObjectCreator | () | method |
protected function getEdgeDisplayObjectCreator(ctx:IDisplayObjectContext, edge:IEdge):IDisplayObjectCreator
Obtains the IDisplayObjectCreator
for the given edge.
Parameters
ctx:IDisplayObjectContext — the display object context.
| |
edge:IEdge — The edge.
|
IDisplayObjectCreator — The display object creator that is obtained from the getDisplayObjectCreator()
method of the getOverviewEdgeStyle 's renderer.
|
getGroupNodeDisplayObjectCreator | () | method |
protected function getGroupNodeDisplayObjectCreator(ctx:IDisplayObjectContext, node:INode):IDisplayObjectCreator
Obtains the IDisplayObjectCreator
for the given group node.
Parameters
ctx:IDisplayObjectContext — the display object context.
| |
node:INode — The group node.
|
IDisplayObjectCreator — The display object creator that is obtained from the getDisplayObjectCreator()
method of the getOverviewGroupNodeStyle 's renderer.
|
getNodeDisplayObjectCreator | () | method |
protected function getNodeDisplayObjectCreator(ctx:IDisplayObjectContext, node:INode):IDisplayObjectCreator
Obtains the IDisplayObjectCreator
for the given node.
Parameters
ctx:IDisplayObjectContext — the display object context.
| |
node:INode — The node.
|
IDisplayObjectCreator — The display object creator that is obtained from the getDisplayObjectCreator()
method of the getOverviewNodeStyle 's renderer.
|
getOverviewEdgeStyle | () | method |
protected function getOverviewEdgeStyle(edge:IEdge):IEdgeStyle
Callback that returns and/or configures a edge style for the given edge to render.
Parameters
edge:IEdge — The edge to render.
|
IEdgeStyle — The style or null
|
getOverviewGroupNodeStyle | () | method |
protected function getOverviewGroupNodeStyle(node:INode):INodeStyle
Callback that returns and/or configures a node style for the given group node to render.
Parameters
node:INode — The node to render.
|
INodeStyle — The style or null
|
getOverviewNodeStyle | () | method |
protected function getOverviewNodeStyle(node:INode):INodeStyle
Callback that returns and/or configures a node style for the given node to render.
Parameters
node:INode — The node to render.
|
INodeStyle — The style or null
|
updateDisplayObject | () | method |
public function updateDisplayObject(oldDisplayObject:DisplayObject, ctx:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject
or creates a new one.
Implementors can decide whether they update the given display object or create a new one. Updating can mean re-rendering or updating size and/or coordinates.
Parameters
oldDisplayObject:DisplayObject — The display object to update.
| |
ctx:IDisplayObjectContext — The context for which the display object should be updated.
|
DisplayObject — The updated display object or a completely new display object.
|