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.String
ID
private static java.lang.String[]
INVISIBLE
-
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 OrganicRouterOptionsGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(Property property)
Adds property to this group.int
getMinimumDistance()
Get the minimum distance between any two path segments.boolean
getRouteOnlyNecessary()
Get Route Only Necessary property value.boolean
getUseExistingBends()
Get Use Existing Bends property value.protected void
initCommonDefaultValues()
void
setDefaultValues()
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, 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
-
INVISIBLE
private static final java.lang.String[] INVISIBLE
-
-
Method Detail
-
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
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.
-
-