public class CompoundLeafNode extends java.lang.Object implements NodeInterface
Modifier and Type | Field and Description |
---|---|
static float |
RATIO_AIM |
static int |
XSPACING |
static int |
YSPACING |
Constructor and Description |
---|
CompoundLeafNode(java.util.List<NodeInterface> nodes) |
Modifier and Type | Method and Description |
---|---|
EdgeInterface |
getDockedTo()
if this node is directly connected to an edge (like an edge docker)
preprocessors can take that into account.
|
int |
getPaddingX()
The value returned by this method adds a padding on the left/right (half of the value) of a node.
|
int |
getPaddingY()
The value returned by this method adds a padding on the bottom/top (half of the value) of a node.
|
java.awt.Point |
getPos()
Should returns the current position of the center of node
|
java.awt.Dimension |
getSize()
the current size of the node (width,height)
|
java.lang.String |
getText()
Gets the text or label present on the node
|
boolean |
isVirtualNode()
virtual nodes are nodes not visible in a diagram (e.g. an Edge Docker)
virtual nodes will usually be ignored!
|
void |
layout(AbstractModelAdapter model,
java.util.List<EdgeInterface> edges) |
static void |
setCompoundRatio(float value) |
void |
setPos(int x,
int y)
sets the new position for this Node.
|
static void |
setSpacingX(int value) |
static void |
setSpacingY(int value) |
java.lang.String |
toString() |
public static float RATIO_AIM
public static int XSPACING
public static int YSPACING
public CompoundLeafNode(java.util.List<NodeInterface> nodes)
public EdgeInterface getDockedTo()
NodeInterface
getDockedTo
in interface NodeInterface
public int getPaddingX()
NodeInterface
getPaddingX
in interface NodeInterface
public int getPaddingY()
NodeInterface
getPaddingY
in interface NodeInterface
public java.awt.Point getPos()
NodeInterface
getPos
in interface NodeInterface
public java.awt.Dimension getSize()
NodeInterface
getSize
in interface NodeInterface
public java.lang.String getText()
NodeInterface
getText
in interface NodeInterface
public boolean isVirtualNode()
NodeInterface
isVirtualNode
in interface NodeInterface
public void setPos(int x, int y)
NodeInterface
setPos
in interface NodeInterface
public void layout(AbstractModelAdapter model, java.util.List<EdgeInterface> edges)
model
- _edges
- public java.lang.String toString()
toString
in class java.lang.Object
public static void setSpacingX(int value)
public static void setSpacingY(int value)
public static void setCompoundRatio(float value)