public interface IIndicatorPanel
| Method Summary | |
|---|---|
void |
add(IChartObject chartObject)
Adds object of IChartObject type to current panel. |
IChartPanel |
add(IIndicator indicator)
Adds indicator to the current panel. |
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams)
Adds indicator to the current panel by specifying initial optional parameters values If optParams equals to null - default ones will be taken instead |
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
java.awt.Color[] outputColors,
OutputParameterInfo.DrawingStyle[] outputDrawingStyles,
int[] outputWidths)
Adds indicator to the current panel by specifying initial optional parameters values, curves colors, drawing styles and line widths If output params are nulls - default ones will be taken instead |
IChartObject |
get(java.lang.String chartObjectKey)
Returns IChartObject instance by key if any exist on this panel. |
java.util.List<IChartObject> |
getAll()
Returns all graphical objects on this panel. |
java.util.List<IIndicator> |
getIndicators()
Returns only indicators applied to current panel. |
double |
getMaxPrice()
Returns maximal value of base indicator placed on this panel |
double |
getMinPrice()
Returns minimal value of base indicator placed on this panel |
boolean |
isActive()
If true indicates that this panel is still visible on chart. |
void |
remove(IChartObject chartObject)
Deletes specified graphical object from this panel. |
IChartObject |
remove(java.lang.String chartObjectKey)
Deletes graphical object from this panel by key. |
void |
removeAll()
Removes all graphical objects from this panel. |
void |
removeIndicator(IIndicator indicator)
{@inheritDoc |
| Methods inherited from interface com.dukascopy.api.IChartPanel |
|---|
addMouseListener, getMouseListeners, removeMouseListener |
| Method Detail |
|---|
IChartPanel add(IIndicator indicator)
add in interface IChartPanelindicator - as IIndicator
java.lang.IllegalStateException - if this panel is not visible isActive()
IChartPanel add(IIndicator indicator,
java.lang.Object[] optParams)
add in interface IChartPanelindicator - as IIndicatoroptParams - as Object[]
java.lang.IllegalStateException - if this panel is not visible isActive()
IChartPanel add(IIndicator indicator,
java.lang.Object[] optParams,
java.awt.Color[] outputColors,
OutputParameterInfo.DrawingStyle[] outputDrawingStyles,
int[] outputWidths)
add in interface IChartPanelindicator - as IIndicatoroptParams - as Object[]outputColors - as Color[]outputDrawingStyles - as DrawingStyle[]outputWidths - as int[]
java.lang.IllegalStateException - if this panel is not visible isActive()java.util.List<IIndicator> getIndicators()
getIndicators in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()void add(IChartObject chartObject)
IChartObject type to current panel.
Please note that only one instance of object can be added per chart.
IllegalArgumentException
add in interface IChartPanelchartObject - - instance of IChartObject super type.
java.lang.IllegalStateException - if this panel is not visible isActive()IChartObject get(java.lang.String chartObjectKey)
IChartObject instance by key if any exist on this panel.
get in interface IChartPanelchartObjectKey - unique id
java.lang.IllegalStateException - if this panel is not visible isActive()java.util.List<IChartObject> getAll()
getAll in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()double getMinPrice()
getMinPrice in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()double getMaxPrice()
getMaxPrice in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()void removeIndicator(IIndicator indicator)
removeIndicator in interface IChartPanelindicator - instance of IIndicator interface
java.lang.IllegalStateException - if this panel is not visible isActive()IChartObject remove(java.lang.String chartObjectKey)
remove in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()void remove(IChartObject chartObject)
remove in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()void removeAll()
removeAll in interface IChartPaneljava.lang.IllegalStateException - if this panel is not visible isActive()boolean isActive()
Note:
- working with removed/invisible panel is not allowed.
- panel could be automatically removed with last indicator on it.