Class HierarchicLayouterOptionsGroup
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.HierarchicLayouterOptionsGroup
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ActivityLayouterOptionsGroup
,ClassDiagramLayouterOptionsGroup
,CompositeLayouterOptionsGroup
,StateMachineLayouterOptionsGroup
Hierarchic Layouter options group.
-
Field Summary
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
ConstructorDescriptionConstruct HierarchicLayouterOptionsGroup -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(Property property) Adds property to this group.protected void
afterLoad
(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) boolean
Get Back Loop Routing property value in order to enabled all paths that do not point in the main layout direction will be routed as backloops.boolean
getCopy()
Get string representation route to oblique style with a certain number of bends.Get label consideration modeboolean
Gets the Layout only top level value.boolean
Get Make Sub trees property value.int
Get the minimal length of the first and last segments for orthogonal path routing, i.e.int
Get the minimal distance between shapes that reside in adjacent layers.int
Get the distance between adjacent pairs of horizontal path segments and between horizontal path segments and shapes.int
Get the minimal distance between borders of two adjacent shapes on a common circle.Get main layout orientation.boolean
Get Remove False Crossings property value in order to enable a post-processing step tries to eliminate all false path crossings.Get Shape position within a layer.boolean
Get Use Global Sequencing property value.boolean
Get the transposition property value determines a post-processing further reduces the number of path crossings.protected void
boolean
Check Layout Only Top Level property value.void
setBackloopRouting
(boolean b) Set Back Loop Routing property value in order to enabled all paths that do not point in the main layout direction will be routed as backloops.void
setConsiderLayoutTemplates
(boolean b) If set to true, leaves the elements that have layout templates unchanged.void
Set string representation route to oblique style with a certain number of bends.void
Set label consideration modevoid
setLayoutOnlyTopLevel
(boolean b) Set Layout Only Top Level property value in order to keeps the relative position of symbols inside packages and performs the top level layout.void
setMakeSubTrees
(boolean b) Set Make Sub trees property value to set the inheritance paths are joined into inheritance arcs.void
setMinimalFirstSegmentLength
(int d) Set the minimal length of the first and last segments for orthogonal path routing, i.e.void
setMinimalLayerDistance
(int d) Set the minimal distance between shapes that reside in adjacent layers.void
setMinimalLinkDistance
(int d) Set the distance between adjacent pairs of horizontal path segments and between horizontal path segments and shapes.void
setMinimalShapeDistance
(int d) Set the minimal distance between borders of two adjacent shapes on a common circle.void
Set main layout orientation.void
setRemoveFalseCrossings
(boolean b) Set Remove False Crossings property value determines a post-processing step tries to eliminate all false path crossings.void
void
Set Shape alignment within a layer.void
setUseGlobalSequencing
(boolean b) Set Use Global Sequencing property value.void
setUseTransposition
(boolean b) Set the transposition property value in order to enable a post-processing further reduces the number of path crossings.Methods inherited from class com.nomagic.magicdraw.core.options.AbstractDiagramLayouterOptionsGroup
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:
-
OBLIQUE
- See Also:
-
ORTHOGONAL
- See Also:
-
EDGE_ROUTINGS
-
-
Constructor Details
-
HierarchicLayouterOptionsGroup
Construct HierarchicLayouterOptionsGroup -
HierarchicLayouterOptionsGroup
public HierarchicLayouterOptionsGroup()
-
-
Method Details
-
initCommonDefaultValues
protected void initCommonDefaultValues()- Overrides:
initCommonDefaultValues
in classAbstractDiagramLayouterOptionsGroup
-
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.
-
getMinimalLinkDistance
public int getMinimalLinkDistance()Get the distance between adjacent pairs of horizontal path segments and between horizontal path segments and shapes.- Returns:
- int value.
-
setMinimalLinkDistance
public void setMinimalLinkDistance(int d) Set the distance between adjacent pairs of horizontal path segments and between horizontal path segments and shapes.- Parameters:
d
- new distance
-
getMinimalFirstSegmentLength
public int getMinimalFirstSegmentLength()Get the minimal length of the first and last segments for orthogonal path routing, i.e. the length from the intersection points to the first or last bend point respectively.- Returns:
- int value.
-
setMinimalFirstSegmentLength
public void setMinimalFirstSegmentLength(int d) Set the minimal length of the first and last segments for orthogonal path routing, i.e. the length from the intersection points to the first or last bend point respectively.- Parameters:
d
- new length
-
getOrientation
Get main layout orientation.- Returns:
- value.
-
setOrientation
Set main layout orientation.- Parameters:
s
- value.
-
getSequencer
-
setSequencer
-
getEdgeRouting
Get string representation route to oblique style with a certain number of bends.- Returns:
- string.
-
setEdgeRouting
Set string representation route to oblique style with a certain number of bends.- Parameters:
s
- string value.
-
setBackloopRouting
public void setBackloopRouting(boolean b) Set Back Loop Routing property value in order to enabled all paths that do not point in the main layout direction will be routed as backloops.- Parameters:
b
- boolean.
-
getBackloopRouting
public boolean getBackloopRouting()Get Back Loop Routing property value in order to enabled all paths that do not point in the main layout direction will be routed as backloops.- Returns:
- true if backloop routing is enabled, false otherwise
-
setShapeAlignmentWithinLayer
Set Shape alignment within a layer. -
getShapeAlignmentWithinLayer
Get Shape position within a layer.- Returns:
- string.
-
setUseTransposition
public void setUseTransposition(boolean b) Set the transposition property value in order to enable a post-processing further reduces the number of path crossings. The post-processing step can be rather time consuming.- Parameters:
b
- boolean value.
-
getUseTransposition
public boolean getUseTransposition()Get the transposition property value determines a post-processing further reduces the number of path crossings. The post-processing step can be rather time consuming.- Returns:
- value.
-
setRemoveFalseCrossings
public void setRemoveFalseCrossings(boolean b) Set Remove False Crossings property value determines a post-processing step tries to eliminate all false path crossings. A false path crossing is a path crossing between two paths that attached to the same shape.- Parameters:
b
- boolean value.
-
getRemoveFalseCrossings
public boolean getRemoveFalseCrossings()Get Remove False Crossings property value in order to enable a post-processing step tries to eliminate all false path crossings. A false path crossing is a path crossing between two paths that attached to the same shape.- Returns:
- true if should remove false crossings
-
setUseGlobalSequencing
public void setUseGlobalSequencing(boolean b) Set Use Global Sequencing property value. It can be used to activate an alternative sequencing algorithm that calculates the shapes order. This algorithm tends to give better results for complex shape nesting but may produce more crossings locally than the default algorithm.- Parameters:
b
- boolean
-
getUseGlobalSequencing
public boolean getUseGlobalSequencing()Get Use Global Sequencing property value. It can be used to activate an alternative sequencing algorithm that calculates the shapes order. This algorithm tends to give better results for complex shape nesting but may produce more crossings locally than the default algorithm.- Returns:
- boolean
-
setLayoutOnlyTopLevel
public void setLayoutOnlyTopLevel(boolean b) Set Layout Only Top Level property value in order to keeps the relative position of symbols inside packages and performs the top level layout.- Parameters:
b
- boolean.
-
getLayoutOnlyTopLevel
public boolean getLayoutOnlyTopLevel()Gets the Layout only top level value. It allows the inside of group nodes not to be layouted.- Returns:
- true if only outer nodes should be layouter, false if all nodes should be layouted
-
isLayoutOnlyTopLevel
public boolean isLayoutOnlyTopLevel()Check Layout Only Top Level property value. It indicates position of symbols inside packages is on the top level layout.- Returns:
- true if should layout only the top level, but not inner group node structure
-
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 make trees
-
getMakeSubTrees
public boolean getMakeSubTrees()Get Make Sub trees property value.- Returns:
- boolean
-
setLayoutLabelConsideration
Set label consideration mode -
getLayoutLabelConsideration
Get label consideration mode- Returns:
- string.
-
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.
-
afterLoad
@NotApi protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) -
setConsiderLayoutTemplates
public void setConsiderLayoutTemplates(boolean b) If set to true, leaves the elements that have layout templates unchanged. -
getConsiderLayoutTemplates
public boolean getConsiderLayoutTemplates() -
getCopy
- Overrides:
getCopy
in classAbstractDiagramLayouterOptionsGroup
-