Class OrganicRouterOptionsGroup
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.OrganicRouterOptionsGroup
- All Implemented Interfaces:
Cloneable
Organic 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(Property property) Adds property to this group.int
Get the minimum distance between any two path segments.boolean
Get Route Only Necessary property value.boolean
Get Use Existing Bends property value.protected void
void
Sets default values for the properties contained in this group.void
setMinimalDistance
(int d) Set the minimum distance between any two path segments.void
setRouteOnlyNecessary
(boolean b) Set Route Only Necessary property value.void
setUseExistingBends
(boolean b) Set Use Existing Bends property value.Methods inherited from class com.nomagic.magicdraw.core.options.AbstractDiagramLayouterOptionsGroup
getCopy, getMakePreferredLayoutSize, getOptimizeLabelOrientations, isMoveToFreeSpace, 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:
-
-
Constructor Details
-
OrganicRouterOptionsGroup
public OrganicRouterOptionsGroup()
-
-
Method Details
-
setDefaultValues
public void setDefaultValues()Description copied from class:AbstractPropertyOptionsGroup
Sets default values for the properties contained in this group. Overriding classes should set default values to the properties.- Overrides:
setDefaultValues
in classAbstractDiagramLayouterOptionsGroup
-
initCommonDefaultValues
protected void initCommonDefaultValues()- Overrides:
initCommonDefaultValues
in classAbstractDiagramLayouterOptionsGroup
-
getMinimumDistance
public int getMinimumDistance()Get the minimum distance between any two path segments.- Returns:
- int.
-
setMinimalDistance
public void setMinimalDistance(int d) Set the minimum distance between any two path segments.- Parameters:
d
- int.
-
setUseExistingBends
public void setUseExistingBends(boolean b) Set Use Existing Bends property value. This property Specifies whether existing bends should be used as an initial solution for the new routing.- Parameters:
b
- boolean
-
getUseExistingBends
public boolean getUseExistingBends()Get Use Existing Bends property value. This property Specifies whether existing bends should be used as an initial solution for the new routing.- Returns:
- true if should use existing bends, false otherwise
-
setRouteOnlyNecessary
public void setRouteOnlyNecessary(boolean b) Set Route Only Necessary property value. If True, only paths that violate the minimal distance criterion will be rerouted.- Parameters:
b
- boolean
-
getRouteOnlyNecessary
public boolean getRouteOnlyNecessary()Get Route Only Necessary property value. If True, only paths that violate the minimal distance criterion will be rerouted.- Returns:
- boolean.
-
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.
-