public class Lane extends LaneableCluster implements Linkable
f_lanes, POOL_LABEL_WIDTH, PROP_VERTICAL
PROP_COLLAPSED, PROP_CONTAINED_NODES
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 |
---|
Lane()
needed for deserialization
|
Lane(java.lang.String name,
java.lang.Integer size,
LaneableCluster parent) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2,
int x,
int y,
int remainingSpace) |
void |
drawLast(java.awt.Graphics2D g2,
int movingCoord,
int fixed,
int remainingSpace) |
int |
getLaneSize()
returns the height of the lane
|
LaneableCluster |
getParent() |
ReferenceChooserRestriction |
getReferenceRestrictions() |
Pool |
getSurroundingPool() |
boolean |
isVertical() |
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
setParent(LaneableCluster parent)
switches the parent of this Lane.
|
void |
setPos(int x,
int y)
Sets the center position of this ProcessNode.
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property.
|
void |
setSize(int w,
int h) |
addLane, drawLanes, getLanes, getLanesRecursively, getMyPosition, getMySize, getOutlineShape, init, removeLane
addProcessNode, clearContainment, clone, getProcessNodes, getProcessNodesRecursivly, isCluster, isCollapseable, isCollapsed, isContained, isContainedGraphically, moveClusterNodes, removeProcessNode, setPosIgnoreContainedNodes, setProcessNodes, toString, updateContainments
addConnectionPoint, checkDefaultConnectionPoints, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBoundingBox, getBounds, getConnectionPoint, getConnectionPoint, getConnectionPoint, getDefaultConnectionPoints, getName, getParentClusters, getPos, getSelectionOffset, getSize, getStereotype, getText, getTopLeftPos, getUserObject, getVariants, getXmlTag, handleCloning, isShadowEnabled, isVisible, newInstanceFromSerialization, paint, paintHighlight, paintSelection, removeAllConnectionPoints, setBackground, 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 Lane()
public Lane(java.lang.String name, java.lang.Integer size, LaneableCluster parent)
string
- integer
- public void draw(java.awt.Graphics2D g2, int x, int y, int remainingSpace)
g2
- lane
- lane2
- remainingSpace
- protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class LaneableCluster
public void drawLast(java.awt.Graphics2D g2, int movingCoord, int fixed, int remainingSpace)
g2
- lane
- lane2
- remainingSpace
- public int getLaneSize()
public void setSize(int w, int h)
setSize
in class ProcessNode
public void setProperty(java.lang.String key, java.lang.String value)
ProcessObject
setProperty
in class LaneableCluster
public void setPos(int x, int y)
ProcessNode
public LaneableCluster getParent()
public Pool getSurroundingPool()
public void setParent(LaneableCluster parent)
parent
- public boolean isVertical()
isVertical
in class LaneableCluster
public ReferenceChooserRestriction getReferenceRestrictions()
getReferenceRestrictions
in interface Linkable
ReferenceChooserRestriction
.