Enum Class MatrixSettings.Direction
java.lang.Object
java.lang.Enum<MatrixSettings.Direction>
com.nomagic.magicdraw.dependencymatrix.persistence.MatrixSettings.Direction
- All Implemented Interfaces:
Serializable
,Comparable<MatrixSettings.Direction>
,Constable
- Enclosing class:
- MatrixSettings
Dependency filter and default edit direction setting enum
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixSettings.Direction
getDirectionFromEnum
(Object direction) Converts enumeration literal to enum valuestatic MatrixSettings.Direction
finds direction by its representation typegetType()
Returns representation type for this enum valueinvert()
Gets inverted direction or the sam for BOTH.boolean
Returns if column to row mode is supported -COLUMN_TO_ROW
andBOTH
cases.boolean
Returns if row to column mode is supported -ROW_TO_COLUMN
andBOTH
cases.static MatrixSettings.Direction
Returns the enum constant of this class with the specified name.static MatrixSettings.Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROW_TO_COLUMN
-
COLUMN_TO_ROW
-
BOTH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDirectionFromEnum
Converts enumeration literal to enum value- Parameters:
direction
- enumeration literal object- Returns:
- direction corresponding to enumeration literal value
-
getType
Returns representation type for this enum value- Returns:
- representation string
-
isRowToColumnSupported
public boolean isRowToColumnSupported()Returns if row to column mode is supported -ROW_TO_COLUMN
andBOTH
cases.- Returns:
- true if supported.
-
isColumnToRowSupported
public boolean isColumnToRowSupported()Returns if column to row mode is supported -COLUMN_TO_ROW
andBOTH
cases.- Returns:
- true if supported.
-
getEnum
finds direction by its representation type- Parameters:
type
- representation type- Returns:
- enum value of this type
-
invert
Gets inverted direction or the sam for BOTH.- Returns:
- inverted direction
-