public class ProcessNodeAdapter extends java.lang.Object implements NodeInterface
Constructor and Description |
---|
ProcessNodeAdapter(ProcessNode n) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
EdgeInterface |
getDockedTo()
if this node is directly connected to an edge (like an edge docker)
preprocessors can take that into account.
|
ProcessNode |
getNode() |
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
|
int |
hashCode() |
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.
|
java.lang.String |
toString() |
public ProcessNodeAdapter(ProcessNode n)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 void setPos(int x, int y)
NodeInterface
setPos
in interface NodeInterface
public ProcessNode getNode()
public java.lang.String toString()
toString
in class java.lang.Object
public EdgeInterface getDockedTo()
NodeInterface
getDockedTo
in interface NodeInterface
public boolean isVirtualNode()
NodeInterface
isVirtualNode
in interface NodeInterface
public int getPaddingX()
NodeInterface
getPaddingX
in interface NodeInterface
public int getPaddingY()
NodeInterface
getPaddingY
in interface NodeInterface