com.moneydance.awt.graph
Class DataSet

java.lang.Object
  extended bycom.moneydance.awt.graph.DataSet

public class DataSet
extends java.lang.Object

Class used to describe a set of data. ------------------------------------------------------------------------ $Author: sreilly $ $Date: 2001/01/31 19:31:12 $ $Revision: 1.1 $


Field Summary
static int CURRENCY_TYPE
           
static int DATE_TIME_TYPE
           
static int DATE_TYPE
          The different types of data that can be graphed
static java.text.DateFormat dateFormat
           
static java.text.DateFormat dateTimeFormat
           
static int DAY_INTERVAL
           
static int FLOAT_TYPE
           
static int INT_TYPE
           
static int MONTH_INTERVAL
           
static int OTHER_TYPE
           
static int TIME_TYPE
           
static java.text.DateFormat timeFormat
           
static int WEEK_INTERVAL
           
 java.lang.Number[] xvalues
           
static int YEAR_INTERVAL
           
 java.lang.Number[] yvalues
           
 
Constructor Summary
DataSet(java.lang.String name, int numValues, int theXType, int theYType)
           
 
Method Summary
 java.lang.String formatValue(java.lang.Number value, int valueType)
           
static java.lang.Number[] getBarTicks(java.lang.Number min, int numIntervals, int intervalType)
           
 java.lang.String[] getDescription()
           
 java.lang.Number getMaxXValue()
           
 java.lang.Number getMaxYValue()
           
 java.lang.Number getMinXValue()
           
 java.lang.Number getMinYValue()
           
 java.lang.String getName()
           
static int getNumIntervals(int intervalType, java.lang.Number minX, java.lang.Number maxX)
           
 int getNumValues()
           
 java.lang.String getShortDescription()
           
static java.lang.Number[] getTicks(java.lang.Number minimum, java.lang.Number maximum, int axesLength, int format, int textSize)
          Return a set of number values to use as ticks along the axis of a graph.
 int getXType()
          Get the type of data associated with the X axis values.
 int getYType()
          Get the type of data associated with the Y axis values.
 void setCommaChar(char ch)
           
 void setCurrency(CurrencyType newCurrencyType)
           
 void setDecimalChar(char ch)
           
 void setDescription(java.lang.String[] desc)
           
 void setXType(int newXType)
          Set the type of data associated with the X axis values.
 void setYType(int newYType)
          Set the type of data associated with the Y axis values.
 void sortAscending()
          Sorts the values in ascending order (by the xvalues).
 void sortDescending()
          Sorts the values in descending order (by the xvalues).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_TYPE

public static final int DATE_TYPE
The different types of data that can be graphed

See Also:
Constant Field Values

CURRENCY_TYPE

public static final int CURRENCY_TYPE
See Also:
Constant Field Values

FLOAT_TYPE

public static final int FLOAT_TYPE
See Also:
Constant Field Values

INT_TYPE

public static final int INT_TYPE
See Also:
Constant Field Values

TIME_TYPE

public static final int TIME_TYPE
See Also:
Constant Field Values

OTHER_TYPE

public static final int OTHER_TYPE
See Also:
Constant Field Values

DATE_TIME_TYPE

public static final int DATE_TIME_TYPE
See Also:
Constant Field Values

DAY_INTERVAL

public static final int DAY_INTERVAL
See Also:
Constant Field Values

WEEK_INTERVAL

public static final int WEEK_INTERVAL
See Also:
Constant Field Values

MONTH_INTERVAL

public static final int MONTH_INTERVAL
See Also:
Constant Field Values

YEAR_INTERVAL

public static final int YEAR_INTERVAL
See Also:
Constant Field Values

yvalues

public java.lang.Number[] yvalues

xvalues

public java.lang.Number[] xvalues

dateFormat

public static java.text.DateFormat dateFormat

timeFormat

public static java.text.DateFormat timeFormat

dateTimeFormat

public static java.text.DateFormat dateTimeFormat
Constructor Detail

DataSet

public DataSet(java.lang.String name,
               int numValues,
               int theXType,
               int theYType)
Method Detail

getNumIntervals

public static int getNumIntervals(int intervalType,
                                  java.lang.Number minX,
                                  java.lang.Number maxX)

formatValue

public java.lang.String formatValue(java.lang.Number value,
                                    int valueType)

getBarTicks

public static java.lang.Number[] getBarTicks(java.lang.Number min,
                                             int numIntervals,
                                             int intervalType)

getTicks

public static java.lang.Number[] getTicks(java.lang.Number minimum,
                                          java.lang.Number maximum,
                                          int axesLength,
                                          int format,
                                          int textSize)
Return a set of number values to use as ticks along the axis of a graph.


setDecimalChar

public void setDecimalChar(char ch)

setCommaChar

public void setCommaChar(char ch)

setCurrency

public void setCurrency(CurrencyType newCurrencyType)

getYType

public int getYType()
Get the type of data associated with the Y axis values.


getXType

public int getXType()
Get the type of data associated with the X axis values.


setYType

public void setYType(int newYType)
Set the type of data associated with the Y axis values.


setXType

public void setXType(int newXType)
Set the type of data associated with the X axis values.


getName

public java.lang.String getName()

setDescription

public void setDescription(java.lang.String[] desc)

getDescription

public java.lang.String[] getDescription()

getShortDescription

public java.lang.String getShortDescription()

getMaxXValue

public java.lang.Number getMaxXValue()

getMinXValue

public java.lang.Number getMinXValue()

getMaxYValue

public java.lang.Number getMaxYValue()

getMinYValue

public java.lang.Number getMinYValue()

getNumValues

public int getNumValues()

sortAscending

public void sortAscending()
Sorts the values in ascending order (by the xvalues).


sortDescending

public void sortDescending()
Sorts the values in descending order (by the xvalues).