public enum CGMElement extends java.lang.Enum<CGMElement>
Enum Constant and Description |
---|
APPLICATION_STRUCTURE_ELEMENTS |
ATTRIBUTE_ELEMENTS |
CONTROL_ELEMENTS |
DELIMITER_ELEMENTS |
ESCAPE_ELEMENTS |
EXTERNAL_ELEMENTS |
GRAPHICAL_PRIMITIVE_ELEMENTS |
METAFILE_DESCRIPTOR_ELEMENTS |
PICTURE_DESCRIPTOR_ELEMENTS |
SEGMENT_ELEMENTS |
Modifier and Type | Method and Description |
---|---|
static CGMElement |
getCGMElement(int ec)
Returns the element class for the given class number
|
static java.lang.Object |
getElement(int elementClass,
int elementCode)
Returns the element for the given element class and element code
|
java.lang.String |
toString() |
static CGMElement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CGMElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CGMElement DELIMITER_ELEMENTS
public static final CGMElement METAFILE_DESCRIPTOR_ELEMENTS
public static final CGMElement PICTURE_DESCRIPTOR_ELEMENTS
public static final CGMElement CONTROL_ELEMENTS
public static final CGMElement GRAPHICAL_PRIMITIVE_ELEMENTS
public static final CGMElement ATTRIBUTE_ELEMENTS
public static final CGMElement ESCAPE_ELEMENTS
public static final CGMElement EXTERNAL_ELEMENTS
public static final CGMElement SEGMENT_ELEMENTS
public static final CGMElement APPLICATION_STRUCTURE_ELEMENTS
public static CGMElement[] values()
for (CGMElement c : CGMElement.values()) System.out.println(c);
public static CGMElement valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CGMElement getCGMElement(int ec)
ec
- The class number to getpublic static java.lang.Object getElement(int elementClass, int elementCode)
elementClass
- The class number to getelementCode
- The class code to get (depends on the class number)public java.lang.String toString()
toString
in class java.lang.Enum<CGMElement>