public abstract class Decorator extends DefaultGraphCell implements YAWLCell
Modifier and Type | Field and Description |
---|---|
static int |
AND_TYPE |
static int |
BOTTOM |
static int |
LEFT |
static int |
LONG_EDGE_PORT |
static int |
NO_TYPE |
static int |
NOWHERE |
static int |
OR_TYPE |
static int |
PORT_NUMBER |
static int |
RIGHT |
static int |
SHORT_EDGE_PORT |
static int |
TOP |
static int |
XOR_TYPE |
attributes
Constructor and Description |
---|
Decorator()
This constructor is ONLY to be invoked when we are reconstructing a decorator
from saved state.
|
Decorator(YAWLTask task,
int type,
int position)
This constructor is to be invoked whenever we are creating a new decorator
from scratch.
|
Modifier and Type | Method and Description |
---|---|
boolean |
detachFlow(YAWLFlowRelation flow) |
int |
getCardinalPosition() |
DecoratorPort |
getDefaultPort() |
int |
getFlowCount() |
java.util.HashSet<YAWLFlowRelation> |
getFlows() |
java.awt.geom.Point2D |
getLocationRelativeToTask() |
YAWLFlowRelation |
getOnlyFlow() |
DecoratorPort |
getPortAtIndex(int index) |
DecoratorPort[] |
getPorts() |
DecoratorPort |
getPortWithOnlyFlow() |
java.awt.Dimension |
getSizeRelativeToTask() |
YAWLTask |
getTask() |
int |
getType() |
boolean |
isCopyable() |
boolean |
isLongEdgePort(DecoratorPort port) |
boolean |
isRemovable() |
void |
refreshPortLocations() |
void |
setCardinalPosition(int position) |
protected void |
setPortLocation(DecoratorPort port,
java.awt.geom.Point2D point) |
void |
setTask(YAWLTask task) |
void |
setType(int type) |
addPort, addPort, addPort, changeAttributes, clone, getAttributes, getChildren, setAttributes
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptsIncomingFlows, generatesOutgoingFlows
public static final int NO_TYPE
public static final int AND_TYPE
public static final int OR_TYPE
public static final int XOR_TYPE
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static final int NOWHERE
public static final int LONG_EDGE_PORT
public static final int SHORT_EDGE_PORT
public static final int PORT_NUMBER
public Decorator()
public Decorator(YAWLTask task, int type, int position)
public void setTask(YAWLTask task)
public YAWLTask getTask()
public java.awt.Dimension getSizeRelativeToTask()
public java.awt.geom.Point2D getLocationRelativeToTask()
public void setCardinalPosition(int position)
public int getCardinalPosition()
public int getType()
public void setType(int type)
public void refreshPortLocations()
public DecoratorPort[] getPorts()
protected void setPortLocation(DecoratorPort port, java.awt.geom.Point2D point)
public boolean isRemovable()
isRemovable
in interface YAWLCell
public boolean isCopyable()
isCopyable
in interface YAWLCell
public DecoratorPort getPortAtIndex(int index)
public boolean isLongEdgePort(DecoratorPort port)
public int getFlowCount()
public java.util.HashSet<YAWLFlowRelation> getFlows()
public boolean detachFlow(YAWLFlowRelation flow)
public DecoratorPort getPortWithOnlyFlow()
public DecoratorPort getDefaultPort()
public YAWLFlowRelation getOnlyFlow()