com.exponto.jstock
Class PersistentPoint

java.lang.Object
  extended bycom.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

Constructor Summary
PersistentPoint(Date dx, double dy)
           
PersistentPoint(java.lang.String dx, double dy)
           
 
Method Summary
 Date getX()
           
 double getY()
           
 void setX(Date d)
           
 void setY(double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentPoint

public PersistentPoint(Date dx,
                       double dy)

PersistentPoint

public PersistentPoint(java.lang.String dx,
                       double dy)
Method Detail

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