Enum Graph.ImageType

java.lang.Object
java.lang.Enum<Graph.ImageType>
org.bzdev.graphs.Graph.ImageType
All Implemented Interfaces:
Serializable, Comparable<Graph.ImageType>
Enclosing class:
Graph

public static enum Graph.ImageType extends Enum<Graph.ImageType>
Enumeration specifying the image type for a graph. This enum provides a type-save value for the integer constants defined by BufferedImage.
  • Enum Constant Details

    • INT_RGB

      public static final Graph.ImageType INT_RGB
      Specifies an image type of BufferedImage.TYPE_INT_RGB.
    • INT_ARGB

      public static final Graph.ImageType INT_ARGB
      Specifies an image type of BufferedImage.TYPE_INT_ARGB.
    • INT_ARGB_PRE

      public static final Graph.ImageType INT_ARGB_PRE
      Specifies an image type of BufferedImage.TYPE_INT_ARGB_PRE.
    • INT_BGR

      public static final Graph.ImageType INT_BGR
      Specifies an image type of BufferedImage.TYPE_INT_BGR.
    • THREE_BYTE_BGR

      public static final Graph.ImageType THREE_BYTE_BGR
      Specifies an image type of BufferedImage.TYPE_3BYTE_BGR.
    • FOUR_BYTE_ABGR

      public static final Graph.ImageType FOUR_BYTE_ABGR
      Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR.
    • FOUR_BYTE_ABGR_PRE

      public static final Graph.ImageType FOUR_BYTE_ABGR_PRE
      Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR_PRE.
    • USHORT_565_RGB

      public static final Graph.ImageType USHORT_565_RGB
      Specifies an image type of BufferedImage.TYPE_USHORT_565_RGB.
    • USHORT_555_RGB

      public static final Graph.ImageType USHORT_555_RGB
      Specifies an image type of BufferedImage.TYPE_USHORT_555_RGB.
    • BYTE_GRAY

      public static final Graph.ImageType BYTE_GRAY
      Specifies an image type of BufferedImage.TYPE_BYTE_GRAY.
    • USHORT_GRAY

      public static final Graph.ImageType USHORT_GRAY
      Specifies an image type of BufferedImage.TYPE_USHORT_GRAY.
    • BYTE_BINARY

      public static final Graph.ImageType BYTE_BINARY
      Specifies an image type of BufferedImage.TYPE_BYTE_BINARY.
    • BYTE_INDEXED

      public static final Graph.ImageType BYTE_INDEXED
      Specifies an image type of BufferedImage.TYPE_BYTE_INDEXED.
  • Method Details

    • values

      public static Graph.ImageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Graph.ImageType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public int getType()
      Return the integer type code BufferedImage uses.
      Returns:
      the type of a buffered image
    • getImageType

      public static Graph.ImageType getImageType(int bitype)
      Find an ImageType given the corresponding BufferedImage constant.
      Parameters:
      bitype - an image type defined by the class BufferedImage
      Returns:
      the corresponding ImageType enumeration constant; null if there is none