|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.indicators.Indicator
com.exponto.jstock.indicators.CandleStick
CandleStick draws a logarithmic candlestick chart. Note that this class doesn't have any indicator parameters (for now) and returns null when asked for some.
Field Summary |
Fields inherited from class com.exponto.jstock.indicators.Indicator |
sm_indicatorColor, sm_indicatorName, sm_isDisplayed |
Constructor Summary | |
CandleStick()
|
Method Summary | |
boolean |
drawWithCandleSticks()
Information for the class that allocates screenspace wheter a particular indicator requires a separate screen space or if it shall be painted with the candlesticks. |
java.lang.String |
getDailyPrintOut(int n)
Makes a String with name, parameters and value (e.g. |
IndicatorAxisInfo |
getIndicatorAxisInfo()
|
java.lang.String |
getIndicatorName()
|
IndicatorParameters |
getIndicatorParameters()
This returns the IndicatorParameter used together with a specific indicator. |
boolean |
hasChanged()
Check if the calling class can use data obtained from a previous call to paintIndicator or not. |
void |
initiateIndicator(LogDataSeries lDS)
Initiates an indicator with the provided LogDataSeries combined with indicator specific parameters either provied from a properties file or the user. |
void |
initiateIndicator(LogDataSeries lDS,
IndicatorParameters indParam)
|
void |
initiateIndicator(LogDataSeries lDS,
java.lang.String indParam)
As above but with Indicatorparameters provided in a string format. |
boolean |
isMainIndicator()
One of the indicators is a main indicator and is given more screen space than the rest. |
void |
markSelectedStick(java.awt.Graphics2D g2d,
int number,
int lMargin,
int tMargin)
|
void |
paintIndicator(java.awt.Graphics2D g,
GraphicsParameters gP)
Sends the Indicator a Graphics2D and asks it to paint itself on that Graphics. |
java.lang.String[] |
printAll(int number)
Generates an Array of strings that is suitable for printing to file or debugging purposes with all data within the range. |
static void |
setMinorLineLevel(int minorLineLevel)
|
static void |
setVolumeScale(double volumeScale)
|
boolean |
supportIndicatorValuesInterface()
Return true if theIndicatorValuesInterface is implemented for this class. |
java.lang.String |
toString()
|
Methods inherited from class com.exponto.jstock.indicators.Indicator |
displayNumberToArrayIndex, getColor, getDisplayed, setColor, setDisplayed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.exponto.jstock.indicators.IndicatorInterface |
getDisplayed, setDisplayed |
Constructor Detail |
public CandleStick()
Method Detail |
public static void setVolumeScale(double volumeScale)
public static void setMinorLineLevel(int minorLineLevel)
public java.lang.String getIndicatorName()
getIndicatorName
in interface IndicatorInterface
getIndicatorName
in class Indicator
public IndicatorParameters getIndicatorParameters()
IndicatorInterface
getIndicatorParameters
in interface IndicatorInterface
getIndicatorParameters
in class Indicator
public void initiateIndicator(LogDataSeries lDS)
IndicatorInterface
initiateIndicator
in interface IndicatorInterface
initiateIndicator
in class Indicator
public void initiateIndicator(LogDataSeries lDS, IndicatorParameters indParam)
public void initiateIndicator(LogDataSeries lDS, java.lang.String indParam)
IndicatorInterface
initiateIndicator
in interface IndicatorInterface
initiateIndicator
in class Indicator
public boolean isMainIndicator()
IndicatorInterface
isMainIndicator
in interface IndicatorInterface
isMainIndicator
in class Indicator
public boolean drawWithCandleSticks()
IndicatorInterface
drawWithCandleSticks
in interface IndicatorInterface
drawWithCandleSticks
in class Indicator
public boolean hasChanged()
IndicatorInterface
hasChanged
in interface IndicatorInterface
hasChanged
in class Indicator
public void paintIndicator(java.awt.Graphics2D g, GraphicsParameters gP)
IndicatorInterface
paintIndicator
in interface IndicatorInterface
paintIndicator
in class Indicator
public void markSelectedStick(java.awt.Graphics2D g2d, int number, int lMargin, int tMargin)
public java.lang.String getDailyPrintOut(int n)
IndicatorInterface
getDailyPrintOut
in interface IndicatorInterface
getDailyPrintOut
in class Indicator
public java.lang.String[] printAll(int number)
IndicatorInterface
printAll
in interface IndicatorInterface
printAll
in class Indicator
public boolean supportIndicatorValuesInterface()
IndicatorInterface
supportIndicatorValuesInterface
in interface IndicatorInterface
public java.lang.String toString()
public IndicatorAxisInfo getIndicatorAxisInfo()
getIndicatorAxisInfo
in interface IndicatorLinesInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |