|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.awt.graph.DataSet
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 |
public static final int DATE_TYPE
public static final int CURRENCY_TYPE
public static final int FLOAT_TYPE
public static final int INT_TYPE
public static final int TIME_TYPE
public static final int OTHER_TYPE
public static final int DATE_TIME_TYPE
public static final int DAY_INTERVAL
public static final int WEEK_INTERVAL
public static final int MONTH_INTERVAL
public static final int YEAR_INTERVAL
public java.lang.Number[] yvalues
public java.lang.Number[] xvalues
public static java.text.DateFormat dateFormat
public static java.text.DateFormat timeFormat
public static java.text.DateFormat dateTimeFormat
Constructor Detail |
public DataSet(java.lang.String name, int numValues, int theXType, int theYType)
Method Detail |
public static int getNumIntervals(int intervalType, java.lang.Number minX, java.lang.Number maxX)
public java.lang.String formatValue(java.lang.Number value, int valueType)
public static java.lang.Number[] getBarTicks(java.lang.Number min, int numIntervals, int intervalType)
public static java.lang.Number[] getTicks(java.lang.Number minimum, java.lang.Number maximum, int axesLength, int format, int textSize)
public void setDecimalChar(char ch)
public void setCommaChar(char ch)
public void setCurrency(CurrencyType newCurrencyType)
public int getYType()
public int getXType()
public void setYType(int newYType)
public void setXType(int newXType)
public java.lang.String getName()
public void setDescription(java.lang.String[] desc)
public java.lang.String[] getDescription()
public java.lang.String getShortDescription()
public java.lang.Number getMaxXValue()
public java.lang.Number getMinXValue()
public java.lang.Number getMaxYValue()
public java.lang.Number getMinYValue()
public int getNumValues()
public void sortAscending()
public void sortDescending()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |