Package net.sourceforge.plantuml.svek
Class Cluster
- java.lang.Object
-
- net.sourceforge.plantuml.svek.Cluster
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCENTER_IDprotected ICucaDiagramdiagram
-
Constructor Summary
Constructors Constructor Description Cluster(ICucaDiagram diagram, ColorSequence colorSequence, ISkinParam skinParam, Entity root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(SvekNode node)ClustercreateChild(ClusterHeader clusterHeader, ColorSequence colorSequence, ISkinParam skinParam, Entity g)voiddrawU(UGraphic ug, UmlDiagramType umlDiagramType)static HColorgetBackColor(HColor backColor, Stereotype stereotype, SName styleName, USymbol symbol, StyleBuilder styleBuilder, HColorSet colorSet, GroupType groupType)java.util.List<Cluster>getChildren()java.lang.StringgetClusterId()intgetColorNoteBottom()intgetColorNoteTop()static StyleSignatureBasicgetDefaultStyleDefinition(SName diagramStyleName, USymbol symbol, GroupType groupType)java.util.Set<Entity>getGroups()java.util.List<SvekNode>getNodes()java.util.List<SvekNode>getNodes(java.util.EnumSet<EntityPosition> position)ClustergetParentCluster()RectangleAreagetRectangleArea()static UStrokegetStrokeInternal(Entity group, Style style)intgetTitleAndAttributeHeight()intgetTitleAndAttributeWidth()XDimension2DgetTitleDimension(StringBounder stringBounder)booleanisLabel()voidmoveSvek(double deltaX, double deltaY)booleanprintCluster1(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder)SvekNodeprintCluster2(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)voidprintCluster3_forKermor(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)voidsetNoteBottomPosition(XPoint2D pos)voidsetNoteTopPosition(XPoint2D pos)voidsetPosition(XPoint2D min, XPoint2D max)voidsetTitlePosition(XPoint2D pos)java.lang.StringtoString()
-
-
-
Field Detail
-
CENTER_ID
public static final java.lang.String CENTER_ID
- See Also:
- Constant Field Values
-
diagram
protected final ICucaDiagram diagram
-
-
Constructor Detail
-
Cluster
public Cluster(ICucaDiagram diagram, ColorSequence colorSequence, ISkinParam skinParam, Entity root)
-
-
Method Detail
-
moveSvek
public void moveSvek(double deltaX, double deltaY)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getParentCluster
public final Cluster getParentCluster()
-
addNode
public void addNode(SvekNode node)
-
getNodes
public final java.util.List<SvekNode> getNodes()
-
getNodes
public final java.util.List<SvekNode> getNodes(java.util.EnumSet<EntityPosition> position)
-
getChildren
public final java.util.List<Cluster> getChildren()
-
createChild
public Cluster createChild(ClusterHeader clusterHeader, ColorSequence colorSequence, ISkinParam skinParam, Entity g)
-
getGroups
public final java.util.Set<Entity> getGroups()
-
getTitleAndAttributeWidth
public final int getTitleAndAttributeWidth()
-
getTitleAndAttributeHeight
public final int getTitleAndAttributeHeight()
-
getRectangleArea
public RectangleArea getRectangleArea()
-
setTitlePosition
public void setTitlePosition(XPoint2D pos)
-
setNoteTopPosition
public void setNoteTopPosition(XPoint2D pos)
-
setNoteBottomPosition
public void setNoteBottomPosition(XPoint2D pos)
-
getDefaultStyleDefinition
public static StyleSignatureBasic getDefaultStyleDefinition(SName diagramStyleName, USymbol symbol, GroupType groupType)
-
drawU
public void drawU(UGraphic ug, UmlDiagramType umlDiagramType)
-
printCluster1
public boolean printCluster1(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder)
-
printCluster2
public SvekNode printCluster2(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)
-
printCluster3_forKermor
public void printCluster3_forKermor(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)
-
getClusterId
public java.lang.String getClusterId()
-
isLabel
public boolean isLabel()
-
getBackColor
public static HColor getBackColor(HColor backColor, Stereotype stereotype, SName styleName, USymbol symbol, StyleBuilder styleBuilder, HColorSet colorSet, GroupType groupType)
-
getColorNoteTop
public final int getColorNoteTop()
-
getColorNoteBottom
public final int getColorNoteBottom()
-
getTitleDimension
public XDimension2D getTitleDimension(StringBounder stringBounder)
-
-