Venice 0.7beta

org.mov.chart
Class HorizontalAxis

java.lang.Object
  extended by org.mov.chart.HorizontalAxis

public class HorizontalAxis
extends java.lang.Object


Field Summary
static int MAJOR
           
static int MINOR
           
static int MONTHS
           
static int QUARTERS
           
static int YEARS
           
 
Constructor Summary
HorizontalAxis(java.util.Vector dates, int period, int type)
           
 
Method Summary
static double calculateScale(int width, int dataPoints)
           
 void drawGrid(java.awt.Graphics g, int y, double horizontalScale, int heightOfGraph)
           
 void drawLabels(java.awt.Graphics g, double scale, int x, int y)
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YEARS

public static final int YEARS
See Also:
Constant Field Values

QUARTERS

public static final int QUARTERS
See Also:
Constant Field Values

MONTHS

public static final int MONTHS
See Also:
Constant Field Values

MAJOR

public static final int MAJOR
See Also:
Constant Field Values

MINOR

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

HorizontalAxis

public HorizontalAxis(java.util.Vector dates,
                      int period,
                      int type)
Method Detail

drawLabels

public void drawLabels(java.awt.Graphics g,
                       double scale,
                       int x,
                       int y)

calculateScale

public static double calculateScale(int width,
                                    int dataPoints)

drawGrid

public void drawGrid(java.awt.Graphics g,
                     int y,
                     double horizontalScale,
                     int heightOfGraph)

getWidth

public int getWidth()

Venice 0.7beta