Class OrientationOptions
- java.lang.Object
-
- com.nomagic.magicdraw.core.options.OrientationOptions
-
@OpenApiAll public class OrientationOptions extends java.lang.Object
Orientation options for layouter option groups
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BOTTOM_TO_TOP
static java.lang.String
LEFT_TO_RIGHT
static java.util.List
ORIENTATIONS
static java.lang.String
RIGHT_TO_LEFT
static java.lang.String
SPECIFIED_BY_DIAGRAM
static java.lang.String
TOP_TO_BOTTOM
-
Constructor Summary
Constructors Constructor Description OrientationOptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getClockwiseOrientation(java.lang.String orientation)
static java.lang.String
getCounterClockwiseOrientation(java.lang.String orientation)
static byte
getOrientation(java.lang.String orientation)
Translates layouter option group orientation to core layouter byte orientation representation.static java.lang.String
getReversed(java.lang.String orientation)
static boolean
isHorizontal(java.lang.String orientation)
static boolean
isVertical(java.lang.String orientation)
-
-
-
Field Detail
-
TOP_TO_BOTTOM
public static final java.lang.String TOP_TO_BOTTOM
- See Also:
- Constant Field Values
-
BOTTOM_TO_TOP
public static final java.lang.String BOTTOM_TO_TOP
- See Also:
- Constant Field Values
-
LEFT_TO_RIGHT
public static final java.lang.String LEFT_TO_RIGHT
- See Also:
- Constant Field Values
-
RIGHT_TO_LEFT
public static final java.lang.String RIGHT_TO_LEFT
- See Also:
- Constant Field Values
-
SPECIFIED_BY_DIAGRAM
public static final java.lang.String SPECIFIED_BY_DIAGRAM
- See Also:
- Constant Field Values
-
ORIENTATIONS
public static final java.util.List ORIENTATIONS
-
-
Method Detail
-
getOrientation
public static byte getOrientation(java.lang.String orientation)
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
public static boolean isVertical(java.lang.String orientation)
-
isHorizontal
public static boolean isHorizontal(java.lang.String orientation)
-
getReversed
public static java.lang.String getReversed(java.lang.String orientation)
-
getClockwiseOrientation
public static java.lang.String getClockwiseOrientation(java.lang.String orientation)
- Parameters:
orientation
- orientation- Returns:
- clockwise orientation of given one, throws an exception if argument is not valid
-
getCounterClockwiseOrientation
public static java.lang.String getCounterClockwiseOrientation(java.lang.String orientation)
- Parameters:
orientation
- orientation- Returns:
- clockwise orientation of given one, throws an exception if argument is not valid
-
-