A more specific description of a surface is considered a "subtype" and a more general description is considered a "supertype". Thus, the deriveSubType method provides a way to create a new SurfaceType that is related to but more specific than an existing SurfaceType and the getSuperType method provides a way to ask a given SurfaceType for a more general way to describe the same surface.
Note that you cannot construct a brand new root for a chain since the constructor is private. Every chain of types must at some point derive from the Any node provided here using the deriveSubType() method. The presence of this common Any node on every chain ensures that all chains end with the DESC_ANY descriptor so that a suitable General GraphicsPrimitive object can be obtained for the indicated surface if all of the more specific searches fail.
| Modifier and Type | Field and Description |
|---|---|
| public static final SurfaceType | Any
The root SurfaceType object for all chains of surface descriptions. |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| private String | |
| public static final String | |
| public static final String | DESC_3BYTE_RGB
additional 3 byte format common on Windows |
| public static final String | |
| public static final String | |
| public static final String | DESC_ANY
surface is unknown color model or sample model. |
| public static final String | DESC_ANY_3BYTE
wildcard format which indicates that the GraphicsPrimitive operates on a surface with 3 component interleaved Raster and sample model and a ComponentColorModel with an arbitrary ordering of the RGB channels |
| public static final String | DESC_ANY_4BYTE
wildcard format which indicates that the GraphicsPrimitive operates on a surface with 4 component interleaved Raster and sample model and a ComponentColorModel with an arbitrary ordering of the ARGB channels |
| public static final String | DESC_ANY_BYTE
wildcard format which indicates that the GraphicsPrimitive is independent of the color model on a ByteComponent sample model surface |
| public static final String | |
| public static final String | DESC_ANY_INT
wildcard format which indicates that the GraphicsPrimitive is independent of the color model on an IntegerComponent sample model surface |
| public static final String | DESC_ANY_INT_DCM
wildcard format which indicates that the GraphicsPrimitive operates on a surface with a single component IntegerComponent sample model and a DirectColorModel with an arbitrary ordering of the RGB channels |
| public static final String | DESC_ANY_PAINT
Special type for describing the sources of loops that render the current foreground color or paint instead of copying colors from a source surface. |
| public static final String | DESC_ANY_SHORT
wildcard format which indicates that the GraphicsPrimitive is independent of the color model on a ShortComponent sample model surface |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | DESC_BYTE_INDEXED_OPAQUE
Opaque 8-bit indexed images |
| public static final String | |
| public static final String | |
| public static final String | DESC_INDEX8_GRAY
Special Gray Scale types for rendering loops. |
| public static final String | |
| public static final String | DESC_INT_ARGB_BM
common formats for BITMASK transparency. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | DESC_INT_RGB
common surface formats defined in BufferedImage |
| public static final String | DESC_INT_RGBx
additional IntegerComponent types common on Windows |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| private SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| protected PixelConverter | |
| public static final SurfaceType | |
| private static HashMap | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| private int | |
| private static int | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType | |
| public static final SurfaceType |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SurfaceType | deriveSubType(String desc)
Return a new SurfaceType object which uses this object as its more general "supertype" descriptor. |
| public SurfaceType | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String | |
| public PixelConverter | |
| public SurfaceType | |
| public int | |
| public int | |
| public static synchronized int | |
| public int | |
| public int | |
| public String |
| Any | back to summary |
|---|---|
| public static final SurfaceType Any The root SurfaceType object for all chains of surface descriptions. The root uses the default PixelConverter object, which uses a given ColorModel object to calculate its pixelFor() values when asked. Any SurfaceType objects that are not created with a specific PixelConverter object will inherit this behavior from the root. | |
| Any3Byte | back to summary |
|---|---|
| public static final SurfaceType Any3Byte | |
| Any4Byte | back to summary |
|---|---|
| public static final SurfaceType Any4Byte | |
| AnyByte | back to summary |
|---|---|
| public static final SurfaceType AnyByte | |
| AnyByteBinary | back to summary |
|---|---|
| public static final SurfaceType AnyByteBinary | |
| AnyColor | back to summary |
|---|---|
| public static final SurfaceType AnyColor | |
| AnyDcm | back to summary |
|---|---|
| public static final SurfaceType AnyDcm | |
| AnyInt | back to summary |
|---|---|
| public static final SurfaceType AnyInt | |
| AnyPaint | back to summary |
|---|---|
| public static final SurfaceType AnyPaint | |
| AnyShort | back to summary |
|---|---|
| public static final SurfaceType AnyShort | |
| ByteBinary1Bit | back to summary |
|---|---|
| public static final SurfaceType ByteBinary1Bit | |
| ByteBinary2Bit | back to summary |
|---|---|
| public static final SurfaceType ByteBinary2Bit | |
| ByteBinary4Bit | back to summary |
|---|---|
| public static final SurfaceType ByteBinary4Bit | |
| ByteGray | back to summary |
|---|---|
| public static final SurfaceType ByteGray | |
| ByteIndexed | back to summary |
|---|---|
| public static final SurfaceType ByteIndexed | |
| ByteIndexedBm | back to summary |
|---|---|
| public static final SurfaceType ByteIndexedBm | |
| ByteIndexedOpaque | back to summary |
|---|---|
| public static final SurfaceType ByteIndexedOpaque | |
| Custom | back to summary |
|---|---|
| public static final SurfaceType Custom | |
| desc | back to summary |
|---|---|
| private String desc | |
| DESC_3BYTE_BGR | back to summary |
|---|---|
| public static final String DESC_3BYTE_BGR | |
| DESC_3BYTE_RGB | back to summary |
|---|---|
| public static final String DESC_3BYTE_RGB additional 3 byte format common on Windows | |
| DESC_4BYTE_ABGR | back to summary |
|---|---|
| public static final String DESC_4BYTE_ABGR | |
| DESC_4BYTE_ABGR_PRE | back to summary |
|---|---|
| public static final String DESC_4BYTE_ABGR_PRE | |
| DESC_ANY | back to summary |
|---|---|
| public static final String DESC_ANY surface is unknown color model or sample model. | |
| DESC_ANY_3BYTE | back to summary |
|---|---|
| public static final String DESC_ANY_3BYTE wildcard format which indicates that the GraphicsPrimitive operates on a surface with 3 component interleaved Raster and sample model and a ComponentColorModel with an arbitrary ordering of the RGB channels | |
| DESC_ANY_4BYTE | back to summary |
|---|---|
| public static final String DESC_ANY_4BYTE wildcard format which indicates that the GraphicsPrimitive operates on a surface with 4 component interleaved Raster and sample model and a ComponentColorModel with an arbitrary ordering of the ARGB channels | |
| DESC_ANY_BYTE | back to summary |
|---|---|
| public static final String DESC_ANY_BYTE wildcard format which indicates that the GraphicsPrimitive is independent of the color model on a ByteComponent sample model surface | |
| DESC_ANY_COLOR | back to summary |
|---|---|
| public static final String DESC_ANY_COLOR | |
| DESC_ANY_INT | back to summary |
|---|---|
| public static final String DESC_ANY_INT wildcard format which indicates that the GraphicsPrimitive is independent of the color model on an IntegerComponent sample model surface | |
| DESC_ANY_INT_DCM | back to summary |
|---|---|
| public static final String DESC_ANY_INT_DCM wildcard format which indicates that the GraphicsPrimitive operates on a surface with a single component IntegerComponent sample model and a DirectColorModel with an arbitrary ordering of the RGB channels | |
| DESC_ANY_PAINT | back to summary |
|---|---|
| public static final String DESC_ANY_PAINT Special type for describing the sources of loops that render the current foreground color or paint instead of copying colors from a source surface. | |
| DESC_ANY_SHORT | back to summary |
|---|---|
| public static final String DESC_ANY_SHORT wildcard format which indicates that the GraphicsPrimitive is independent of the color model on a ShortComponent sample model surface | |
| DESC_BYTE_BINARY | back to summary |
|---|---|
| public static final String DESC_BYTE_BINARY | |
| DESC_BYTE_BINARY_1BIT | back to summary |
|---|---|
| public static final String DESC_BYTE_BINARY_1BIT | |
| DESC_BYTE_BINARY_2BIT | back to summary |
|---|---|
| public static final String DESC_BYTE_BINARY_2BIT | |
| DESC_BYTE_BINARY_4BIT | back to summary |
|---|---|
| public static final String DESC_BYTE_BINARY_4BIT | |
| DESC_BYTE_GRAY | back to summary |
|---|---|
| public static final String DESC_BYTE_GRAY | |
| DESC_BYTE_INDEXED | back to summary |
|---|---|
| public static final String DESC_BYTE_INDEXED | |
| DESC_BYTE_INDEXED_BM | back to summary |
|---|---|
| public static final String DESC_BYTE_INDEXED_BM | |
| DESC_BYTE_INDEXED_OPAQUE | back to summary |
|---|---|
| public static final String DESC_BYTE_INDEXED_OPAQUE Opaque 8-bit indexed images | |
| DESC_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_GRADIENT_PAINT | |
| DESC_INDEX12_GRAY | back to summary |
|---|---|
| public static final String DESC_INDEX12_GRAY | |
| DESC_INDEX8_GRAY | back to summary |
|---|---|
| public static final String DESC_INDEX8_GRAY Special Gray Scale types for rendering loops. Really indexed types, but colormap has all gray values. | |
| DESC_INT_ARGB | back to summary |
|---|---|
| public static final String DESC_INT_ARGB | |
| DESC_INT_ARGB_BM | back to summary |
|---|---|
| public static final String DESC_INT_ARGB_BM common formats for BITMASK transparency. | |
| DESC_INT_ARGB_PRE | back to summary |
|---|---|
| public static final String DESC_INT_ARGB_PRE | |
| DESC_INT_BGR | back to summary |
|---|---|
| public static final String DESC_INT_BGR | |
| DESC_INT_BGRx | back to summary |
|---|---|
| public static final String DESC_INT_BGRx | |
| DESC_INT_RGB | back to summary |
|---|---|
| public static final String DESC_INT_RGB common surface formats defined in BufferedImage | |
| DESC_INT_RGBx | back to summary |
|---|---|
| public static final String DESC_INT_RGBx additional IntegerComponent types common on Windows | |
| DESC_LINEAR_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_LINEAR_GRADIENT_PAINT | |
| DESC_OPAQUE_COLOR | back to summary |
|---|---|
| public static final String DESC_OPAQUE_COLOR | |
| DESC_OPAQUE_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_OPAQUE_GRADIENT_PAINT | |
| DESC_OPAQUE_LINEAR_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_OPAQUE_LINEAR_GRADIENT_PAINT | |
| DESC_OPAQUE_RADIAL_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_OPAQUE_RADIAL_GRADIENT_PAINT | |
| DESC_OPAQUE_TEXTURE_PAINT | back to summary |
|---|---|
| public static final String DESC_OPAQUE_TEXTURE_PAINT | |
| DESC_RADIAL_GRADIENT_PAINT | back to summary |
|---|---|
| public static final String DESC_RADIAL_GRADIENT_PAINT | |
| DESC_TEXTURE_PAINT | back to summary |
|---|---|
| public static final String DESC_TEXTURE_PAINT | |
| DESC_USHORT_4444_ARGB | back to summary |
|---|---|
| public static final String DESC_USHORT_4444_ARGB | |
| DESC_USHORT_555_RGB | back to summary |
|---|---|
| public static final String DESC_USHORT_555_RGB | |
| DESC_USHORT_555_RGBx | back to summary |
|---|---|
| public static final String DESC_USHORT_555_RGBx | |
| DESC_USHORT_565_RGB | back to summary |
|---|---|
| public static final String DESC_USHORT_565_RGB | |
| DESC_USHORT_GRAY | back to summary |
|---|---|
| public static final String DESC_USHORT_GRAY | |
| DESC_USHORT_INDEXED | back to summary |
|---|---|
| public static final String DESC_USHORT_INDEXED | |
| FourByteAbgr | back to summary |
|---|---|
| public static final SurfaceType FourByteAbgr | |
| FourByteAbgrPre | back to summary |
|---|---|
| public static final SurfaceType FourByteAbgrPre | |
| GradientPaint | back to summary |
|---|---|
| public static final SurfaceType GradientPaint | |
| Index12Gray | back to summary |
|---|---|
| public static final SurfaceType Index12Gray | |
| Index8Gray | back to summary |
|---|---|
| public static final SurfaceType Index8Gray | |
| IntArgb | back to summary |
|---|---|
| public static final SurfaceType IntArgb | |
| IntArgbBm | back to summary |
|---|---|
| public static final SurfaceType IntArgbBm | |
| IntArgbPre | back to summary |
|---|---|
| public static final SurfaceType IntArgbPre | |
| IntBgr | back to summary |
|---|---|
| public static final SurfaceType IntBgr | |
| IntBgrx | back to summary |
|---|---|
| public static final SurfaceType IntBgrx | |
| IntRgb | back to summary |
|---|---|
| public static final SurfaceType IntRgb | |
| IntRgbx | back to summary |
|---|---|
| public static final SurfaceType IntRgbx | |
| LinearGradientPaint | back to summary |
|---|---|
| public static final SurfaceType LinearGradientPaint | |
| next | back to summary |
|---|---|
| private SurfaceType next | |
| OpaqueColor | back to summary |
|---|---|
| public static final SurfaceType OpaqueColor | |
| OpaqueGradientPaint | back to summary |
|---|---|
| public static final SurfaceType OpaqueGradientPaint | |
| OpaqueLinearGradientPaint | back to summary |
|---|---|
| public static final SurfaceType OpaqueLinearGradientPaint | |
| OpaqueRadialGradientPaint | back to summary |
|---|---|
| public static final SurfaceType OpaqueRadialGradientPaint | |
| OpaqueTexturePaint | back to summary |
|---|---|
| public static final SurfaceType OpaqueTexturePaint | |
| pixelConverter | back to summary |
|---|---|
| protected PixelConverter pixelConverter | |
| RadialGradientPaint | back to summary |
|---|---|
| public static final SurfaceType RadialGradientPaint | |
| surfaceUIDMap | back to summary |
|---|---|
| private static HashMap<String, Integer> surfaceUIDMap | |
| TexturePaint | back to summary |
|---|---|
| public static final SurfaceType TexturePaint | |
| ThreeByteBgr | back to summary |
|---|---|
| public static final SurfaceType ThreeByteBgr | |
| ThreeByteRgb | back to summary |
|---|---|
| public static final SurfaceType ThreeByteRgb | |
| uniqueID | back to summary |
|---|---|
| private int uniqueID | |
| unusedUID | back to summary |
|---|---|
| private static int unusedUID | |
| Ushort4444Argb | back to summary |
|---|---|
| public static final SurfaceType Ushort4444Argb | |
| Ushort555Rgb | back to summary |
|---|---|
| public static final SurfaceType Ushort555Rgb | |
| Ushort555Rgbx | back to summary |
|---|---|
| public static final SurfaceType Ushort555Rgbx | |
| Ushort565Rgb | back to summary |
|---|---|
| public static final SurfaceType Ushort565Rgb | |
| UshortGray | back to summary |
|---|---|
| public static final SurfaceType UshortGray | |
| UshortIndexed | back to summary |
|---|---|
| public static final SurfaceType UshortIndexed | |
| SurfaceType | back to summary |
|---|---|
| private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) | |
| SurfaceType | back to summary |
|---|---|
| private SurfaceType(SurfaceType parent, String desc) | |
| deriveSubType | back to summary |
|---|---|
| public SurfaceType deriveSubType(String desc) Return a new SurfaceType object which uses this object as its more general "supertype" descriptor. If no operation can be found that manipulates the type of surface described more exactly by desc, then this object will define the more relaxed specification of the surface that can be used to find a more general operator. | |
| deriveSubType | back to summary |
|---|---|
| public SurfaceType deriveSubType(String desc, PixelConverter pixelConverter) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAlphaMask | back to summary |
|---|---|
| public int getAlphaMask() | |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() | |
| getPixelConverter | back to summary |
|---|---|
| public PixelConverter getPixelConverter() | |
| getSuperType | back to summary |
|---|---|
| public SurfaceType getSuperType() | |
| getUniqueID | back to summary |
|---|---|
| public int getUniqueID() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| makeUniqueID | back to summary |
|---|---|
| public static synchronized int makeUniqueID(String desc) | |
| pixelFor | back to summary |
|---|---|
| public int pixelFor(int rgb, ColorModel cm) | |
| rgbFor | back to summary |
|---|---|
| public int rgbFor(int pixel, ColorModel cm) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |