Packagecom.yworks.graph.drawing
Classpublic class OverviewGraphPaintable
InheritanceOverviewGraphPaintable Inheritance Object
Implements IPaintable

An IPaintable for use in a CanvasComponent that renders an IGraph instance in a sloppy overview style.



Public Properties
 PropertyDefined By
  overviewEdgeStyle : IEdgeStyle
The overview edge style.
OverviewGraphPaintable
  overviewGroupNodeStyle : INodeStyle
The overview group node style.
OverviewGraphPaintable
  overviewNodeStyle : INodeStyle
The overview node style.
OverviewGraphPaintable
Public Methods
 MethodDefined By
  
Creates a new instance for the given graph.
OverviewGraphPaintable
  
Performs the actual painting into the given graphics context.
OverviewGraphPaintable
Protected Methods
 MethodDefined By
  
Factory method that creates the overviewEdgeStyle
OverviewGraphPaintable
  
Factory method that creates the overviewGroupNodeStyle
OverviewGraphPaintable
  
Factory method that creates the overviewNodeStyle
OverviewGraphPaintable
  
Callback that returns and/or configures a edge style for the given edge to render.
OverviewGraphPaintable
  
Callback that returns and/or configures a node style for the given group node to render.
OverviewGraphPaintable
  
Callback that returns and/or configures a node style for the given node to render.
OverviewGraphPaintable
  
Callback that paints the edge.
OverviewGraphPaintable
  
Callback that paints the group node.
OverviewGraphPaintable
  
Callback that paints the node.
OverviewGraphPaintable
Property Detail
overviewEdgeStyleproperty
overviewEdgeStyle:IEdgeStyle

The overview edge style.


Implementation
    public function get overviewEdgeStyle():IEdgeStyle
    public function set overviewEdgeStyle(value:IEdgeStyle):void
overviewGroupNodeStyleproperty 
overviewGroupNodeStyle:INodeStyle

The overview group node style.


Implementation
    public function get overviewGroupNodeStyle():INodeStyle
    public function set overviewGroupNodeStyle(value:INodeStyle):void
overviewNodeStyleproperty 
overviewNodeStyle:INodeStyle

The overview node style.


Implementation
    public function get overviewNodeStyle():INodeStyle
    public function set overviewNodeStyle(value:INodeStyle):void
Constructor Detail
OverviewGraphPaintable()Constructor
public function OverviewGraphPaintable(graph:IGraph)

Creates a new instance for the given graph.

Parameters
graph:IGraph
Method Detail
createEdgeStyle()method
protected function createEdgeStyle():IEdgeStyle

Factory method that creates the overviewEdgeStyle

Returns
IEdgeStyle — a simple edge style

See also

createGroupNodeStyle()method 
protected function createGroupNodeStyle():INodeStyle

Factory method that creates the overviewGroupNodeStyle

Returns
INodeStyle — a simple node style

See also

createNodeStyle()method 
protected function createNodeStyle():INodeStyle

Factory method that creates the overviewNodeStyle

Returns
INodeStyle — a simple node style

See also

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.

Returns
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.

Returns
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.

Returns
INodeStyle — The style or null
paint()method 
public function paint(g:YGraphics, ctx:IPaintContext):void

Performs the actual painting into the given graphics context.

Parameters

g:YGraphics — The graphics context to paint into
 
ctx:IPaintContext — Currently not used

paintEdge()method 
protected function paintEdge(g:YGraphics, ctx:IPaintContext, edge:IEdge):void

Callback that paints the edge.

Parameters

g:YGraphics — the graphics context.
 
ctx:IPaintContext — The edge to paint.
 
edge:IEdge

paintGroupNode()method 
protected function paintGroupNode(g:YGraphics, ctx:IPaintContext, node:INode):void

Callback that paints the group node.

Parameters

g:YGraphics — the graphics context.
 
ctx:IPaintContext — the paint context.
 
node:INode — The node to paint.

paintNode()method 
protected function paintNode(g:YGraphics, ctx:IPaintContext, node:INode):void

Callback that paints the node.

Parameters

g:YGraphics — the graphics context.
 
ctx:IPaintContext — the paint context.
 
node:INode — The node to paint.