Class TreeLayouterOptionsGroup
- 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.TreeLayouterOptionsGroup
-
- All Implemented Interfaces:
java.lang.Cloneable
@OpenApiAll public class TreeLayouterOptionsGroup extends AbstractDiagramLayouterOptionsGroup
Organic Layouter options group.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BALLOON
static java.lang.String
BORDER_CENTERED
static java.lang.String
BORDER_DISTRIBUTED
static java.lang.String
CENTER_ROOT
static java.lang.String
DIRECTED
static java.lang.String
DIRECTED_ROOT
static java.lang.String
HORIZONTAL_VERTICAL
static java.lang.String
ID
private static java.lang.Object[][]
LAYOUT_STYLE_ENABLE_MAP
private static java.util.List
LAYOUT_STYLES
static java.lang.String
NODE_CENTERED
private static java.lang.Object[][]
ORIENTATION_ENABLE_MAP
private static java.lang.Object[][]
ORTHOGONAL_LINK_ENABLE_MAP
private static java.util.List
PORT_STYLES
private static java.util.List
ROOT_SHAPE_POSITIONS
-
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
-
Fields inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
ICON_ENVIRONMENT_OPTIONS
-
-
Constructor Summary
Constructors Constructor Description TreeLayouterOptionsGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(Property property)
Adds property to this group.double
getCompactnessFactor()
Get compactness factor.int
getHorizontalSpacing()
Get The minimal horizontal distance between adjacent shapes.java.lang.String
getLayoutStyle()
Get string layout representation.boolean
getMakeSubTrees()
Get Make Sub trees property value.int
getMinimalLayerDistance()
Get the minimal distance between shapes that reside in adjacent layers.int
getMinimalLinkLength()
Get the minimal length of a path that connects two shapes that lie on separate circles.int
getMinimalShapeDistance()
Get the minimal distance between borders of two adjacent shapes on a common circle.java.lang.String
getOrientation()
Get main layout orientation.boolean
getOrthogonalLinkRouting()
Get Orthogonal Link Routing.java.lang.String
getPortStyle()
Get Port Style property value.int
getPreferredChildWedge()
Get the angular range of the sector that will be reserved for children of a shape.int
getPreferredRootWedge()
Get the angular range of the sector that will be reserved around the root shape to accommodate attached subtrees.java.lang.String
getRootShapePosition()
Get Root Shape Position property value.java.lang.String
getShapeAlignment()
Gets shape alignment option value.int
getVerticalSpacing()
Get The minimal vertical distance between adjacent shapes.protected void
initCommonDefaultValues()
void
setCompactnessFactor(double d)
Set compactness factor.void
setHorizontalSpacing(int d)
Set The minimal horizontal distance between adjacent shapes.void
setLayoutStyle(java.lang.String s)
Set layout style property value..void
setMakeSubTrees(boolean b)
Set Make Sub trees property value to set the inheritance paths are joined into inheritance arcs.void
setMinimalLayerDistance(int d)
Set the minimal distance between shapes that reside in adjacent layers.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
setOrientation(java.lang.String s)
Set main layout orientation.void
setOrthogonalLinkRouting(boolean b)
Set Orthogonal Link Routing.void
setPortStyle(java.lang.String s)
Set Port Style property value.void
setPreferredChildWedge(int d)
Set the angular range of the sector that will be reserved for children of a shape.void
setPreferredRootWedge(int d)
Set the angular range of the sector that will be reserved around the root shape to accommodate attached subtrees.void
setRootShapePosition(java.lang.String s)
Set Root Shape Position property value.void
setShapeAlignment(java.lang.String s)
Sets shape alignment.void
setVerticalSpacing(int d)
Set The minimal vertical distance between adjacent shapes.-
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, afterLoad, beforeLoad, clone, createDefault, createOptions, createOptionsPanel, fixProperty, getOptions, getOptionsToSave, getProperty, getVisibleOptions, hasVisibleOptions, loadOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
-
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
add, afterSave, firstInit, getBanner, getChildren, getGroupIcon, getIcon, getId, getName, getParent, isEnabled, isVisible, remove, resetCachedValues, setEnabled, setVisible, sortChildren
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
DIRECTED
public static final java.lang.String DIRECTED
- See Also:
- Constant Field Values
-
BALLOON
public static final java.lang.String BALLOON
- See Also:
- Constant Field Values
-
HORIZONTAL_VERTICAL
public static final java.lang.String HORIZONTAL_VERTICAL
- See Also:
- Constant Field Values
-
LAYOUT_STYLES
private static final java.util.List LAYOUT_STYLES
-
NODE_CENTERED
public static final java.lang.String NODE_CENTERED
- See Also:
- Constant Field Values
-
BORDER_CENTERED
public static final java.lang.String BORDER_CENTERED
- See Also:
- Constant Field Values
-
BORDER_DISTRIBUTED
public static final java.lang.String BORDER_DISTRIBUTED
- See Also:
- Constant Field Values
-
PORT_STYLES
private static final java.util.List PORT_STYLES
-
DIRECTED_ROOT
public static final java.lang.String DIRECTED_ROOT
- See Also:
- Constant Field Values
-
CENTER_ROOT
public static final java.lang.String CENTER_ROOT
- See Also:
- Constant Field Values
-
ROOT_SHAPE_POSITIONS
private static final java.util.List ROOT_SHAPE_POSITIONS
-
LAYOUT_STYLE_ENABLE_MAP
private static final java.lang.Object[][] LAYOUT_STYLE_ENABLE_MAP
-
ORTHOGONAL_LINK_ENABLE_MAP
private static final java.lang.Object[][] ORTHOGONAL_LINK_ENABLE_MAP
-
ORIENTATION_ENABLE_MAP
private static final java.lang.Object[][] ORIENTATION_ENABLE_MAP
-
-
Method Detail
-
initCommonDefaultValues
protected void initCommonDefaultValues()
- Overrides:
initCommonDefaultValues
in classAbstractDiagramLayouterOptionsGroup
-
getLayoutStyle
public java.lang.String getLayoutStyle()
Get string layout representation.- Returns:
- string.
-
setLayoutStyle
public void setLayoutStyle(java.lang.String s)
Set layout style property value..- Parameters:
s
- the new layout style
-
getMinimalLayerDistance
public int getMinimalLayerDistance()
Get the minimal distance between shapes that reside in adjacent layers.- Returns:
- int value.
-
setMinimalLayerDistance
public void setMinimalLayerDistance(int d)
Set the minimal distance between shapes that reside in adjacent layers.- Parameters:
d
- int value.
-
getMinimalShapeDistance
public int getMinimalShapeDistance()
Get the minimal distance between borders of two adjacent shapes on a common circle. The smaller the distance, the more compact resulting layout.- Returns:
- int value.
-
setMinimalShapeDistance
public void setMinimalShapeDistance(int d)
Set the minimal distance between borders of two adjacent shapes on a common circle. The smaller the distance, the more compact resulting layout.- Parameters:
d
- value.
-
getOrientation
public java.lang.String getOrientation()
Get main layout orientation.- Returns:
- value.
-
setOrientation
public void setOrientation(java.lang.String s)
Set main layout orientation.- Parameters:
s
- value.
-
getPortStyle
public java.lang.String getPortStyle()
Get Port Style property value. Determines the way how paths are attached to shapes. Border Centered. Paths are attached to the center of the border of corresponding shapes. Border Distributed. Path attachment points are distributed along the border of corresponding shapes.- Returns:
- a mode how paths are attached to shapes
-
setPortStyle
public void setPortStyle(java.lang.String s)
Set Port Style property value. Determines the way how paths are attached to shapes. Border Centered. Paths are attached to the center of the border of corresponding shapes. Border Distributed. Path attachment points are distributed along the border of corresponding shapes.- Parameters:
s
- the new port style to set
-
setOrthogonalLinkRouting
public void setOrthogonalLinkRouting(boolean b)
Set Orthogonal Link Routing. If selected, all paths are routed orthogonally in a bus-like fashion. If not selected, paths are routed as straight line segments.- Parameters:
b
- boolean.
-
getOrthogonalLinkRouting
public boolean getOrthogonalLinkRouting()
Get Orthogonal Link Routing. If selected, all paths are routed orthogonally in a bus-like fashion. If not selected, paths are routed as straight line segments.- Returns:
- true if links are router orthogonally, false otherwise
-
getRootShapePosition
public java.lang.String getRootShapePosition()
Get Root Shape Position property value. Directed Root. Chooses a shape with in-degree zero if present. A good choice for directed rooted trees. Center Root. Chooses the root shape in such a way that the depth of the resulting tree is minimized.- Returns:
- String.
-
setRootShapePosition
public void setRootShapePosition(java.lang.String s)
Set Root Shape Position property value. Directed Root. Chooses a shape with indegree zero if present. A good choice for directed rooted trees. Center Root. Chooses the root shape in such a way that the depth of the resulting tree is minimized.- Parameters:
s
- the shape positioning 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.
-
getPreferredRootWedge
public int getPreferredRootWedge()
Get the angular range of the sector that will be reserved around the root shape to accommodate attached subtrees.- Returns:
- int
-
setPreferredRootWedge
public void setPreferredRootWedge(int d)
Set the angular range of the sector that will be reserved around the root shape to accommodate attached subtrees.- Parameters:
d
- int.
-
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:
- the minimal length of the path
-
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
- the new minimal path length
-
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:
- compactness factor of the graph
-
setCompactnessFactor
public void setCompactnessFactor(double d)
Set compactness factor.- Parameters:
d
- value.
-
getHorizontalSpacing
public int getHorizontalSpacing()
Get The minimal horizontal distance between adjacent shapes.- Returns:
- int.
-
setHorizontalSpacing
public void setHorizontalSpacing(int d)
Set The minimal horizontal distance between adjacent shapes.- Parameters:
d
- int value.
-
getVerticalSpacing
public int getVerticalSpacing()
Get The minimal vertical distance between adjacent shapes.- Returns:
- int.
-
setVerticalSpacing
public void setVerticalSpacing(int d)
Set The minimal vertical distance between adjacent shapes.- Parameters:
d
- int value.
-
setMakeSubTrees
public void setMakeSubTrees(boolean b)
Set Make Sub trees property value to set the inheritance paths are joined into inheritance arcs.- Parameters:
b
- true to create tree sets, false otherwise
-
getMakeSubTrees
public boolean getMakeSubTrees()
Get Make Sub trees property value.- Returns:
- boolean
-
addProperty
public void addProperty(Property property)
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.
-
setShapeAlignment
public void setShapeAlignment(java.lang.String s)
Sets shape alignment.- Parameters:
s
- shape alignment to set.
-
getShapeAlignment
public java.lang.String getShapeAlignment()
Gets shape alignment option value.- Returns:
- shape alignment option value.
-
-