org.mov.chart
Class HorizontalAxis
java.lang.Object
org.mov.chart.HorizontalAxis
public class HorizontalAxis
- extends java.lang.Object
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 |
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
HorizontalAxis
public HorizontalAxis(java.util.Vector dates,
int period,
int type)
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()