Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Enum DataElement

java.lang.Object
  extended by java.lang.Enum<DataElement>
      extended by com.softwarefx.chartfx.server.DataElement
All Implemented Interfaces:
Serializable, Comparable<DataElement>

public enum DataElement
extends Enum<DataElement>

Define how the chart should treat the different fields available in the result set.


Enum Constant Summary
INI_VALUE
           
XVALUE
           
YVALUE
           
 
Method Summary
static EnumSet<DataElement> getEnumSetValue(int value)
          Returns a EnumSet that represents the given numeric value.
static DataElement getEnumValue(int value)
          Returns a Enum Item that represents the given numeric value.
static int getUnderlyingValue(DataElement value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static int getUnderlyingValue(EnumSet<DataElement> value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static DataElement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataElement[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YVALUE

public static final DataElement YVALUE

XVALUE

public static final DataElement XVALUE

INI_VALUE

public static final DataElement INI_VALUE
Method Detail

values

public static DataElement[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataElement c : DataElement.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataElement valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getEnumSetValue

public static EnumSet<DataElement> getEnumSetValue(int value)

Returns a EnumSet that represents the given numeric value.

Parameters:
value - numeric representation of the Enumset.

getEnumValue

public static DataElement getEnumValue(int value)

Returns a Enum Item that represents the given numeric value.

Parameters:
value - numeric representation of the Enum item.

getUnderlyingValue

public static int getUnderlyingValue(DataElement value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

getUnderlyingValue

public static int getUnderlyingValue(EnumSet<DataElement> value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

http://www.softwarefx.com

2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.