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

public static enum MatrixSettings.Direction extends Enum<MatrixSettings.Direction>
Dependency filter and default edit direction setting enum
  • Enum Constant Details

  • Method Details

    • values

      public static MatrixSettings.Direction[] 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

      public static MatrixSettings.Direction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDirectionFromEnum

      public static MatrixSettings.Direction getDirectionFromEnum(@CheckForNull Object direction)
      Converts enumeration literal to enum value
      Parameters:
      direction - enumeration literal object
      Returns:
      direction corresponding to enumeration literal value
    • getType

      public String 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 and BOTH cases.
      Returns:
      true if supported.
    • isColumnToRowSupported

      public boolean isColumnToRowSupported()
      Returns if column to row mode is supported - COLUMN_TO_ROW and BOTH cases.
      Returns:
      true if supported.
    • getEnum

      public static MatrixSettings.Direction getEnum(String type)
      finds direction by its representation type
      Parameters:
      type - representation type
      Returns:
      enum value of this type
    • invert

      public MatrixSettings.Direction invert()
      Gets inverted direction or the sam for BOTH.
      Returns:
      inverted direction