public interface IIndicatorPanel extends IChartPanel
| Modifier and Type | Method and Description |
|---|---|
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,
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,
Object[] optParams,
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(String chartObjectKey)
Returns
IChartObject instance by key if any exist on this panel. |
List<IChartObject> |
getAll()
Returns all graphical objects on this panel.
|
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()
Indicates this panel visibility on chart.
|
void |
remove(IChartObject chartObject)
Deletes specified graphical object from this panel.
|
IChartObject |
remove(String chartObjectKey)
Deletes graphical object from this panel by key.
|
void |
removeAll()
Removes all graphical objects from this panel.
|
void |
removeIndicator(IIndicator indicator)
Remove specified indicator from this panel.
|
addMouseListener, getIndicatorApperanceInfos, getMouseListeners, removeMouseListenerIChartPanel add(IIndicator indicator)
add in interface IChartPanelindicator - as IIndicatorIllegalStateException - if this panel is not visible isActive()IChartPanel add(IIndicator indicator, Object[] optParams)
add in interface IChartPanelindicator - as IIndicatoroptParams - as Object[]IllegalStateException - if this panel is not visible isActive()IChartPanel add(IIndicator indicator, Object[] optParams, Color[] outputColors, OutputParameterInfo.DrawingStyle[] outputDrawingStyles, int[] outputWidths)
add in interface IChartPanelindicator - as IIndicatoroptParams - as Object[]outputColors - as Color[]outputDrawingStyles - as DrawingStyle[]outputWidths - as int[]IllegalStateException - if this panel is not visible isActive()List<IIndicator> getIndicators()
getIndicators in interface IChartPanelIllegalStateException - 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.
IllegalArgumentExceptionadd in interface IChartPanelchartObject - - instance of IChartObject super type.IllegalStateException - if this panel is not visible isActive()IChartObject get(String chartObjectKey)
IChartObject instance by key if any exist on this panel.get in interface IChartPanelchartObjectKey - unique idIllegalStateException - if this panel is not visible isActive()List<IChartObject> getAll()
getAll in interface IChartPanelIllegalStateException - if this panel is not visible isActive()double getMinPrice()
getMinPrice in interface IChartPanelIllegalStateException - if this panel is not visible isActive()double getMaxPrice()
getMaxPrice in interface IChartPanelIllegalStateException - if this panel is not visible isActive()void removeIndicator(IIndicator indicator)
removeIndicator in interface IChartPanelindicator - instance of IIndicator interfaceIllegalStateException - if this panel is not visible isActive()IChartObject remove(String chartObjectKey)
remove in interface IChartPanelchartObjectKey - key of object to removeIllegalStateException - if this panel is not visible isActive()void remove(IChartObject chartObject)
remove in interface IChartPanelchartObject - object to removeIllegalStateException - if this panel is not visible isActive()void removeAll()
removeAll in interface IChartPanelIllegalStateException - 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.
Copyright © 2016. All rights reserved.