- All Implemented Interfaces:
Serializable
,Comparable<Graph.ImageType>
- Enclosing class:
- Graph
Enumeration specifying the image type for a graph.
This enum provides a type-save value for the integer
constants defined by
BufferedImage
.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies an image type of BufferedImage.TYPE_BYTE_BINARY.Specifies an image type of BufferedImage.TYPE_BYTE_GRAY.Specifies an image type of BufferedImage.TYPE_BYTE_INDEXED.Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR.Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR_PRE.Specifies an image type of BufferedImage.TYPE_INT_ARGB.Specifies an image type of BufferedImage.TYPE_INT_ARGB_PRE.Specifies an image type of BufferedImage.TYPE_INT_BGR.Specifies an image type of BufferedImage.TYPE_INT_RGB.Specifies an image type of BufferedImage.TYPE_3BYTE_BGR.Specifies an image type of BufferedImage.TYPE_USHORT_555_RGB.Specifies an image type of BufferedImage.TYPE_USHORT_565_RGB.Specifies an image type of BufferedImage.TYPE_USHORT_GRAY. -
Method Summary
Modifier and TypeMethodDescriptionstatic Graph.ImageType
getImageType
(int bitype) Find an ImageType given the corresponding BufferedImage constant.int
getType()
Return the integer type code BufferedImage uses.static Graph.ImageType
Returns the enum constant of this type with the specified name.static Graph.ImageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INT_RGB
Specifies an image type of BufferedImage.TYPE_INT_RGB. -
INT_ARGB
Specifies an image type of BufferedImage.TYPE_INT_ARGB. -
INT_ARGB_PRE
Specifies an image type of BufferedImage.TYPE_INT_ARGB_PRE. -
INT_BGR
Specifies an image type of BufferedImage.TYPE_INT_BGR. -
THREE_BYTE_BGR
Specifies an image type of BufferedImage.TYPE_3BYTE_BGR. -
FOUR_BYTE_ABGR
Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR. -
FOUR_BYTE_ABGR_PRE
Specifies an image type of BufferedImage.TYPE_4BYTE_ABGR_PRE. -
USHORT_565_RGB
Specifies an image type of BufferedImage.TYPE_USHORT_565_RGB. -
USHORT_555_RGB
Specifies an image type of BufferedImage.TYPE_USHORT_555_RGB. -
BYTE_GRAY
Specifies an image type of BufferedImage.TYPE_BYTE_GRAY. -
USHORT_GRAY
Specifies an image type of BufferedImage.TYPE_USHORT_GRAY. -
BYTE_BINARY
Specifies an image type of BufferedImage.TYPE_BYTE_BINARY. -
BYTE_INDEXED
Specifies an image type of BufferedImage.TYPE_BYTE_INDEXED.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getType
public int getType()Return the integer type code BufferedImage uses.- Returns:
- the type of a buffered image
-
getImageType
Find an ImageType given the corresponding BufferedImage constant.- Parameters:
bitype
- an image type defined by the classBufferedImage
- Returns:
- the corresponding ImageType enumeration constant; null if there is none
-