public class Clock extends ProcessNode implements TimeConsumer
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 |
---|
Clock() |
Modifier and Type | Method and Description |
---|---|
void |
addTick()
Adds one time unit to the current time.
|
void |
addTicks(int ticks)
Adds ticks ticks to the current time.
|
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
resetTicks()
Resets the ticks to zero.
|
void |
setSize(int w,
int h) |
addConnectionPoint, checkDefaultConnectionPoints, clone, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBoundingBox, 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, setProperty, setShadowEnabled, setSize, setStereotype, setText, setUserObject, setVisible, toString, updateReferences
addContext, addListener, equals, getAlpha, getContexts, getId, getPropertyEditor, isHighlighted, isSelected, removeContext, removeListener, setAlpha, setHighlighted, setId, setPropertyEditor, setSelected
getProperty, getPropertyKeys, getSerialization, removeProperty
public void setSize(int w, int h)
setSize
in class ProcessNode
protected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class ProcessNode
protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class ProcessNode
public void addTick()
TimeConsumer
addTick
in interface TimeConsumer
public void addTicks(int ticks)
TimeConsumer
addTicks
in interface TimeConsumer
public void resetTicks()
TimeConsumer
resetTicks
in interface TimeConsumer