com.exponto.jstock
Class PersistentLine
java.lang.Object
com.exponto.jstock.PersistentLine
- public class PersistentLine
- 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 |
PersistentLine
public PersistentLine(Date dx1,
double dy1,
Date dx2,
double dy2)
PersistentLine
public PersistentLine(int id,
java.lang.String dx1,
double dy1,
java.lang.String dx2,
double dy2)
getX1
public Date getX1()
- Returns:
- the Date representing the x1 coordinate
getX2
public Date getX2()
- Returns:
- the Date representing the x2 coordinate
getY1
public double getY1()
- Returns:
- a value (double) representing the y1 coordinate
getY2
public double getY2()
- Returns:
- a value (double) representing the y2 coordinate
setX1
public void setX1(Date d)
- Parameters:
d
- Date representing the x dimension of the start point
setX2
public void setX2(Date d)
- Parameters:
d
- Date representing the x dimension of the end point
setY1
public void setY1(double d)
- Parameters:
d
- double representing the y dimension of the start point
setY2
public void setY2(double d)
- Parameters:
d
- double representing the y dimension of the start end
getLineIndex
public int getLineIndex()
- Returns:
- the lineIndex as an int
setLineIndex
public void setLineIndex(int i)
- Parameters:
i
- sets the lineIndex to i.
isSelected
public boolean isSelected()
- Returns:
- true if selected, false otherwise
setSelected
public void setSelected(boolean b)
- Parameters:
b
- sets this line to selected if true, false otherwise
setSelected
public void setSelected(int i)
getSelected
public int getSelected()
setDeleted
public void setDeleted(int deletedNumber)
getDeleted
public int getDeleted()
isDeleted
public boolean isDeleted()
undelete
public void undelete()
Copyright © 2004 Kaare Ranum