|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.indicators.IndicatorParameters
com.exponto.jstock.indicators.DummyParameters
Dummy IndicatorParameter for indicators without parameters
Field Summary |
Fields inherited from class com.exponto.jstock.indicators.IndicatorParameters |
m_compArray, m_parameterValues, m_validFrom, sm_delimiter, sm_validTo |
Constructor Summary | |
DummyParameters()
|
|
DummyParameters(int days)
|
|
DummyParameters(int days,
java.lang.String propName,
java.lang.String label,
java.lang.String toolTipString)
|
|
DummyParameters(java.lang.String s)
|
Method Summary | |
int[] |
fromParameterString(java.lang.String s)
Generates new parameter(s) from a string. |
int |
getNumberOfDays()
|
java.lang.String[] |
getParameterNames()
|
int[] |
getParameters()
|
javax.swing.JComponent[][] |
getUserInterface()
Provides the Options menu with components to use for this indicator. |
int |
hashCode()
Note: Reach MAXINT after about 7 - 10 parameters depending on the parameter |
boolean |
indicatorEnabled()
Checks if the parameters settings of this indicator indicates that the Indicator is activated (e.g. |
void |
setNumberOfDays(int i)
|
void |
setParameters(int[] parameters)
|
void |
setParameters(int index,
int value)
|
java.lang.String |
toParameterString()
Used to generate a string of the parameter(s) of this instance. |
void |
updateParameters()
Used to ensure that indicators parameters are up to date before saving. |
Methods inherited from class com.exponto.jstock.indicators.IndicatorParameters |
equals, getValidFrom, getValidTo, setValidFrom, setValidTo, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DummyParameters()
public DummyParameters(int days)
public DummyParameters(java.lang.String s)
public DummyParameters(int days, java.lang.String propName, java.lang.String label, java.lang.String toolTipString)
Method Detail |
public int[] getParameters()
getParameters
in class IndicatorParameters
public void setParameters(int[] parameters)
setParameters
in class IndicatorParameters
parameters
- public void setParameters(int index, int value)
setParameters
in class IndicatorParameters
index
- value
- public java.lang.String[] getParameterNames()
getParameterNames
in class IndicatorParameters
public int getNumberOfDays()
public void setNumberOfDays(int i)
i
- the number of days used in the Moving Average calculationpublic javax.swing.JComponent[][] getUserInterface()
IndicatorParameters
getUserInterface
in interface IndicatorParametersInterface
getUserInterface
in class IndicatorParameters
public boolean indicatorEnabled()
IndicatorParametersInterface
indicatorEnabled
in interface IndicatorParametersInterface
indicatorEnabled
in class IndicatorParameters
public void updateParameters()
IndicatorParametersInterface
updateParameters
in interface IndicatorParametersInterface
updateParameters
in class IndicatorParameters
public java.lang.String toParameterString()
IndicatorParametersInterface
public int[] fromParameterString(java.lang.String s)
IndicatorParametersInterface
s
- the parameters of the class encoded as a string
public int hashCode()
IndicatorParameters
hashCode
in interface IndicatorParametersInterface
hashCode
in class IndicatorParameters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |