|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
Layers,
HierarchicLayouter,
Layerer| 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 |
|---|
static final byte TYPE_NORMAL
static final byte TYPE_LABEL
static final byte TYPE_SOURCE_GROUP_NODES
static final byte TYPE_TARGET_GROUP_NODES
| Method Detail |
|---|
void add(Node node)
void addSameLayerEdge(Edge edge)
YList getSameLayerEdges()
void remove(Node node)
void remove()
NodeList getList()
void setNodeOrder(YList list)
byte getType()
int getIndex()
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||