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,
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 optParams equals to null - default ones will be taken instead
If output params are nulls - default ones will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Instrument instrument,
Period period,
OfferSide offerSide)
Adds indicator to the current panel by specifying initial optional parameters values
and indicator advanced settings
If optParams equals to null - default ones will be taken instead
If instrument, period or offerSide equals to null - values from chart will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Instrument instrument,
Period period,
OfferSide offerSide,
OfferSide[] offerSides,
IIndicators.AppliedPrice[] appliedPrices,
java.awt.Color[] outputColors,
OutputParameterInfo.DrawingStyle[] outputDrawingStyles,
int[] outputWidths)
Adds indicator to the current panel by specifying initial optional parameters values,
indicator advanced settings, data sides/types for each input, output params
If optParams equals to null - default ones will be taken instead
If instrument, period or offerSide equals to null - values from chart will be taken instead
If offerSides or appliedPrices equals to null - default ones will be taken instead
If output params are nulls - default ones will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Instrument instrument,
Period period,
OfferSide offerSide,
Period basePeriod)
Adds indicator to the current panel by specifying initial optional parameters values
and indicator advanced settings
If optParams equals to null - default ones will be taken instead
If instrument, period or offerSide equals to null - values from chart will be taken instead
If basePeriod equals to null - no base period will be used
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Instrument instrument,
Period period,
OfferSide offerSide,
Period basePeriod,
OfferSide[] offerSides,
IIndicators.AppliedPrice[] appliedPrices,
java.awt.Color[] outputColors,
OutputParameterInfo.DrawingStyle[] outputDrawingStyles,
int[] outputWidths)
Adds indicator to the current panel by specifying initial optional parameters values,
indicator advanced settings, data sides/types for each input, output params
If optParams equals to null - default ones will be taken instead
If instrument, period or offerSide equals to null - values from chart will be taken instead
If basePeriod equals to null - no base period will be used
If offerSides or appliedPrices equals to null - default ones will be taken instead
If output params are nulls - default ones will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
OfferSide[] offerSides,
IIndicators.AppliedPrice[] appliedPrices)
Adds indicator to the current panel by specifying initial optional parameters values
and data sides/types for each input
If optParams equals to null - default ones will be taken instead
If offerSides or appliedPrices equals to null - default ones will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Period basePeriod)
Adds indicator to the current panel by specifying initial optional parameters values
If optParams equals to null - default ones will be taken instead
If basePeriod equals to null - no base period will be used
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Period basePeriod,
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 optParams equals to null - default ones will be taken instead
If basePeriod equals to null - no base period will be used
If output params are nulls - default ones will be taken instead
|
IChartPanel |
add(IIndicator indicator,
java.lang.Object[] optParams,
Period basePeriod,
OfferSide[] offerSides,
IIndicators.AppliedPrice[] appliedPrices)
Adds indicator to the current panel by specifying initial optional parameters values
and data sides/types for each input
If optParams equals to null - default ones will be taken instead
If basePeriod equals to null - no base period will be used
If offerSides or appliedPrices equals to null - default ones will be taken instead
|
void |
addMouseListener(boolean asynchronous,
IChartPanelMouseListener chartMouseListener)
Adds the specified mouse listener to receive mouse events from
this chart panel.
|
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<IIndicatorAppearanceInfo> |
getIndicatorApperanceInfos()
Returns indicator appearance information on the chart panel
|
java.util.List<IIndicator> |
getIndicators()
Returns all indicators on the chart 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
|
java.util.List<IChartPanelMouseListener> |
getMouseListeners()
Returns an array of all the mouse listeners
registered on this component.
|
boolean |
isActive()
Indicates this panel visibility 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)
Remove specified indicator from this panel.
|
void |
removeMouseListener(IChartPanelMouseListener chartMouseListener)
Removes the specified mouse listener so that it no longer
receives mouse events from this component.
|
add, add
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 IChartPanel
chartObject
- - instance of IChartObject
super type.java.lang.IllegalStateException
- if this panel is not visible isActive()
void remove(IChartObject chartObject)
remove
in interface IChartPanel
chartObject
- object to removejava.lang.IllegalStateException
- if this panel is not visible isActive()
IChartObject remove(java.lang.String chartObjectKey)
remove
in interface IChartPanel
chartObjectKey
- key of object to removejava.lang.IllegalStateException
- if this panel is not visible isActive()
void removeAll()
removeAll
in interface IChartPanel
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 IChartPanel
chartObjectKey
- unique idjava.lang.IllegalStateException
- if this panel is not visible isActive()
java.util.List<IChartObject> getAll()
getAll
in interface IChartPanel
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator)
add
in interface IChartPanel
indicator
- as IIndicator
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Period basePeriod)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
basePeriod
- base period for unstable period indicatorsjava.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Instrument instrument, Period period, OfferSide offerSide)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
instrument
- as Instrument
period
- as Period
offerSide
- as OfferSide
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Instrument instrument, Period period, OfferSide offerSide, Period basePeriod)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
instrument
- as Instrument
period
- as Period
offerSide
- as OfferSide
basePeriod
- base period for unstable period indicatorsjava.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, OfferSide[] offerSides, IIndicators.AppliedPrice[] appliedPrices)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
offerSides
- as OfferSide[]
appliedPrices
- as AppliedPrice[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Period basePeriod, OfferSide[] offerSides, IIndicators.AppliedPrice[] appliedPrices)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
basePeriod
- base period for unstable period indicatorsofferSides
- as OfferSide[]
appliedPrices
- as AppliedPrice[]
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 IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
outputColors
- as Color[]
outputDrawingStyles
- as DrawingStyle[]
outputWidths
- as int[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Period basePeriod, java.awt.Color[] outputColors, OutputParameterInfo.DrawingStyle[] outputDrawingStyles, int[] outputWidths)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
basePeriod
- base period for unstable period indicatorsoutputColors
- as Color[]
outputDrawingStyles
- as DrawingStyle[]
outputWidths
- as int[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Instrument instrument, Period period, OfferSide offerSide, OfferSide[] offerSides, IIndicators.AppliedPrice[] appliedPrices, java.awt.Color[] outputColors, OutputParameterInfo.DrawingStyle[] outputDrawingStyles, int[] outputWidths)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
instrument
- as Instrument
period
- as Period
offerSide
- as OfferSide
offerSides
- as OfferSide[]
appliedPrices
- as AppliedPrice[]
outputColors
- as Color[]
outputDrawingStyles
- as DrawingStyle[]
outputWidths
- as int[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams, Instrument instrument, Period period, OfferSide offerSide, Period basePeriod, OfferSide[] offerSides, IIndicators.AppliedPrice[] appliedPrices, java.awt.Color[] outputColors, OutputParameterInfo.DrawingStyle[] outputDrawingStyles, int[] outputWidths)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
instrument
- as Instrument
period
- as Period
offerSide
- as OfferSide
basePeriod
- base period for unstable period indicatorsofferSides
- as OfferSide[]
appliedPrices
- as AppliedPrice[]
outputColors
- as Color[]
outputDrawingStyles
- as DrawingStyle[]
outputWidths
- as int[]
java.lang.IllegalStateException
- if this panel is not visible isActive()
void removeIndicator(IIndicator indicator)
removeIndicator
in interface IChartPanel
indicator
- instance of IIndicator
interfacejava.lang.IllegalStateException
- if this panel is not visible isActive()
java.util.List<IIndicator> getIndicators()
getIndicators
in interface IChartPanel
java.lang.IllegalStateException
- if this panel is not visible isActive()
java.util.List<IIndicatorAppearanceInfo> getIndicatorApperanceInfos()
getIndicatorApperanceInfos
in interface IChartPanel
double getMinPrice()
getMinPrice
in interface IChartPanel
java.lang.IllegalStateException
- if this panel is not visible isActive()
double getMaxPrice()
getMaxPrice
in interface IChartPanel
java.lang.IllegalStateException
- if this panel is not visible isActive()
void addMouseListener(boolean asynchronous, IChartPanelMouseListener chartMouseListener)
chartMouseListener
is null
,
no exception is thrown and no action is performed.addMouseListener
in interface IChartPanel
asynchronous
- if true listener will be triggered in AWT thread asynchronously with strategy thread, otherwise will be synchronized. Use false as default if not sure.chartMouseListener
- the mouse listenerIChartPanel.removeMouseListener(com.dukascopy.api.chart.mouse.IChartPanelMouseListener)
,
IChartPanel.getMouseListeners()
void removeMouseListener(IChartPanelMouseListener chartMouseListener)
chartMouseListener
is null
,
no exception is thrown and no action is performed.removeMouseListener
in interface IChartPanel
chartMouseListener
- the mouse listenerIChartPanel.addMouseListener(boolean, com.dukascopy.api.chart.mouse.IChartPanelMouseListener)
,
IChartPanel.getMouseListeners()
java.util.List<IChartPanelMouseListener> getMouseListeners()
getMouseListeners
in interface IChartPanel
MouseListener
s
or an empty array if no mouse
listeners are currently registeredIChartPanel.addMouseListener(boolean, com.dukascopy.api.chart.mouse.IChartPanelMouseListener)
,
IChartPanel.removeMouseListener(com.dukascopy.api.chart.mouse.IChartPanelMouseListener)
boolean isActive()
Note:
- working with removed/invisible panel is not allowed.
- panel could be automatically removed with last indicator on it.
Copyright © 2023. All rights reserved.