|
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_LABEL
A constant describing a layer consisting mainly of label nodes or dummy nodes. |
static byte |
TYPE_LOWER_GROUP_CONNECTOR_NODES
Describes a layer below a group to store the connector proxies where edges connect to groups. |
static byte |
TYPE_NORMAL
A constant describing a normal layer consisting mainly of normal nodes. |
static byte |
TYPE_SOURCE_GROUP_NODES
A constant describing a layer consisting of source group nodes and dummy nodes. |
static byte |
TYPE_TARGET_GROUP_NODES
A constant describing a layer consisting of target group nodes and dummy nodes. |
static byte |
TYPE_UPPER_GROUP_CONNECTOR_NODES
Describes 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 Node to this Layer instance. |
void |
addSameLayerEdge(Edge edge)
Adds a same-layer Edge to this Layer instance. |
int |
getIndex()
Returns the index of this Layer instance in the list of all layers. |
NodeList |
getList()
Returns a list of the Nodes associated with this Layer instance. |
RowDescriptor |
getRow()
Returns the RowDescriptor associated with this Layer instance. |
YList |
getSameLayerEdges()
Returns a list of all same-layer Edges associated with this Layer instance. |
byte |
getType()
Returns the type of this Layer instance. |
void |
remove()
Removes the current layer from the list of layers. |
void |
remove(Node node)
Removes a Node from this Layer instance. |
void |
setNodeOrder(YList list)
Adjusts the order of the Nodes of this Layer instance according to the given order. |
void |
setRow(RowDescriptor row)
Specifies the RowDescriptor associated with this Layer instance. |
| 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 | ||||||||