Chart FX for Java 6.5

SoftwareFX.ChartFX
Class DataTypeCollection

java.lang.Object
  extended by SoftwareFX.ChartFX.DataTypeCollection
All Implemented Interfaces:
java.util.Enumeration

public final class DataTypeCollection
extends java.lang.Object
implements java.util.Enumeration

Provides access to the DataTypeCollection object.


Constructor Summary
DataTypeCollection()
           
 
Method Summary
 java.util.Enumeration elements()
          Returns an enumeration of the values in the DataTypeCollection .
 int getItem(int n)
          Gets the Item.
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 java.lang.Object nextElement()
          Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 void setItem(int n, int value)
          Gets and Sets the element at the specified position in the DataTypeCollection.
 int size()
          Returns the number of elements in this collection.
 java.lang.Object[] toArray(java.lang.Object[] obj)
          Returns an array containing all of the elements in this collection in proper sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeCollection

public DataTypeCollection()
Method Detail

elements

public java.util.Enumeration elements()

Returns an enumeration of the values in the DataTypeCollection . Use the Enumeration methods on the returned object to fetch the elements sequentially.


getItem

public int getItem(int n)

Gets the Item. For more detail see setItem(int, int).


hasMoreElements

public boolean hasMoreElements()

Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Specified by:
nextElement in interface java.util.Enumeration

setItem

public void setItem(int n,
                    int value)

Gets and Sets the element at the specified position in the DataTypeCollection.

Values:
DataType : Define how Chart FX should treat the different fields available in the result set.
ValueDescription
DataType.DEFAULTIf the field is numeric use it as an additional data series. If the field is a string or text use it as a legend.
DataType.LABELInstructs Chart FX to treat the selected field as a string. Therefore a legend.
DataType.VALUEInstructs Chart FX to treat the selected field as a number. Therefore an additional data series.
DataType.XVALUEInstructs Chart FX to treat the selected field as a number to be used as the X axis coordinate. Use this option if you are creating XY Plots.
DataType.INI_VALUEInstructs Chart FX to treat the selected field as a number to be used to set initial values for data points to achieve floating bars and area charts.
DataType.SERIESUsed with the CrossTab provider to assign as a series. (The CrossTab Data Provider has not yet been Implemented.)
DataType.POINTUsed with the CrossTab provider to assign as a points. (The CrossTab Data Provider has not yet been Implemented.)
DataType.NOT_USEDInstructs Chart FX to ignore this field from the result set.
DataType.KEY_LEGENDInstructs Chart FX to treat the selected field as a string that will be used as the key label for the x axis.


size

public int size()

Returns the number of elements in this collection.


toArray

public java.lang.Object[] toArray(java.lang.Object[] obj)

Returns an array containing all of the elements in this collection in proper sequence.


http://www.softwarefx.com

2007 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.