public class Ruler extends ProcessHelper
Modifier and Type | Field and Description |
---|---|
int |
DISTANCE
The distance of the Ruler from the ProcessObject
|
protected ProcessNode |
node |
java.lang.String |
PROP_COLOR
The property for the background color
|
protected boolean |
showHorizontal |
protected boolean |
showVertical |
TAG_HELPER
contexts, FALSE, PROP_CLASS_TYPE, PROP_ID, TRUE
Constructor and Description |
---|
Ruler(ProcessNode node)
Creates a new Ruler for a ProcessNode.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.awt.Color |
getColor() |
protected java.awt.Color |
getColor(java.lang.String colorPropertyValue) |
boolean |
isSelectable()
Returns whether this ProcessHelper can be selected in the ProcessEditor or not.
|
boolean |
isShowHorizontal() |
boolean |
isShowVertical() |
void |
paint(java.awt.Graphics g)
Paints this ProcessHelper on a given Graphics.
|
void |
setShowHorizontal(boolean showHorizontal) |
void |
setShowVertical(boolean showVertical) |
contains, getXmlTag
addContext, addListener, equals, getAlpha, getContexts, getId, getName, getPropertyEditor, isHighlighted, isSelected, removeContext, removeListener, setAlpha, setHighlighted, setId, setProperty, setPropertyEditor, setSelected
getProperty, getPropertyKeys, getSerialization, removeProperty
protected ProcessNode node
protected boolean showHorizontal
protected boolean showVertical
public java.lang.String PROP_COLOR
public int DISTANCE
public Ruler(ProcessNode node)
node
- public java.lang.Object clone()
clone
in class ProcessHelper
public boolean isShowHorizontal()
public void setShowHorizontal(boolean showHorizontal)
public boolean isShowVertical()
public void setShowVertical(boolean showVertical)
public void paint(java.awt.Graphics g)
ProcessHelper
paint
in class ProcessHelper
public boolean isSelectable()
ProcessHelper
isSelectable
in class ProcessHelper
public java.awt.Color getColor()
protected java.awt.Color getColor(java.lang.String colorPropertyValue)