public interface NodeInterface extends ObjectInterface
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 |
setPos(int x,
int y)
sets the new position for this Node.
|
EdgeInterface getDockedTo()
java.awt.Point getPos()
java.awt.Dimension getSize()
java.lang.String getText()
boolean isVirtualNode()
void setPos(int x, int y)
i
- _y
- int getPaddingY()
int getPaddingX()