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:
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 minimal length of the first and last segments for orthogonal path routings, i.e.intGets the distance between two paths.intGets the minimal distance between paths and shapes.booleanGet Route On Grid property value.protected voidvoidSets 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.voidDetermines 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, 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
-
OrthogonalRouterOptionsGroup
public OrthogonalRouterOptionsGroup()
-
-
Method Details
-
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.
-
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.
-