Package org.apache.batik.ext.awt.image
Class ARGBChannel
- java.lang.Object
-
- org.apache.batik.ext.awt.image.ARGBChannel
-
- All Implemented Interfaces:
java.io.Serializable
public final class ARGBChannel extends java.lang.Object implements java.io.SerializableEnumerated type for an ARGB Channel selector.- Version:
- $Id: ARGBChannel.java 1808888 2017-09-19 14:22:11Z ssteiner $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ARGBChannelAstatic java.lang.StringALPHAstatic ARGBChannelBstatic java.lang.StringBLUEstatic intCHANNEL_ATypes.static intCHANNEL_Bstatic intCHANNEL_Gstatic intCHANNEL_Rprivate java.lang.Stringdescstatic ARGBChannelGstatic java.lang.StringGREENstatic ARGBChannelRChannel valuesstatic java.lang.StringREDStrings used to get a more readable output when a value is displayed.private intval
-
Constructor Summary
Constructors Modifier Constructor Description privateARGBChannel(int val, java.lang.String desc)Constructor is private so that no instances other than the ones in the enumeration can be created.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectreadResolve()This is called by the serialization code before it returns an unserialized object.inttoInt()Convenience for enumeration switchingjava.lang.StringtoString()
-
-
-
Field Detail
-
CHANNEL_A
public static final int CHANNEL_A
Types.- See Also:
- Constant Field Values
-
CHANNEL_R
public static final int CHANNEL_R
- See Also:
- Constant Field Values
-
CHANNEL_G
public static final int CHANNEL_G
- See Also:
- Constant Field Values
-
CHANNEL_B
public static final int CHANNEL_B
- See Also:
- Constant Field Values
-
RED
public static final java.lang.String RED
Strings used to get a more readable output when a value is displayed.- See Also:
- Constant Field Values
-
GREEN
public static final java.lang.String GREEN
- See Also:
- Constant Field Values
-
BLUE
public static final java.lang.String BLUE
- See Also:
- Constant Field Values
-
ALPHA
public static final java.lang.String ALPHA
- See Also:
- Constant Field Values
-
R
public static final ARGBChannel R
Channel values
-
G
public static final ARGBChannel G
-
B
public static final ARGBChannel B
-
A
public static final ARGBChannel A
-
desc
private java.lang.String desc
-
val
private int val
-
-
Constructor Detail
-
ARGBChannel
private ARGBChannel(int val, java.lang.String desc)Constructor is private so that no instances other than the ones in the enumeration can be created.- See Also:
readResolve()
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- description
-
toInt
public int toInt()
Convenience for enumeration switching- Returns:
- value
-
readResolve
public java.lang.Object 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
-
-