Enum Class ImageServiceBean.ImageOrigin

java.lang.Object
java.lang.Enum<ImageServiceBean.ImageOrigin>
org.eclipse.dawnsci.plotting.api.histogram.ImageServiceBean.ImageOrigin
All Implemented Interfaces:
Serializable, Comparable<ImageServiceBean.ImageOrigin>, Constable
Enclosing class:
ImageServiceBean

public static enum ImageServiceBean.ImageOrigin extends Enum<ImageServiceBean.ImageOrigin>
Enumeration of image origin in anti-clockwise order. This order is required as the ordinal is used to rotate an image
  • Enum Constant Details

  • Method Details

    • values

      public static ImageServiceBean.ImageOrigin[] 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 ImageServiceBean.ImageOrigin 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
    • getLabel

      public String getLabel()
    • forLabel

      public static ImageServiceBean.ImageOrigin forLabel(String label)
    • isOnLeadingDiagonal

      public boolean isOnLeadingDiagonal()
      Returns:
      true if image origin is top-left or bottom-right
    • isOnTop

      public boolean isOnTop()
      Returns:
      true if image origin is top-left or top-right
    • isOnLeft

      public boolean isOnLeft()
      Returns:
      true if image origin is top-left or bottom-left