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.String
CENTER_ID
protected ICucaDiagram
diagram
-
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 void
addNode(SvekNode node)
Cluster
createChild(ClusterHeader clusterHeader, ColorSequence colorSequence, ISkinParam skinParam, Entity g)
void
drawU(UGraphic ug, UmlDiagramType umlDiagramType)
static HColor
getBackColor(HColor backColor, Stereotype stereotype, SName styleName, USymbol symbol, StyleBuilder styleBuilder, HColorSet colorSet, GroupType groupType)
java.util.List<Cluster>
getChildren()
java.lang.String
getClusterId()
int
getColorNoteBottom()
int
getColorNoteTop()
static StyleSignatureBasic
getDefaultStyleDefinition(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)
Cluster
getParentCluster()
RectangleArea
getRectangleArea()
static UStroke
getStrokeInternal(Entity group, Style style)
int
getTitleAndAttributeHeight()
int
getTitleAndAttributeWidth()
XDimension2D
getTitleDimension(StringBounder stringBounder)
boolean
isLabel()
void
moveSvek(double deltaX, double deltaY)
boolean
printCluster1(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder)
SvekNode
printCluster2(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)
void
printCluster3_forKermor(java.lang.StringBuilder sb, java.util.Collection<SvekLine> lines, StringBounder stringBounder, DotMode dotMode, GraphvizVersion graphvizVersion, UmlDiagramType type)
void
setNoteBottomPosition(XPoint2D pos)
void
setNoteTopPosition(XPoint2D pos)
void
setPosition(XPoint2D min, XPoint2D max)
void
setTitlePosition(XPoint2D pos)
java.lang.String
toString()
-
-
-
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:
toString
in 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)
-
-