|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.chart.graph.MACDGraphUI
public class MACDGraphUI
The MACD graph user interface.
MACDGraph
Field Summary | |
---|---|
static java.lang.String |
EMA
|
static java.lang.String |
SMA
|
Constructor Summary | |
---|---|
MACDGraphUI(java.util.HashMap settings)
Create a new MACD user interface with the initial settings. |
Method Summary | |
---|---|
java.lang.String |
checkSettings()
Check the current settings displayed in the user interface. |
static java.lang.String |
getAverageType(java.util.HashMap settings)
Retrieve the average type (EMA or SMA) from the settings hashmap. |
javax.swing.JPanel |
getPanel()
Return the user interface. |
static int |
getPeriodFirstAverage(java.util.HashMap settings)
Retrieve the period of the first average from the settings hashmap. |
static int |
getPeriodSecondAverage(java.util.HashMap settings)
Retrieve the period of the second average from the settings hashmap. |
java.util.HashMap |
getSettings()
Return the current settings displayed in the user interface. |
static double |
getSmoothingConstantFirstAverage(java.util.HashMap settings)
Retrieve the smoothing constant of the first average from the settings hashmap. |
static double |
getSmoothingConstantSecondAverage(java.util.HashMap settings)
Retrieve the smoothing constant of the second average from the settings hashmap. |
void |
setSettings(java.util.HashMap settings)
Display the given settings in the user interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SMA
public static final java.lang.String EMA
Constructor Detail |
---|
public MACDGraphUI(java.util.HashMap settings)
settings
- the initial settingsMethod Detail |
---|
public java.lang.String checkSettings()
GraphUI
checkSettings
in interface GraphUI
null
if the settings are validpublic java.util.HashMap getSettings()
GraphUI
getSettings
in interface GraphUI
public void setSettings(java.util.HashMap settings)
GraphUI
setSettings
in interface GraphUI
settings
- the new settingspublic javax.swing.JPanel getPanel()
GraphUI
getPanel
in interface GraphUI
public static java.lang.String getAverageType(java.util.HashMap settings)
settings
- the settings
public static int getPeriodFirstAverage(java.util.HashMap settings)
settings
- the settings
public static double getSmoothingConstantFirstAverage(java.util.HashMap settings)
settings
- the settings
public static int getPeriodSecondAverage(java.util.HashMap settings)
settings
- the settings
public static double getSmoothingConstantSecondAverage(java.util.HashMap settings)
settings
- the settings
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |