org.apache.batik.ext.awt.image

Class ARGBChannel

public final class ARGBChannel extends Object implements Serializable

Enumerated type for an ARGB Channel selector.
Field Summary
static ARGBChannelA
static StringALPHA
static ARGBChannelB
static StringBLUE
static intCHANNEL_A
Types.
static intCHANNEL_B
static intCHANNEL_G
static intCHANNEL_R
static ARGBChannelG
static StringGREEN
static ARGBChannelR
Channel values
static StringRED
Strings used to get a more readable output when a value is displayed.
Method Summary
ObjectreadResolve()
This is called by the serialization code before it returns an unserialized object.
inttoInt()
Convenience for enumeration switching
StringtoString()

Field Detail

A

public static final ARGBChannel A

ALPHA

public static final String ALPHA

B

public static final ARGBChannel B

BLUE

public static final String BLUE

CHANNEL_A

public static final int CHANNEL_A
Types.

CHANNEL_B

public static final int CHANNEL_B

CHANNEL_G

public static final int CHANNEL_G

CHANNEL_R

public static final int CHANNEL_R

G

public static final ARGBChannel G

GREEN

public static final String GREEN

R

public static final ARGBChannel R
Channel values

RED

public static final String RED
Strings used to get a more readable output when a value is displayed.

Method Detail

readResolve

public 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

toInt

public int toInt()
Convenience for enumeration switching

Returns: value

toString

public String toString()

Returns: description

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.