Package org.apache.batik.ext.awt.image
Class ARGBChannel
java.lang.Object
org.apache.batik.ext.awt.image.ARGBChannel
- All Implemented Interfaces:
Serializable
Enumerated type for an ARGB Channel selector.
- Version:
- $Id: ARGBChannel.java 1808888 2017-09-19 14:22:11Z ssteiner $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ARGBChannel
static final String
static final ARGBChannel
static final String
static final int
Types.static final int
static final int
static final int
private String
static final ARGBChannel
static final String
static final ARGBChannel
Channel valuesstatic final String
Strings used to get a more readable output when a value is displayed.private int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ARGBChannel
(int val, String desc) Constructor is private so that no instances other than the ones in the enumeration can be created. -
Method Summary
-
Field Details
-
CHANNEL_A
public static final int CHANNEL_ATypes.- See Also:
-
CHANNEL_R
public static final int CHANNEL_R- See Also:
-
CHANNEL_G
public static final int CHANNEL_G- See Also:
-
CHANNEL_B
public static final int CHANNEL_B- See Also:
-
RED
Strings used to get a more readable output when a value is displayed.- See Also:
-
GREEN
- See Also:
-
BLUE
- See Also:
-
ALPHA
- See Also:
-
R
Channel values -
G
-
B
-
A
-
desc
-
val
private int val
-
-
Constructor Details
-
ARGBChannel
Constructor is private so that no instances other than the ones in the enumeration can be created.- See Also:
-
-
Method Details
-
toString
-
toInt
public int toInt()Convenience for enumeration switching- Returns:
- value
-
readResolve
This is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent
-