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:
java.lang.Cloneable
@OpenApiAll public class OrganicRouterOptionsGroup extends AbstractDiagramLayouterOptionsGroup
Organic Layouter options group.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID-
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
Constructors Constructor Description OrganicRouterOptionsGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(Property property)Adds property to this group.intgetMinimumDistance()Get the minimum distance between any two path segments.booleangetRouteOnlyNecessary()Get Route Only Necessary property value.booleangetUseExistingBends()Get Use Existing Bends property value.protected voidinitCommonDefaultValues()voidsetDefaultValues()Sets default values for the properties contained in this group.voidsetMinimalDistance(int d)Set the minimum distance between any two path segments.voidsetRouteOnlyNecessary(boolean b)Set Route Only Necessary property value.voidsetUseExistingBends(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 Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaultValues
public void setDefaultValues()
Description copied from class:AbstractPropertyOptionsGroupSets default values for the properties contained in this group. Overriding classes should set default values to the properties.- Overrides:
setDefaultValuesin classAbstractDiagramLayouterOptionsGroup
-
initCommonDefaultValues
protected void initCommonDefaultValues()
- Overrides:
initCommonDefaultValuesin 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
public void addProperty(Property property)
Description copied from class:AbstractPropertyOptionsGroupAdds property to this group. DescriptionID will be reset. To add property with description useAbstractPropertyOptionsGroup.addProperty(Property, String)method.- Overrides:
addPropertyin classAbstractPropertyOptionsGroup- Parameters:
property- property to be added.
-
-