com.googlecode.charts4j
Enum DataEncoding

java.lang.Object
  extended by java.lang.Enum<DataEncoding>
      extended by com.googlecode.charts4j.DataEncoding
All Implemented Interfaces:
Serializable, Comparable<DataEncoding>

public enum DataEncoding
extends Enum<DataEncoding>

Specify the data encoding to supply to the Google Chart API. The only advantage to the simple encoding scheme is it will ultimately result in shorter URLs, but at the cost of lower resolution. charts4j defaults to extended encoding, but if you have lots of data and if you are willing to sacrifice resolution, the simple encoding may be right for you. Text encoding was included for the sake of completeness. Text encoding has limited usefulness other than perhaps debugging. It should probably be avoided unless you want to see the actual data in the URL at the cost of a much longer URL.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)
See Also:
GChart.setDataEncoding(DataEncoding dataEncoding)

Enum Constant Summary
EXTENDED
          Extended Data Encoding.
SIMPLE
          Simple Data Encoding.
TEXT
          Text Data Encoding.
 
Method Summary
 String toString()
          
static DataEncoding valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataEncoding[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SIMPLE

public static final DataEncoding SIMPLE
Simple Data Encoding.


EXTENDED

public static final DataEncoding EXTENDED
Extended Data Encoding.


TEXT

public static final DataEncoding TEXT
Text Data Encoding.

Method Detail

values

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

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

valueOf

public static DataEncoding 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

toString

public String toString()

Overrides:
toString in class Enum<DataEncoding>