public abstract class YAWLVertex extends DefaultGraphCell implements YAWLCell
Modifier and Type | Field and Description |
---|---|
protected YExternalNetElement |
_yawlElement |
static int |
BOTTOM |
static java.awt.Color |
DEFAULT_VERTEX_FOREGROUND |
static int |
LEFT |
static int |
NOWHERE |
static int |
RIGHT |
static int |
TOP |
attributes
Constructor and Description |
---|
YAWLVertex(java.awt.geom.Point2D startPoint)
This constructor is to be invoked whenever we are creating a new vertex
from scratch.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsIncomingFlows() |
protected void |
addDefaultBottomPort() |
protected void |
addDefaultLeftPort() |
protected void |
addDefaultPorts() |
protected void |
addDefaultRightPort() |
protected void |
addDefaultTopPort() |
java.lang.Object |
clone()
Create a clone of the cell.
|
void |
detachFlow(YAWLFlowRelation flow) |
boolean |
generatesOutgoingFlows() |
java.awt.Color |
getBackgroundColor() |
java.awt.geom.Rectangle2D |
getBounds() |
YAWLPort |
getDefaultSourcePort() |
YAWLPort |
getDefaultTargetPort() |
java.lang.String |
getDesignNotes() |
abstract java.lang.String |
getDocumentation() |
int |
getFlowCount() |
java.util.Set |
getFlows() |
abstract java.lang.String |
getID() |
java.util.Set<YAWLFlowRelation> |
getIncomingFlows() |
java.lang.String |
getInnerToolTipText() |
java.lang.String |
getLabel() |
abstract java.lang.String |
getName() |
YAWLFlowRelation |
getOnlyIncomingFlow() |
YAWLFlowRelation |
getOnlyOutgoingFlow() |
java.util.Set<YAWLFlowRelation> |
getOutgoingFlows() |
YAWLPort |
getPortAt(int position) |
YAWLPort[] |
getPorts() |
int |
getPositionOfIncomingFlow() |
int |
getPositionOfOutgoingFlow() |
java.awt.geom.Point2D |
getStartPoint() |
java.lang.String |
getToolTipText() |
abstract java.lang.String |
getType() |
VertexLabel |
getVertexLabel() |
static java.awt.Dimension |
getVertexSize() |
YExternalNetElement |
getYAWLElement() |
boolean |
hasLabel() |
boolean |
isCopyable() |
boolean |
isRemovable() |
void |
setBackgroundColor(java.awt.Color color) |
void |
setBounds(java.awt.geom.Rectangle2D bounds) |
void |
setDesignNotes(java.lang.String notes) |
abstract void |
setDocumentation(java.lang.String doco) |
abstract void |
setID(java.lang.String id) |
abstract void |
setName(java.lang.String name) |
void |
setYAWLElement(YExternalNetElement element) |
java.lang.String |
toString() |
addPort, addPort, addPort, changeAttributes, 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
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 java.awt.Color DEFAULT_VERTEX_FOREGROUND
protected YExternalNetElement _yawlElement
public YAWLVertex(java.awt.geom.Point2D startPoint)
public abstract java.lang.String getID()
public abstract void setID(java.lang.String id)
public abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
public abstract void setDocumentation(java.lang.String doco)
public abstract java.lang.String getDocumentation()
public java.awt.geom.Point2D getStartPoint()
public void setYAWLElement(YExternalNetElement element)
public YExternalNetElement getYAWLElement()
public void setDesignNotes(java.lang.String notes)
public java.lang.String getDesignNotes()
public void setBackgroundColor(java.awt.Color color)
public java.awt.Color getBackgroundColor()
public static java.awt.Dimension getVertexSize()
public java.lang.String getToolTipText()
public java.lang.String getInnerToolTipText()
protected void addDefaultPorts()
protected void addDefaultLeftPort()
protected void addDefaultRightPort()
protected void addDefaultTopPort()
protected void addDefaultBottomPort()
public YAWLPort getDefaultSourcePort()
public YAWLPort getDefaultTargetPort()
public YAWLPort getPortAt(int position)
public int getPositionOfIncomingFlow()
public int getPositionOfOutgoingFlow()
public java.lang.String getLabel()
public VertexLabel getVertexLabel()
public boolean hasLabel()
public void setBounds(java.awt.geom.Rectangle2D bounds)
public java.awt.geom.Rectangle2D getBounds()
public boolean isRemovable()
isRemovable
in interface YAWLCell
public boolean isCopyable()
isCopyable
in interface YAWLCell
public boolean generatesOutgoingFlows()
generatesOutgoingFlows
in interface YAWLCell
public boolean acceptsIncomingFlows()
acceptsIncomingFlows
in interface YAWLCell
public YAWLPort[] getPorts()
public int getFlowCount()
public java.util.Set getFlows()
public void detachFlow(YAWLFlowRelation flow)
public java.util.Set<YAWLFlowRelation> getOutgoingFlows()
public java.util.Set<YAWLFlowRelation> getIncomingFlows()
public YAWLFlowRelation getOnlyIncomingFlow()
public YAWLFlowRelation getOnlyOutgoingFlow()
public abstract java.lang.String getType()
public java.lang.Object clone()
DefaultGraphCell
clone
in class DefaultGraphCell
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode