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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Property property) Adds property to this group.intGet the minimum distance between any two path segments.booleanGet Route Only Necessary property value.booleanGet Use Existing Bends property value.protected voidvoidSets 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, setOptimizeLabelOrientationsMethods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, getOptions, getProperty, getVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisibleMethods 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: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
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.
-