Package javax.media.j3d
Enum Class ImageComponent.ImageClass
- All Implemented Interfaces:
Serializable
,Comparable<ImageComponent.ImageClass>
,Constable
- Enclosing class:
- ImageComponent
Used to specify the class of the image being wrapped.
- Since:
- Java 3D 1.5
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that this ImageComponent object wraps a BufferedImage object.Indicates that this ImageComponent object wraps an NioImageBuffer object.Indicates that this ImageComponent object wraps a RenderedImage object that is not a BufferedImage. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageComponent.ImageClass
Returns the enum constant of this class with the specified name.static ImageComponent.ImageClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUFFERED_IMAGE
Indicates that this ImageComponent object wraps a BufferedImage object. This is the default state. Note that the image class will be BUFFERED_IMAGE following a call to set(RenderedImage image) if we are in by-copy mode, or if the image is an instance of BufferedImage. -
RENDERED_IMAGE
Indicates that this ImageComponent object wraps a RenderedImage object that is not a BufferedImage. Note that the image class of an ImageComponent following a call to set(RenderedImage image) will be RENDERED_IMAGE, if and only if the image is not an instance of BufferedImage and the ImageComponent is in by-reference mode. -
NIO_IMAGE_BUFFER
Indicates that this ImageComponent object wraps an NioImageBuffer object. Note that an ImageComponent in this state must not be used as the off-screen buffer of a Canvas3D nor as the target of a readRaster operation.
-
-
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
-