public class BPMNNodeAdapter extends ProcessNodeAdapter implements BPMNNodeInterface
Constructor and Description |
---|
BPMNNodeAdapter(ProcessNode n) |
Modifier and Type | Method and Description |
---|---|
java.util.List<NodeInterface> |
getContainedNodes()
if this node is a Pool, a SubProcess or e.g. a TWF-Frame, this method has to be implemented as well and
shall return all nodes that are currently residing within this Cluster
|
EdgeInterface |
getDockedTo()
if this node is directly connected to an edge (like an edge docker)
preprocessors can take that into account.
|
int |
getPaddingY()
The value returned by this method adds a padding on the bottom/top (half of the value) of a node.
|
boolean |
isAnnotation()
returns true if this Node is a BPMN Annotation Object
|
NodeInterface |
isAttatchedTo(AbstractModelAdapter model)
if this node is e.g. an attached intermediate event, this method
returns the task node it is attached to.
|
boolean |
isDataObject()
returns true if this Node is a BPMN data object
|
boolean |
isGateway()
returns true if this Node is a BPMN gateway
|
boolean |
isLane()
returns true if this Node is a BPMN Lane
|
boolean |
isPool()
returns true if this Node is a BPMN Pool
|
boolean |
isSubProcess()
returns true if this Node is a BPMN SubProcess
|
boolean |
isVertical()
Applies to Pools and Lanes and
returns true if this Node in "Vertical" orientation
and false if it is "Horizontal"
|
boolean |
placeDataObjectUpwards()
this method is called to decide whether this dataObject
should be placed on top (true) or below (false) it's connected Task
|
void |
setAttatchedTo(AbstractModelAdapter model,
NodeInterface node)
if this node is e.g. an attached intermediate event and was deleted during the layouting
process, the connection with its task can be reestablished here.
|
void |
setPos(int x,
int y)
sets the new position for this Node.
|
void |
setSize(int w,
int h)
modifies the size of the node.
|
equals, getNode, getPaddingX, getPos, getSize, getText, hashCode, isVirtualNode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPaddingX, getPos, getSize, getText, isVirtualNode
public BPMNNodeAdapter(ProcessNode n)
n
- public boolean isDataObject()
BPMNNodeInterface
isDataObject
in interface BPMNNodeInterface
public boolean placeDataObjectUpwards()
BPMNNodeInterface
placeDataObjectUpwards
in interface BPMNNodeInterface
public NodeInterface isAttatchedTo(AbstractModelAdapter model)
BPMNNodeInterface
isAttatchedTo
in interface BPMNNodeInterface
public void setAttatchedTo(AbstractModelAdapter model, NodeInterface node)
BPMNNodeInterface
setAttatchedTo
in interface BPMNNodeInterface
public java.util.List<NodeInterface> getContainedNodes()
BPMNNodeInterface
getContainedNodes
in interface BPMNNodeInterface
public boolean isPool()
BPMNNodeInterface
isPool
in interface BPMNNodeInterface
public boolean isLane()
BPMNNodeInterface
isLane
in interface BPMNNodeInterface
public void setSize(int w, int h)
BPMNNodeInterface
setSize
in interface BPMNNodeInterface
public void setPos(int x, int y)
NodeInterface
setPos
in interface NodeInterface
setPos
in class ProcessNodeAdapter
public boolean isSubProcess()
BPMNNodeInterface
isSubProcess
in interface BPMNNodeInterface
public boolean isGateway()
BPMNNodeInterface
isGateway
in interface BPMNNodeInterface
public boolean isAnnotation()
BPMNNodeInterface
isAnnotation
in interface BPMNNodeInterface
public EdgeInterface getDockedTo()
NodeInterface
getDockedTo
in interface NodeInterface
getDockedTo
in class ProcessNodeAdapter
public int getPaddingY()
NodeInterface
getPaddingY
in interface NodeInterface
getPaddingY
in class ProcessNodeAdapter
public boolean isVertical()
BPMNNodeInterface
isVertical
in interface BPMNNodeInterface