public class TWFNodeAdapter extends BPMNNodeAdapter implements TWFNodeInterface
Constructor and Description |
---|
TWFNodeAdapter(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
|
int |
getPaddingY()
The value returned by this method adds a padding on the bottom/top (half of the value) of a node.
|
TWFNodeInterface |
getParent()
used to retrieve the parent of this ToolDocker
or ToolErrorConnector
|
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 |
isToolDocker()
return true, if this node is a tool docker
(the small circle which is used to connect
nodes outside of a Tool/Scope etc. with the inside)
|
boolean |
isToolErrorConnector()
return true, if this node is a tool error connector
(the small rectangle on the lower left which is used
in case of an error/escalation etc.)
|
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 |
setSize(int w,
int h)
modifies the size of the node.
|
getDockedTo, isVertical, setPos
equals, getNode, getPaddingX, getPos, getSize, getText, hashCode, isVirtualNode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isVertical
getDockedTo, getPaddingX, getPos, getSize, getText, isVirtualNode, setPos
public TWFNodeAdapter(ProcessNode n)
n
- public java.util.List<NodeInterface> getContainedNodes()
BPMNNodeInterface
getContainedNodes
in interface BPMNNodeInterface
getContainedNodes
in class BPMNNodeAdapter
public boolean isAnnotation()
BPMNNodeInterface
isAnnotation
in interface BPMNNodeInterface
isAnnotation
in class BPMNNodeAdapter
public NodeInterface isAttatchedTo(AbstractModelAdapter model)
BPMNNodeInterface
isAttatchedTo
in interface BPMNNodeInterface
isAttatchedTo
in class BPMNNodeAdapter
public boolean isDataObject()
BPMNNodeInterface
isDataObject
in interface BPMNNodeInterface
isDataObject
in class BPMNNodeAdapter
public boolean isGateway()
BPMNNodeInterface
isGateway
in interface BPMNNodeInterface
isGateway
in class BPMNNodeAdapter
public boolean isLane()
BPMNNodeInterface
isLane
in interface BPMNNodeInterface
isLane
in class BPMNNodeAdapter
public boolean isPool()
BPMNNodeInterface
isPool
in interface BPMNNodeInterface
isPool
in class BPMNNodeAdapter
public boolean isSubProcess()
BPMNNodeInterface
isSubProcess
in interface BPMNNodeInterface
isSubProcess
in class BPMNNodeAdapter
public boolean placeDataObjectUpwards()
BPMNNodeInterface
placeDataObjectUpwards
in interface BPMNNodeInterface
placeDataObjectUpwards
in class BPMNNodeAdapter
public void setAttatchedTo(AbstractModelAdapter model, NodeInterface node)
BPMNNodeInterface
setAttatchedTo
in interface BPMNNodeInterface
setAttatchedTo
in class BPMNNodeAdapter
public void setSize(int w, int h)
BPMNNodeInterface
setSize
in interface BPMNNodeInterface
setSize
in class BPMNNodeAdapter
public int getPaddingY()
NodeInterface
getPaddingY
in interface NodeInterface
getPaddingY
in class BPMNNodeAdapter
public boolean isToolErrorConnector()
TWFNodeInterface
isToolErrorConnector
in interface TWFNodeInterface
public TWFNodeInterface getParent()
TWFNodeInterface
getParent
in interface TWFNodeInterface
public boolean isToolDocker()
TWFNodeInterface
isToolDocker
in interface TWFNodeInterface