Search this API

y.layout.hierarchic
Interface Drawer

All Known Implementing Classes:
AbstractDrawer, AlignmentDrawer, LinearSegmentsDrawer, MedianDrawerWrapper, MedianLinearSegmentDrawer, NodeLabelSpaceDrawer, PendularDrawer, PolylineDrawer, SimplexDrawer, TreeDrawer

public interface Drawer

Interface for the third phase of the Sugiyama algorithm. It assigns the coordinates to the nodes according to the defined range.


Field Summary
static Object NODE_BORDER_BOTTOM
          The key used to look up a data provider that, if present, must provide a double value for each node in the graph.
static Object NODE_BORDER_LEFT
          The key used to look up a data provider that, if present, must provide a double value for each node in the graph.
static Object NODE_BORDER_RIGHT
          The key used to look up a data provider that, if present, must provide a double value for each node in the graph.
static Object NODE_BORDER_TOP
          The key used to look up a data provider that, if present, must provide a double value for each node in the graph.
static Object NODE_DISTANCE
          The key used to look up a data provider that, if present, must provide a double value for each node in the graph.
 
Method Summary
 void assignCoordinates(LayoutGraph g, NodeList[] layerLists, DataProvider layerID)
          This method assigns the coordinates to the nodes.
 void setDummyMap(NodeMap dummy)
          Gives the drawer the opportunity to distinguish between dummy nodes and real ones. dummy stores the original edge for each dummy node or null for real nodes.
 void setMinimalEdgeDistance(double d)
          Sets the minimal distance between two edges in the same layer.
 void setMinimalLayerDistance(double d)
          Sets the minimal distance between two layers.
 void setMinimalMultiEdgeDistance(double d)
          Sets the minimal distance between two edges sharing source/target (aka multi-edges) in the same layer.
 void setMinimalNodeDistance(double d)
          Sets the minimal distance between two nodes in the same layer.
 

Field Detail

NODE_BORDER_LEFT

static final Object NODE_BORDER_LEFT
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. The provided value is an additional overlap-free border added to the left side of the associated node.

Drawer implementations may ignore the data provided.


NODE_BORDER_RIGHT

static final Object NODE_BORDER_RIGHT
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. The provided value is an additional overlap-free border added to the right side of the associated node.

Drawer implementations may ignore the data provided.


NODE_BORDER_TOP

static final Object NODE_BORDER_TOP
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. The provided value is an additional overlap-free border added to the top side of the associated node.

Drawer implementations may ignore the data provided.


NODE_BORDER_BOTTOM

static final Object NODE_BORDER_BOTTOM
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. The provided value is an additional overlap-free border added to the bottom side of the associated node.

Drawer implementations may ignore the data provided.


NODE_DISTANCE

static final Object NODE_DISTANCE
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. The provided value specifies the minimum distance between the right border of the node and the left border of its right-hand neighbor in the layer.

If a data provider with this key is registered with the input graph then the distance values set by the methods setMinimalNodeDistance(double), setMinimalEdgeDistance(double) and setMinimalMultiEdgeDistance(double) will be ignored.

Drawer implementations may ignore the data provided.

Method Detail

assignCoordinates

void assignCoordinates(LayoutGraph g,
                       NodeList[] layerLists,
                       DataProvider layerID)
This method assigns the coordinates to the nodes.


setDummyMap

void setDummyMap(NodeMap dummy)
Gives the drawer the opportunity to distinguish between dummy nodes and real ones. dummy stores the original edge for each dummy node or null for real nodes.


setMinimalNodeDistance

void setMinimalNodeDistance(double d)
Sets the minimal distance between two nodes in the same layer.


setMinimalEdgeDistance

void setMinimalEdgeDistance(double d)
Sets the minimal distance between two edges in the same layer.


setMinimalMultiEdgeDistance

void setMinimalMultiEdgeDistance(double d)
Sets the minimal distance between two edges sharing source/target (aka multi-edges) in the same layer.


setMinimalLayerDistance

void setMinimalLayerDistance(double d)
Sets the minimal distance between two layers.


© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.