| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Layer
This interface describes a single layer in a hierarchic layout.
   A layer consists of nodes along with the associated same-layer edges. Each layer has a
   type and an index representing its order in the list of layers.
 
Layers, 
HierarchicLayouter, 
Layerer| Field Summary | |
|---|---|
| static byte | TYPE_LABELA constant describing a layer consisting mainly of label nodes or dummy nodes. | 
| static byte | TYPE_LOWER_GROUP_CONNECTOR_NODESDescribes a layer below a group to store the connector proxies where edges connect to groups. | 
| static byte | TYPE_NORMALA constant describing a normal layer consisting mainly of normal nodes. | 
| static byte | TYPE_SOURCE_GROUP_NODESA constant describing a layer consisting of source group nodes and dummy nodes. | 
| static byte | TYPE_TARGET_GROUP_NODESA constant describing a layer consisting of target group nodes and dummy nodes. | 
| static byte | TYPE_UPPER_GROUP_CONNECTOR_NODESDescribes a layer above a group to store the connector proxies where edges connect to groups. | 
| Method Summary | |
|---|---|
|  void | add(Node node)Adds a newly created Nodeto thisLayerinstance. | 
|  void | addSameLayerEdge(Edge edge)Adds a same-layer Edgeto thisLayerinstance. | 
|  int | getIndex()Returns the index of this Layerinstance in thelist of all layers. | 
|  NodeList | getList()Returns a list of the Nodes associated with thisLayerinstance. | 
|  RowDescriptor | getRow()Returns the RowDescriptorassociated with thisLayerinstance. | 
|  YList | getSameLayerEdges()Returns a list of all same-layer Edges associated with thisLayerinstance. | 
|  byte | getType()Returns the type of this Layerinstance. | 
|  void | remove()Removes the current layer from the list of layers. | 
|  void | remove(Node node)Removes a Nodefrom thisLayerinstance. | 
|  void | setNodeOrder(YList list)Adjusts the order of the Nodes of thisLayerinstance according to the given order. | 
|  void | setRow(RowDescriptor row)Specifies the RowDescriptorassociated with thisLayerinstance. | 
| 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
static final byte TYPE_UPPER_GROUP_CONNECTOR_NODES
static final byte TYPE_LOWER_GROUP_CONNECTOR_NODES
| Method Detail | 
|---|
void add(Node node)
Node to this Layer instance.
node - the Node to be addedvoid addSameLayerEdge(Edge edge)
Edge to this Layer instance.
edge - the same-layer Edge to be addedYList getSameLayerEdges()
Edges associated with this Layer instance.
Edgesvoid remove(Node node)
Node from this Layer instance.
node - the Node to be removedvoid remove()
list of layers.
NodeList getList()
Nodes associated with this Layer instance.
Nodes of this Layervoid setNodeOrder(YList list)
Nodes of this Layer instance according to the given order.
list - the given list to be usedbyte getType()
Layer instance.
int getIndex()
Layer instance in the list of all layers.
Layer instanceRowDescriptor getRow()
RowDescriptor associated with this Layer instance.
RowDescriptor instancesetRow(RowDescriptor)void setRow(RowDescriptor row)
RowDescriptor associated with this Layer instance.
row - the given RowDescriptor instance| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||