com.exponto.jstock
Class PersistentPoint
java.lang.Object
com.exponto.jstock.PersistentPoint
- public class PersistentPoint
- extends java.lang.Object
Stores the start and endpoints of a line in a scale independent way
so that the line can be redrawn when the scale is changed.
x axis is represented by date, y axis by a price value
- Author:
- kaare
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentPoint
public PersistentPoint(Date dx,
double dy)
PersistentPoint
public PersistentPoint(java.lang.String dx,
double dy)
getX
public Date getX()
- Returns:
- the Date representing the x1 coordinate
getY
public double getY()
- Returns:
- a value (double) representing the y1 coordinate
setX
public void setX(Date d)
- Parameters:
d
- Date representing the x dimension of the start point
setY
public void setY(double d)
- Parameters:
d
- double representing the y dimension of the start point
Copyright © 2004 Kaare Ranum