Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_TOKEN_COUNT
The number of tokens in this resource place
|
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 |
---|
ResourcePlace() |
ResourcePlace(int x,
int y,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
void |
addToken(Token t) |
protected void |
clearCaches() |
void |
decreaseTokenCount()
Never goes beyond zero.
|
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
Token |
getToken(int processInstance)
Returns a random Token of a certain process instance
|
int |
getTokenCount()
Returns the number of all Tokens in this place.
|
void |
increaseTokenCount() |
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
removeAllTokens() |
Token |
removeToken(int processInstance) |
void |
removeToken(Token t) |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property.
|
void |
setSize(int diameter,
int ignored) |
java.lang.String |
toString() |
getBoundingBox, getTokens, getTokens, getWarningLevel, setWarningLevel
addConnectionPoint, checkDefaultConnectionPoints, clone, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBounds, getConnectionPoint, getConnectionPoint, getConnectionPoint, getDefaultConnectionPoints, getName, getParentClusters, getPos, getSelectionOffset, getSize, getStereotype, getText, getTopLeftPos, getUserObject, getVariants, getXmlTag, handleCloning, isCluster, isShadowEnabled, isVisible, newInstanceFromSerialization, paint, paintHighlight, paintSelection, removeAllConnectionPoints, setBackground, setPos, setPos, setShadowEnabled, 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
public static final java.lang.String PROP_TOKEN_COUNT
public ResourcePlace()
public ResourcePlace(int x, int y, java.lang.String label)
protected void clearCaches()
public int getTokenCount()
getTokenCount
in class Place
public void decreaseTokenCount()
public void increaseTokenCount()
public void removeToken(Token t)
removeToken
in class Place
public void removeAllTokens()
removeAllTokens
in class Place
public Token getToken(int processInstance)
Place
public Token removeToken(int processInstance)
removeToken
in class Place
public void setProperty(java.lang.String key, java.lang.String value)
ProcessObject
setProperty
in class ProcessNode
protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class Place
protected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class Place