y.layout.hierarchic.incremental
Interface Layer


public interface Layer

Describes a single layer in a hierarchical drawing with all its nodes and associated same layer edges. A layer has a type and an index.

See Also:
Layers, HierarchicLayouter, Layerer
 
Your browser does not support SVG content.

Field Summary
static byte TYPE_LABEL
          Describes a layer consisting mainly of label nodes or dummy nodes.
static byte TYPE_NORMAL
          Describes a normal layer consisting mainly of normal nodes.
static byte TYPE_SOURCE_GROUP_NODES
          Describes a layer consisting of source group nodes and dummy nodes.
static byte TYPE_TARGET_GROUP_NODES
          Describes a layer consisting of target group nodes and dummy nodes.
 
Method Summary
 void add(Node node)
          Adds a newly created node to this layer
 void addSameLayerEdge(Edge edge)
          Adds a same layer edge to this layer.
 int getIndex()
          Returns the index of this layer in the list of all layers.
 NodeList getList()
          Returns the nodes in this layer
 YList getSameLayerEdges()
          Returns all same layer edges in this layer
 byte getType()
          Returns the main type of this layer
 void remove()
          Removes the current layer from the Layers structure
 void remove(Node node)
          Removes a node from this layer
 void setNodeOrder(YList list)
          Adjusts the order of the nodes in this list according to the given order
 

Field Detail

TYPE_NORMAL

static final byte TYPE_NORMAL
Describes a normal layer consisting mainly of normal nodes.

See Also:
Constant Field Values

TYPE_LABEL

static final byte TYPE_LABEL
Describes a layer consisting mainly of label nodes or dummy nodes.

See Also:
Constant Field Values

TYPE_SOURCE_GROUP_NODES

static final byte TYPE_SOURCE_GROUP_NODES
Describes a layer consisting of source group nodes and dummy nodes.

See Also:
Constant Field Values

TYPE_TARGET_GROUP_NODES

static final byte TYPE_TARGET_GROUP_NODES
Describes a layer consisting of target group nodes and dummy nodes.

See Also:
Constant Field Values
Method Detail

add

void add(Node node)
Adds a newly created node to this layer


addSameLayerEdge

void addSameLayerEdge(Edge edge)
Adds a same layer edge to this layer.


getSameLayerEdges

YList getSameLayerEdges()
Returns all same layer edges in this layer


remove

void remove(Node node)
Removes a node from this layer


remove

void remove()
Removes the current layer from the Layers structure


getList

NodeList getList()
Returns the nodes in this layer


setNodeOrder

void setNodeOrder(YList list)
Adjusts the order of the nodes in this list according to the given order


getType

byte getType()
Returns the main type of this layer


getIndex

int getIndex()
Returns the index of this layer in the list of all layers.


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