Class CircularLayouterOptionsGroup
java.lang.Object
com.nomagic.magicdraw.core.options.OptionsGroup
com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
com.nomagic.magicdraw.core.options.AbstractDiagramLayouterOptionsGroup
com.nomagic.magicdraw.core.options.CircularLayouterOptionsGroup
- All Implemented Interfaces:
Cloneable
Compact. Each group will consist of shapes that are reachable by two link disjoint paths. Shapes that belong to more than one group will be assigned exclusively to one group.
Isolated. Each group will consist of shapes that are reachable by two path disjoint paths.
All shapes belonging to more than one group will be assigned to an isolated group.
Single Cycle. All shapes will be arranged on a single circle.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.nomagic.magicdraw.core.options.AbstractDiagramLayouterOptionsGroup
ALIGNMENT_BOTTOM, ALIGNMENT_CENTER, ALIGNMENT_TOP, LAYOUT_LABEL_CONSIDERATION, LAYOUT_LABEL_CONSIDERATION_FULL, LAYOUT_LABEL_CONSIDERATION_NONE, LAYOUT_LABEL_CONSIDERATION_PARTIAL, MAX_INT_VALUE, SHAPE_ALIGNMENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(Property property) Adds property to this group.boolean
boolean
Get the radius of each circle in the layout automatically.double
Get compactness factor.int
Get the fixed radius for all circles in the resulting layout.Gets the string representation of layout style.int
Get the bigger the chosen value, the more compact the resulting layout.int
Get the minimal length of a path that connects two shapes that lie on separate circles.int
Get the minimal distance between borders of two adjacent shapes on a common circle.int
Get the angular range of the sector that will be reserved for children of a shape.protected void
void
setAllowOverlaps
(boolean b) Set allow overlap.void
setAutoCircleRadius
(boolean b) Set the radius of each circle in the layout automatically.void
setCompactnessFactor
(double d) Set compactness factor.void
setFixedCircleRadius
(int d) Set the fixed radius for all circles in the resulting layout.void
Set layout style.void
setMaximalDeviationAngle
(int d) Set the bigger the chosen value, the more compact the resulting layout.void
setMinimalLinkLength
(int d) Set the minimal length of a path that connects two shapes that lie on separate circles.void
setMinimalShapeDistance
(int d) Set the minimal distance between borders of two adjacent shapes on a common circle.void
setPreferredChildWedge
(int d) Set the angular range of the sector that will be reserved for children of a shape.Methods inherited from class com.nomagic.magicdraw.core.options.AbstractDiagramLayouterOptionsGroup
getCopy, getMakePreferredLayoutSize, getOptimizeLabelOrientations, isMoveToFreeSpace, setDefaultValues, setMakePreferredLayoutSize, setMoveToFreeSpace, setOptimizeLabelOrientations
Methods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, getOptions, getProperty, getVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
getGroupIcon, getIcon, getName
-
Field Details
-
ID
- See Also:
-
COMPACT
- See Also:
-
ISOLATED
- See Also:
-
SINGLE_CYCLE
- See Also:
-
-
Constructor Details
-
CircularLayouterOptionsGroup
public CircularLayouterOptionsGroup()Constructs CircularLayouterOptionsGroup
-
-
Method Details
-
initCommonDefaultValues
protected void initCommonDefaultValues()- Overrides:
initCommonDefaultValues
in classAbstractDiagramLayouterOptionsGroup
-
getLayoutStyle
Gets the string representation of layout style.- Returns:
- Layout style.
-
setLayoutStyle
Set layout style.- Parameters:
s
- Style value.
-
getMinimalShapeDistance
public int getMinimalShapeDistance()Get the minimal distance between borders of two adjacent shapes on a common circle.- Returns:
- int.
-
setMinimalShapeDistance
public void setMinimalShapeDistance(int d) Set the minimal distance between borders of two adjacent shapes on a common circle.- Parameters:
d
- value.
-
setAutoCircleRadius
public void setAutoCircleRadius(boolean b) Set the radius of each circle in the layout automatically. An automatically chosen radius is usually the smallest possible radius that obeys Minimal Node Distance.- Parameters:
b
- boolean value.
-
getAutoCircleRadius
public boolean getAutoCircleRadius()Get the radius of each circle in the layout automatically. An automatically chosen radius is usually the smallest possible radius that obeys Minimal Node Distance.- Returns:
- boolean value.
-
getFixedCircleRadius
public int getFixedCircleRadius()Get the fixed radius for all circles in the resulting layout. Minimal Node Distance will be ignored in this case.- Returns:
- int value.
-
setFixedCircleRadius
public void setFixedCircleRadius(int d) Set the fixed radius for all circles in the resulting layout. Minimal Node Distance will be ignored in this case.- Parameters:
d
- value.
-
getPreferredChildWedge
public int getPreferredChildWedge()Get the angular range of the sector that will be reserved for children of a shape. The remaining angular range will be automatically used to accommodate the edge that connects to the root node.- Returns:
- int.
-
setPreferredChildWedge
public void setPreferredChildWedge(int d) Set the angular range of the sector that will be reserved for children of a shape. The remaining angular range will be automatically used to accommodate the edge that connects to the root node.- Parameters:
d
- value.
-
getMinimalLinkLength
public int getMinimalLinkLength()Get the minimal length of a path that connects two shapes that lie on separate circles. The smaller the chosen value, the more compact the resulting layout.- Returns:
- int value.
-
setMinimalLinkLength
public void setMinimalLinkLength(int d) Set the minimal length of a path that connects two shapes that lie on separate circles. The smaller the chosen value, the more compact the resulting layout.- Parameters:
d
- value.
-
getMaximalDeviationAngle
public int getMaximalDeviationAngle()Get the bigger the chosen value, the more compact the resulting layout. If a value smaller than 90 degrees, the tree-edges might cross through the circularly arranged groups of shapes.- Returns:
- value.
-
setMaximalDeviationAngle
public void setMaximalDeviationAngle(int d) Set the bigger the chosen value, the more compact the resulting layout. If a value smaller than 90 degrees, the tree-edges might cross through the circularly arranged groups of shapes.- Parameters:
d
- value.
-
getCompactnessFactor
public double getCompactnessFactor()Get compactness factor. Adjusting this value can lead to a variety of differing layouts. For small values, the resulting layout will use much space and shapes tend to be far away from each other. Values around 0.5 lead to evenly distributed shapes, whereas values near 1.0 produce highly compact layouts.- Returns:
- the compactness factor
-
setCompactnessFactor
public void setCompactnessFactor(double d) Set compactness factor.- Parameters:
d
- value.
-
setAllowOverlaps
public void setAllowOverlaps(boolean b) Set allow overlap. Can result in more compact layout- Parameters:
b
- value.
-
getAllowOverlaps
public boolean getAllowOverlaps() -
addProperty
Description copied from class:AbstractPropertyOptionsGroup
Adds property to this group. DescriptionID will be reset. To add property with description useAbstractPropertyOptionsGroup.addProperty(Property, String)
method.- Overrides:
addProperty
in classAbstractPropertyOptionsGroup
- Parameters:
property
- property to be added.
-