public enum RGBAComponentKind extends Enum<RGBAComponentKind> implements MediaEnumerationValue
Specifies the color or function of a component within a pixel, for example whether the component a red level, palette index etc..
The AAF object specification specifies these values as single byte characters. To find the
specified character, call charValue(). To find the enumeration constant corresponding to
a character, call fromSpecifiedCode(char).
Original C name: aafRGBAComponentKind_e
| Enum Constant and Description |
|---|
Alpha
Alpha component.
|
Blue
Blue component.
|
Fill
Fill component.
|
Green
Green component.
|
None
No component.
|
Null
Terminates the list of components.
|
Palette
Palette component.
|
Red
Red component.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charValue()
Value of the enumeration as defined in the AAF object specification.
|
static RGBAComponentKind |
fromSpecifiedCode(char code)
Returns the enumeration constant matching the given code that should match
that specified in the AAF object specification.
|
String |
symbol()
Provides a name for the enumeration value that can be used in XML serialisation.
|
long |
value()
Returns the unique integer value associated with an enumeration value, either according
to the AAF specification and/or the current AAF meta dictionary.
|
static RGBAComponentKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RGBAComponentKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final RGBAComponentKind Red
Red component.
public static final RGBAComponentKind Green
Green component.
public static final RGBAComponentKind Blue
Blue component.
public static final RGBAComponentKind Alpha
Alpha component.
public static final RGBAComponentKind Fill
Fill component.
public static final RGBAComponentKind Palette
Palette component.
public static final RGBAComponentKind None
No component.
public static final RGBAComponentKind Null
Terminates the list of components.
public static RGBAComponentKind[] values()
for (RGBAComponentKind c : RGBAComponentKind.values()) System.out.println(c);
public static RGBAComponentKind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic char charValue()
Value of the enumeration as defined in the AAF object specification.
public static final RGBAComponentKind fromSpecifiedCode(char code)
Returns the enumeration constant matching the given code that should match
that specified in the AAF object specification. For example, calling this method
with 'R' will return Red.
code - Character specified to represent an RGBA component kind.null if the code is
not recognised.@Int64 public long value()
MediaEnumerationValueReturns the unique integer value associated with an enumeration value, either according to the AAF specification and/or the current AAF meta dictionary.
value in interface MediaEnumerationValuepublic String symbol()
MediaEnumerationValueProvides a name for the enumeration value that can be used in XML serialisation. The name is unique within the namespace of the owning type.
As an example, the ChannelStatusModeType value ChannelStatusModeType.Fixed
value has the name "Fixed" and symbol "ChannelStatusMode_Fixed".
symbol in interface MediaEnumerationValue(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.