|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
com.exponto.jstock.data.ChartData
ChartData.java Load the dataset from file or other source. Can transform dataset to other formats (log, weekly) as required. Does contain some buisness logic (I'll try to move it out of here)
Constructor Summary | |
ChartData(TickerID tId,
java.lang.String panelType)
Creates ChartData for a daily series. |
|
ChartData(TickerID tId,
java.lang.String panelType,
LogDataSeries lDS)
Used to create ChartData for weekly charts. |
Method Summary | |
java.util.ArrayList |
getAllIndicators()
|
java.util.ArrayList |
getDefaultIndicators()
|
java.util.ArrayList |
getEnabledCandleStickIndicators()
|
java.util.ArrayList |
getEnabledIndicators()
|
LogDataSeries |
getLogDataSeries()
|
Indicator |
getMainIndicator()
|
java.lang.String |
getPanelType()
|
TickerID |
getTickerID()
|
void |
insertIndicator(java.util.ArrayList newIndicators)
Adds new indicators to the chart. |
void |
loadDBIndicators()
Loads the indicators as stored in the database. |
int |
numberOfPanels()
Returns the number of indicators that needs a separate JPanel in order to draw a series. |
void |
saveDBIndicators()
Checks if the IndicatorParameters are known in the database before saving them. |
void |
setPanelType(java.lang.String name)
|
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChartData(TickerID tId, java.lang.String panelType) throws TickerNotFoundException
tId
- the TickerID to create ChartData forpanelType
- - currently only daily and weekly are supported
TickerNotFoundException
public ChartData(TickerID tId, java.lang.String panelType, LogDataSeries lDS) throws TickerNotFoundException
tId
- the TickerID to create ChartData forpanelType
- - the type of panel (daily weekly ...)lDS
- the LogDataSeries from the charts
TickerNotFoundException
Method Detail |
public void insertIndicator(java.util.ArrayList newIndicators)
public void saveDBIndicators()
public void loadDBIndicators()
public int numberOfPanels()
public java.util.ArrayList getEnabledCandleStickIndicators()
public java.util.ArrayList getEnabledIndicators()
public LogDataSeries getLogDataSeries()
public TickerID getTickerID()
public java.lang.String getPanelType()
public void setPanelType(java.lang.String name)
name
- The m_panelName to set.public Indicator getMainIndicator()
public java.util.ArrayList getAllIndicators()
public java.util.ArrayList getDefaultIndicators()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |