com.exponto.jstock
Class IndicatorController

java.lang.Object
  extended bycom.exponto.jstock.IndicatorController

public class IndicatorController
extends java.lang.Object

Author:
kaare

Constructor Summary
IndicatorController()
          Gets the list of all supported indicators and stores an instance of each in an ArrayList.
 
Method Summary
 java.util.ArrayList getEnabledCandleStickIndicators()
           
 java.util.ArrayList getEnabledIndicators()
           
 java.util.ArrayList getIndicatorValues()
           
static IndicatorController getInstance()
           
 java.util.ArrayList getJComponentList()
           
 int numberOfPanels()
          Finds the number of indicators that needs a separate JPanel in order to draw a series.
 void restoreAll()
           
 void saveAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndicatorController

public IndicatorController()
Gets the list of all supported indicators and stores an instance of each in an ArrayList.

Method Detail

getInstance

public static IndicatorController getInstance()

getEnabledIndicators

public java.util.ArrayList getEnabledIndicators()
Returns:
an ArrayList with all Indicators that shall be drawn in a separate JPanel

getEnabledCandleStickIndicators

public java.util.ArrayList getEnabledCandleStickIndicators()
Returns:
an ArrayList with all Indicators that shall be drawn together with the candlestickPanel

saveAll

public void saveAll()

restoreAll

public void restoreAll()

getJComponentList

public java.util.ArrayList getJComponentList()

numberOfPanels

public int numberOfPanels()
Finds the number of indicators that needs a separate JPanel in order to draw a series. Indicators that are drawn with the candlestick chart are not counted nor is indicators that are disabled. Due to laziness this also fills up the ArrayList that contains the enabled indicators. Not a very good idea, but someday it might be fixed.

Returns:
the number of panels needed to draw the indicators

getIndicatorValues

public java.util.ArrayList getIndicatorValues()
Returns:
an ArrayList with indicators that have implemented the IndicatorValuesInterface.


Copyright © 2004 Kaare Ranum