com.moneydance.awt.graph
Class DataSetUtilities

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

public abstract class DataSetUtilities
extends java.lang.Object


Field Summary
static int TYPE_DATE
           
static int TYPE_FLOAT
           
static int TYPE_INT
           
static int TYPE_TIME
           
 
Constructor Summary
DataSetUtilities()
           
 
Method Summary
static double[] getDateTicks(long minValue, long maxValue, int axisHeight, int lineHeight)
           
static double[] getIntTicks(long minValue, long maxValue, int axisHeight, int lineHeight)
           
static java.lang.String getLabelForValue(double value, int type)
           
static double getMaxValue(double[] values)
           
static double getMinValue(double[] values)
           
static double[] getOtherTicks(double minValue, double maxValue, int axisHeight, int lineHeight)
           
static double[] getTickValues(int lineHeight, int axisHeight, double minValue, double maxValue, int valueType)
           
static double[] getTimeTicks(long minValue, long maxValue, int axisHeight, int lineHeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_DATE

public static final int TYPE_DATE
See Also:
Constant Field Values

TYPE_TIME

public static final int TYPE_TIME
See Also:
Constant Field Values

TYPE_FLOAT

public static final int TYPE_FLOAT
See Also:
Constant Field Values

TYPE_INT

public static final int TYPE_INT
See Also:
Constant Field Values
Constructor Detail

DataSetUtilities

public DataSetUtilities()
Method Detail

getLabelForValue

public static final java.lang.String getLabelForValue(double value,
                                                      int type)

getTickValues

public static final double[] getTickValues(int lineHeight,
                                           int axisHeight,
                                           double minValue,
                                           double maxValue,
                                           int valueType)

getIntTicks

public static final double[] getIntTicks(long minValue,
                                         long maxValue,
                                         int axisHeight,
                                         int lineHeight)

getTimeTicks

public static final double[] getTimeTicks(long minValue,
                                          long maxValue,
                                          int axisHeight,
                                          int lineHeight)

getDateTicks

public static final double[] getDateTicks(long minValue,
                                          long maxValue,
                                          int axisHeight,
                                          int lineHeight)

getOtherTicks

public static final double[] getOtherTicks(double minValue,
                                           double maxValue,
                                           int axisHeight,
                                           int lineHeight)

getMinValue

public static final double getMinValue(double[] values)

getMaxValue

public static final double getMaxValue(double[] values)