com.exponto.jstock
Class Lines

java.lang.Object
  |
  +--com.exponto.jstock.Lines

public class Lines
extends java.lang.Object


Constructor Summary
Lines(TickerID id, boolean isWeekly)
           
 
Method Summary
 void addLine(PersistentLine pL)
           
 void changeCurrentLine(int i)
           
 void deleteActiveSelection()
           
 void finalize()
           
 PersistentLine getActive()
           
 TickerID getTickerId()
           
 int getType()
           
 PersistentLine hasNext()
           
 void load(int tickerId)
           
 void removeCurrentLine()
           
 void reset()
           
 void saveLines()
           
 boolean selectNext(boolean keepSelected)
           
 void selectNextEnd()
           
 boolean selectPrevious(boolean keepSelected)
           
 void setActive(PersistentLine pL)
           
 void setTickerId(TickerID id)
           
 void setType(boolean isWeekly)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lines

public Lines(TickerID id,
             boolean isWeekly)
Method Detail

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

load

public void load(int tickerId)

reset

public void reset()

changeCurrentLine

public void changeCurrentLine(int i)

hasNext

public PersistentLine hasNext()

getActive

public PersistentLine getActive()

setActive

public void setActive(PersistentLine pL)

addLine

public void addLine(PersistentLine pL)

removeCurrentLine

public void removeCurrentLine()

selectNext

public boolean selectNext(boolean keepSelected)
Parameters:
keepSelected - if false all selection is reset.
Returns:
true if a new PersistentLine is selected

selectPrevious

public boolean selectPrevious(boolean keepSelected)
Parameters:
keepSelected - if false all selection is reset.
Returns:
true if a new PersistentLine is selected

selectNextEnd

public void selectNextEnd()

deleteActiveSelection

public void deleteActiveSelection()

saveLines

public void saveLines()

getTickerId

public TickerID getTickerId()
Returns:
the TickerId

getType

public int getType()
Returns:
the type (either daily or weekly)

setTickerId

public void setTickerId(TickerID id)
Parameters:
id - The TickerId

setType

public void setType(boolean isWeekly)
Parameters:
isWeekly - boolean that indicates of this is lines for a weekly chart or not.


Copyright © 2004 Kaare Ranum