Class OrientationOptions
java.lang.Object
com.nomagic.magicdraw.core.options.OrientationOptions
Orientation options for layouter option groups
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetClockwiseOrientation(String orientation) static StringgetCounterClockwiseOrientation(String orientation) static bytegetOrientation(String orientation) Translates layouter option group orientation to core layouter byte orientation representation.static StringgetReversed(String orientation) static booleanisHorizontal(String orientation) static booleanisVertical(String orientation)
-
Field Details
-
TOP_TO_BOTTOM
- See Also:
-
BOTTOM_TO_TOP
- See Also:
-
LEFT_TO_RIGHT
- See Also:
-
RIGHT_TO_LEFT
- See Also:
-
SPECIFIED_BY_DIAGRAM
- See Also:
-
ORIENTATIONS
-
-
Constructor Details
-
OrientationOptions
public OrientationOptions()
-
-
Method Details
-
getOrientation
Translates layouter option group orientation to core layouter byte orientation representation. Only needed for custom layouter implementations.- Parameters:
orientation- layout options group orientation- Returns:
- core layouter mechanism orientation
-
isVertical
-
isHorizontal
-
getReversed
-
getClockwiseOrientation
- Parameters:
orientation- orientation- Returns:
- clockwise orientation of given one, throws an exception if argument is not valid
-
getCounterClockwiseOrientation
- Parameters:
orientation- orientation- Returns:
- clockwise orientation of given one, throws an exception if argument is not valid
-