public abstract class Cluster extends ProcessNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_COLLAPSED
Marks if this cluster is currently collapsed
|
static java.lang.String |
PROP_CONTAINED_NODES
Property for the contained Nodes of this Cluster
|
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 |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
void |
addProcessNode(ProcessNode n)
Adds a ProcessNode to this Cluster.
|
void |
clearContainment() |
Cluster |
clone() |
java.util.List<ProcessNode> |
getProcessNodes()
Returns the set of ProcessNodes contained in this Cluster.
|
java.util.List<ProcessNode> |
getProcessNodesRecursivly() |
boolean |
isCluster()
Returns if this node is an instance of a subclass of Cluster
|
boolean |
isCollapseable()
Returns if this cluster is collapseable.
|
boolean |
isCollapsed() |
boolean |
isContained(ProcessNode n)
Returns whether a certain ProcessNode is contained inside this Cluster.
|
boolean |
isContainedGraphically(java.util.List<ProcessNode> allNodes,
ProcessNode node,
boolean onTopRequired)
Returns whether a certain ProcessNode is graphically contained or not.
|
protected void |
moveClusterNodes(int dx,
int dy) |
void |
removeProcessNode(ProcessNode n)
Removes a ProcessNode from this Cluster.
|
void |
setPos(int x,
int y)
Sets the center position of this ProcessNode.
|
void |
setPosIgnoreContainedNodes(int x,
int y) |
void |
setProcessNodes(java.util.Collection<ProcessNode> nodes)
Sets the Nodeset as the ProcessNodes of the Cluster
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property.
|
java.lang.String |
toString() |
void |
updateContainments(java.util.List<ProcessNode> nodes)
Updates the containment set.
|
addConnectionPoint, checkDefaultConnectionPoints, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBoundingBox, getBounds, getConnectionPoint, getConnectionPoint, getConnectionPoint, getDefaultConnectionPoints, getName, getOutlineShape, getParentClusters, getPos, getSelectionOffset, getSize, getStereotype, getText, getTopLeftPos, getUserObject, getVariants, getXmlTag, handleCloning, isShadowEnabled, isVisible, newInstanceFromSerialization, paint, paintHighlight, paintInternal, paintSelection, removeAllConnectionPoints, setBackground, setPos, 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
public static final java.lang.String PROP_CONTAINED_NODES
public static final java.lang.String PROP_COLLAPSED
public boolean isCollapseable()
public boolean isCollapsed()
public void setPos(int x, int y)
ProcessNode
setPos
in class ProcessNode
public void setPosIgnoreContainedNodes(int x, int y)
protected void moveClusterNodes(int dx, int dy)
public void setProperty(java.lang.String key, java.lang.String value)
ProcessObject
setProperty
in class ProcessNode
public void addProcessNode(ProcessNode n)
n
- public void removeProcessNode(ProcessNode n)
n
- public java.util.List<ProcessNode> getProcessNodes()
public java.util.List<ProcessNode> getProcessNodesRecursivly()
public void setProcessNodes(java.util.Collection<ProcessNode> nodes)
NODES
- public boolean isContained(ProcessNode n)
n
- public void updateContainments(java.util.List<ProcessNode> nodes)
nodes
- public void clearContainment()
public boolean isContainedGraphically(java.util.List<ProcessNode> allNodes, ProcessNode node, boolean onTopRequired)
public boolean isCluster()
ProcessNode
isCluster
in class ProcessNode
public java.lang.String toString()
toString
in class ProcessNode
public Cluster clone()
clone
in class ProcessNode