Class OrientationOptions
java.lang.Object
com.nomagic.magicdraw.core.options.OrientationOptions
Orientation options for layouter option groups
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getClockwiseOrientation
(String orientation) static String
getCounterClockwiseOrientation
(String orientation) static byte
getOrientation
(String orientation) Translates layouter option group orientation to core layouter byte orientation representation.static String
getReversed
(String orientation) static boolean
isHorizontal
(String orientation) static boolean
isVertical
(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
-