Class OrthogonalRouterOptionsGroup
- 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.OrthogonalRouterOptionsGroup
-
- All Implemented Interfaces:
java.lang.Cloneable
@OpenApiAll public class OrthogonalRouterOptionsGroup extends AbstractDiagramLayouterOptionsGroup
Organic Layouter options group.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDprivate 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 OrthogonalRouterOptionsGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(Property property)Adds property to this group.intgetMinimalFirstSegmentLength()Get the minimal length of the first and last segments for orthogonal path routings, i.e.intgetMinimalPathToPathDistance()Gets the distance between two paths.intgetMinimalShapeToPathDistance()Gets the minimal distance between paths and shapes.booleangetRouteOnGrid()Get Route On Grid property value.protected voidinitCommonDefaultValues()voidsetDefaultValues()Sets default values for the properties contained in this group.voidsetMinimalFirstSegmentLength(int d)Set the minimal length of the first and last segments for orthogonal path routings, i.e.voidsetMinimalPathToPathDistance(int d)Determines the distance between two paths.voidsetMinimalShapeToPathDistance(int d)Determines the minimal distance between paths and shapes.voidsetRouteOnGrid(boolean b)Set Route On Grid 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
-
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.
-
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
-
getMinimalFirstSegmentLength
public int getMinimalFirstSegmentLength()
Get the minimal length of the first and last segments for orthogonal path routings, 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 routings, i.e. the length from the intersection points to the first or last bend point respectively.- Parameters:
d- the new minimal first segment length value
-
getMinimalShapeToPathDistance
public int getMinimalShapeToPathDistance()
Gets the minimal distance between paths and shapes.- Returns:
- int value.
-
setMinimalShapeToPathDistance
public void setMinimalShapeToPathDistance(int d)
Determines the minimal distance between paths and shapes.- Parameters:
d- the new minimal shape to path distance value
-
getMinimalPathToPathDistance
public int getMinimalPathToPathDistance()
Gets the distance between two paths.- Returns:
- int value.
-
setMinimalPathToPathDistance
public void setMinimalPathToPathDistance(int d)
Determines the distance between two paths.- Parameters:
d- the new minimal path to path distance value
-
setRouteOnGrid
public void setRouteOnGrid(boolean b)
Set Route On Grid property value. If True, all paths are routed on grid lines from the predefined grid.- Parameters:
b- boolean.
-
getRouteOnGrid
public boolean getRouteOnGrid()
Get Route On Grid property value.- Returns:
- trueif all paths are to be routed on grid lines from the predefined grid.
-
-