public class Criterion extends ProcessNode implements AttachedNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SOURCE_NODE
The parent node
|
PROP_ANNOTATION, PROP_BACKGROUND, PROP_HEIGHT, PROP_LABEL, PROP_MODULEID, PROP_REF, PROP_SHADOW, PROP_STEREOTYPE, PROP_TEXT, PROP_WIDTH, PROP_XPOS, PROP_YPOS, TAG_NODE, userObject
contexts, FALSE, PROP_CLASS_TYPE, PROP_ID, TRUE
Constructor and Description |
---|
Criterion() |
Criterion(int x,
int y,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
ProcessNode |
getParentNode(ProcessModel model)
Returns the ProcessNode this AttachedNode belongs to.
|
java.lang.String |
getParentNodeId()
Returns the id of the parent node.
|
java.util.List<java.lang.Class<? extends ProcessNode>> |
getVariants()
Returns the list of variants for this node, e.g. the node types
that can be used to refactor this node.
|
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
setParentNode(ProcessNode node)
Sets the parent node.
|
java.lang.String |
toString() |
addConnectionPoint, checkDefaultConnectionPoints, clone, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBoundingBox, getBounds, getConnectionPoint, getConnectionPoint, getConnectionPoint, getDefaultConnectionPoints, getName, getParentClusters, getPos, getSelectionOffset, getSize, getStereotype, getText, getTopLeftPos, getUserObject, getXmlTag, handleCloning, isCluster, isShadowEnabled, isVisible, newInstanceFromSerialization, paint, paintHighlight, paintSelection, removeAllConnectionPoints, setBackground, setPos, setPos, setProperty, setShadowEnabled, setSize, setSize, setStereotype, setText, setUserObject, setVisible, updateReferences
addContext, addListener, equals, getAlpha, getContexts, getId, getPropertyEditor, isHighlighted, isSelected, removeContext, removeListener, setAlpha, setHighlighted, setId, setPropertyEditor, setSelected
getProperty, getPropertyKeys, getSerialization, removeProperty
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPos, getSize, setPos, setSize
public static final java.lang.String PROP_SOURCE_NODE
public Criterion()
public Criterion(int x, int y, java.lang.String label)
public ProcessNode getParentNode(ProcessModel model)
AttachedNode
getParentNode
in interface AttachedNode
public java.lang.String getParentNodeId()
AttachedNode
getParentNodeId
in interface AttachedNode
protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class ProcessNode
protected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class ProcessNode
public void setParentNode(ProcessNode node)
AttachedNode
setParentNode
in interface AttachedNode
public java.lang.String toString()
toString
in class ProcessNode
public java.util.List<java.lang.Class<? extends ProcessNode>> getVariants()
ProcessNode
getVariants
in class ProcessNode