public interface IChart extends java.lang.Iterable<IChartObject>, IChartPanel
Modifier and Type | Interface and Description |
---|---|
static interface |
IChart.PickingPriceListener
Listener to receive picked price value in picking price mode.
|
static class |
IChart.Type
Type of the graphical object
|
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 |
addIndicator(IIndicator indicator)
Deprecated.
please use
add(IIndicator) method |
void |
addIndicator(IIndicator indicator,
java.lang.Object[] optParams)
Deprecated.
Please use
add(IIndicator, Object[]) method |
void |
addIndicator(IIndicator indicator,
java.lang.Object[] optParams,
java.awt.Color[] outputColors,
OutputParameterInfo.DrawingStyle[] outputDrawingStyles,
int[] outputWidths)
|
void |
addMouseListener(boolean asynchronous,
IChartPanelMouseListener chartMouseListener)
Adds the specified mouse listener to receive mouse events from
this chart panel.
|
void |
addSubIndicator(IIndicator indicator)
Deprecated.
use
add(IIndicator) |
void |
addSubIndicator(java.lang.Integer subChartId,
IIndicator indicator)
Deprecated.
use
getIndicatorPanels() and IChartPanel.add(IIndicator) methods. |
void |
addSubIndicatorByPanelIndex(java.lang.Integer subPanelIndex,
IIndicator indicator)
Deprecated.
use
getIndicatorPanels() and add(IIndicator) methods |
void |
addToMainChart(IChartObject object)
Deprecated.
Please use
add(IChartObject) method |
void |
addToMainChartUnlocked(IChartObject object)
Deprecated.
Please, use method @link
addToMainChart(IChartObject) There is no objects division onto locked and unlocked anymore |
void |
addToSubChart(java.lang.Integer subChartId,
int indicatorId,
IChartObject object)
Deprecated.
use
getIndicatorPanels() and IIndicatorPanel.add(IChartObject) methods |
void |
addToSubChart(int subPanelIndex,
IChartObject chartObject)
Deprecated.
use
getIndicatorPanels() and IIndicatorPanel.add(IChartObject) methods |
void |
comment(java.lang.String comment)
Writes a comment in the upper left corner.
|
IChartObject |
draw(java.lang.String key,
IChart.Type type,
long time1,
double price1)
Deprecated.
- this method is deprecated. please use
IChartObjectFactory create() method() instead. |
IChartObject |
draw(java.lang.String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2)
Deprecated.
- this method is deprecated. please use
IChartObjectFactory create() method() instead. |
IChartObject |
draw(java.lang.String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2,
long time3,
double price3)
Deprecated.
- this method is deprecated. please use
IChartObjectFactory create() method() instead. |
IChartObject |
drawUnlocked(java.lang.String key,
IChart.Type type,
long time1,
double price1)
Deprecated.
- this method is deprecated. please use
addToMainChartUnlocked() method instead. |
IChartObject |
drawUnlocked(java.lang.String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2)
Deprecated.
- this method is deprecated. please use
addToMainChartUnlocked() method instead.
Draws graphical object that requires up to 2 points. Object can be selected, moved and changed by the user |
IChartObject |
drawUnlocked(java.lang.String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2,
long time3,
double price3)
Deprecated.
- this method is deprecated. please use
addToMainChartUnlocked() method instead.
Draws graphical object that requires up to 3 points. Object can be selected, moved and changed by the user |
IChartObject |
get(java.lang.String key)
Returns
IChartObject instance by key if any exist on this panel. |
java.util.List<IChartObject> |
getAll()
Returns all graphical objects on this panel.
|
int |
getBarsCount()
Returns amount of bars visible on the screen
|
IChartObjectFactory |
getChartObjectFactory()
Returns
IChartObjectFactory instance. |
java.awt.Color |
getCommentColor()
Gets the foreground color of comment.
|
java.awt.Font |
getCommentFont()
Gets the comment's font.
|
int |
getCommentHorizontalPosition()
Returns the horizontal position of the comment's text.
|
int |
getCommentVerticalPosition()
Returns the vertical position of the comment's text.
|
DataType.DataPresentationType |
getDataPresentationType()
Returns charts' current
DataType.DataPresentationType . |
DataType |
getDataType()
Returns selected Data Type
|
IFeedDescriptor |
getFeedDescriptor()
Returns chart state described by bean
IFeedDescriptor |
Filter |
getFilter()
Returns current filter
|
java.awt.image.BufferedImage |
getImage()
Creates a
BufferedImage snapshot of this chart at the given moment. |
java.util.List<IIndicatorAppearanceInfo> |
getIndicatorApperanceInfos()
Returns indicator appearance information on the chart panel
|
java.util.List<IIndicatorPanel> |
getIndicatorPanels()
Returns current chart active sub panels.
|
java.util.List<IIndicator> |
getIndicators()
Returns all indicators on the chart panel.
|
Instrument |
getInstrument()
Returns instrument of the chart
|
java.util.Map<IIndicator,java.lang.Object[]> |
getLastCalculatedIndicatorOutputs()
Returns outputs of the indicators that are plotted on the chart at the given moment.
|
ITimedData[] |
getLastRequestedData()
Returns data feed objects that are plotted on the chart at the given moment.
|
LineBreakLookback |
getLineBreakLookback()
The method returns currently selected LineBreakLoockback on chart
|
double |
getMaxPrice()
Returns maximal value of price scale
|
long |
getMaxTime()
Returns the maximal time axis value.
|
double |
getMinPrice()
Returns minimal value of price scale
|
long |
getMinTime()
Returns the minimal time axis value.
|
java.util.List<IChartPanelMouseListener> |
getMouseListeners()
Returns an array of all the mouse listeners
registered on this component.
|
PriceRange |
getPriceRange()
The method returns currently selected Price Range on chart
|
ReversalAmount |
getReversalAmount()
The method returns currently selected Reversal Amount on the Point And Figure chart.
|
OfferSide |
getSelectedOfferSide()
Returns selected offer side
|
Period |
getSelectedPeriod()
Returns selected period
|
java.util.List<IChartObject> |
getStrategyChartObjects()
Deprecated.
|
IChartTheme |
getTheme()
Returns current chart theme.
|
TickBarSize |
getTickBarSize()
The method returns currently selected Trade Bar Size on Tick Bar chart
For non Tick Bar charts null might be returned
|
boolean |
isAlive()
Returns current chart state.
|
java.lang.Boolean |
isChartObjectUnlocked(IChartObject chartObject)
Deprecated.
There is no objects division onto locked and unlocked anymore, so this method will always return false
|
boolean |
isHistoricalTesterChart()
Returns true if the chart is opened by Historical Tester or from a strategy while back-testing
|
void |
move(IChartObject objectToMove,
long newTime,
double newPrice)
Moves graphical object to new coordinates.
|
void |
move(java.lang.String chartObjectKey,
long newTime,
double newPrice)
Moves graphical object to new coordinates.
|
void |
navigateAndSelectDrawing(IChartObject chartObject)
Navigates to and selects specified drawing.
|
void |
navigateAndSelectDrawing(java.lang.String key)
Navigates to and selects specified drawing by key.
|
double |
priceMax(int index)
Deprecated.
|
double |
priceMin(int index)
Deprecated.
|
void |
remove(IChartObject chartObject)
Deletes specified graphical object from this panel.
|
java.util.List<IChartObject> |
remove(java.util.List<IChartObject> chartObjects)
Deletes graphical objects
|
IChartObject |
remove(java.lang.String key)
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.
|
void |
repaint()
Refresh and repaint chart
|
void |
selectDrawing(IChartObject chartObject)
Select specified drawing.
|
void |
selectDrawing(java.lang.String key)
Select specified drawing by key.
|
void |
setChartAutoShiftActive(boolean active)
Activates/Deactivates chart Auto Shift
|
void |
setCommentColor(java.awt.Color color)
Sets the foreground color of comment.
|
void |
setCommentFont(java.awt.Font font)
Sets the comment's font.
|
void |
setCommentHorizontalPosition(int position)
Sets the horizontal position of the comment's text.
|
void |
setCommentVerticalPosition(int position)
Sets the vertical position of the comment's text.
|
void |
setCustomRange(int unitsBefore,
long time,
int unitsAfter)
Scrolls chart to specified time and scales time axis to display specified number of bars.
|
void |
setDataPresentationType(DataType.DataPresentationType presentationType)
Applies DataPresentationType to current chart.
|
void |
setFeedDescriptor(IFeedDescriptor feedDescriptor)
Sets current chart feed.
|
void |
setFocus()
Focuses JForex platform to this chart
|
void |
setInstrument(Instrument instrument)
Deprecated.
|
void |
setVerticalAutoscale(boolean autoscale)
Switches on/off chart vertical autoscale mode.
|
void |
setVerticalAxisScale(double minPriceValue,
double maxPriceValue)
Sets minimal and maximal value of the vertical scale of
the current chart when it is maximally expanded.
|
int |
size()
Returns number of the graphical objects on the chart
|
void |
switchPickingPriceMode(boolean isPickingPrice,
IChart.PickingPriceListener listener)
Starts/stops picking price from chart.
|
int |
windowsTotal()
Returns count of indicator windows on the chart (including main chart).
|
add, add
@Deprecated IChartObject draw(java.lang.String key, IChart.Type type, long time1, double price1, long time2, double price2, long time3, double price3)
IChartObjectFactory
create() method() instead.key
- unique id of the objecttype
- type of the objecttime1
- time of first pointprice1
- price of first pointtime2
- time of second pointprice2
- price of second pointtime3
- time of third pointprice3
- price of third point@Deprecated IChartObject draw(java.lang.String key, IChart.Type type, long time1, double price1, long time2, double price2)
IChartObjectFactory
create() method() instead.key
- unique id of the objecttype
- type of the objecttime1
- time of first pointprice1
- price of first pointtime2
- time of second pointprice2
- price of second point@Deprecated IChartObject draw(java.lang.String key, IChart.Type type, long time1, double price1)
IChartObjectFactory
create() method() instead.key
- unique id of the objecttype
- type of the objecttime1
- time of the pointprice1
- price of the point@Deprecated IChartObject drawUnlocked(java.lang.String key, IChart.Type type, long time1, double price1, long time2, double price2, long time3, double price3)
addToMainChartUnlocked()
method instead.
Draws graphical object that requires up to 3 points. Object can be selected, moved and changed by the userkey
- unique id of the objecttype
- type of the objecttime1
- time of first pointprice1
- price of first pointtime2
- time of second pointprice2
- price of second pointtime3
- time of third pointprice3
- price of third point@Deprecated IChartObject drawUnlocked(java.lang.String key, IChart.Type type, long time1, double price1, long time2, double price2)
addToMainChartUnlocked()
method instead.
Draws graphical object that requires up to 2 points. Object can be selected, moved and changed by the userkey
- unique id of the objecttype
- type of the objecttime1
- time of first pointprice1
- price of first pointtime2
- time of second pointprice2
- price of second point@Deprecated IChartObject drawUnlocked(java.lang.String key, IChart.Type type, long time1, double price1)
addToMainChartUnlocked()
method instead.key
- unique id of the objecttype
- type of the objecttime1
- time of the pointprice1
- price of the pointvoid move(IChartObject objectToMove, long newTime, double newPrice)
objectToMove
- chart object to movenewTime
- new time coordinatenewPrice
- new price coordinatevoid move(java.lang.String chartObjectKey, long newTime, double newPrice)
chartObjectKey
- key of the chart object to movenewTime
- new time coordinatenewPrice
- new price coordinatevoid comment(java.lang.String comment)
comment
- string to displayvoid setCommentHorizontalPosition(int position)
position
- One of the following constants
defined in SwingConstants
:
LEFT
,
CENTER
,
RIGHT
java.lang.IllegalArgumentException
- if position has incorrect valuegetCommentHorizontalPosition()
,
SwingConstants
int getCommentHorizontalPosition()
SwingConstants
:
LEFT
,
CENTER
,
RIGHT
.setCommentHorizontalPosition(int)
void setCommentVerticalPosition(int position)
position
- One of the following constants
defined in SwingConstants
:
TOP
,
CENTER
,
BOTTOM
java.lang.IllegalArgumentException
- if position has incorrect valuegetCommentVerticalPosition()
,
SwingConstants
int getCommentVerticalPosition()
SwingConstants
:
TOP
,
CENTER
,
BOTTOM
.setCommentVerticalPosition(int)
void setCommentFont(java.awt.Font font)
font
- the desired Font
for commentComponent.getFont()
java.awt.Font getCommentFont()
setCommentFont(Font)
void setCommentColor(java.awt.Color color)
color
- the color to become comment's foreground color
if this parameter is null
, then used default text font defined in chart's themegetCommentColor()
java.awt.Color getCommentColor()
setCommentColor(Color)
IChartObject get(java.lang.String key)
IChartObject
instance by key if any exist on this panel.get
in interface IChartPanel
key
- unique idIChartObject remove(java.lang.String key)
remove
in interface IChartPanel
key
- key of object to removevoid remove(IChartObject chartObject)
remove
in interface IChartPanel
chartObject
- object to removejava.util.List<IChartObject> remove(java.util.List<IChartObject> chartObjects)
chartObjects
- list of graphical objects to removejava.util.List<IChartObject> getAll()
getAll
in interface IChartPanel
void removeAll()
removeAll
in interface IChartPanel
int size()
@Deprecated double priceMin(int index)
IChartPanel.getMinPrice()
index
- of the (sub-)window@Deprecated double priceMax(int index)
IChartPanel.getMaxPrice()
index
- of the (sub-)windowvoid setVerticalAxisScale(double minPriceValue, double maxPriceValue)
minPriceValue
- minimal value of the vertical scalemaxPriceValue
- maximal value of the vertical scalevoid setVerticalAutoscale(boolean autoscale)
autoscale
- vertical autoscaleint getBarsCount()
int windowsTotal()
Instrument getInstrument()
getFeedDescriptor()
@Deprecated void setInstrument(Instrument instrument)
instrument
- instrument to setPeriod getSelectedPeriod()
getFeedDescriptor()
OfferSide getSelectedOfferSide()
getFeedDescriptor()
@Deprecated void addIndicator(IIndicator indicator)
add(IIndicator)
methodindicator
- as IIndicator
@Deprecated void addIndicator(IIndicator indicator, java.lang.Object[] optParams)
add(IIndicator, Object[])
methodindicator
- as IIndicator
optParams
- as Object[]
@Deprecated void addIndicator(IIndicator indicator, java.lang.Object[] optParams, java.awt.Color[] outputColors, OutputParameterInfo.DrawingStyle[] outputDrawingStyles, int[] outputWidths)
IChartPanel.add(com.dukascopy.api.indicators.IIndicator, Object[], java.awt.Color[], com.dukascopy.api.indicators.OutputParameterInfo.DrawingStyle[], int[])
methodindicator
- as IIndicator
optParams
- as Object[]
outputColors
- as Color[]
outputDrawingStyles
- as DrawingStyle[]
outputWidths
- as int[]
@Deprecated void addSubIndicator(java.lang.Integer subChartId, IIndicator indicator)
getIndicatorPanels()
and IChartPanel.add(IIndicator)
methods.subChartId
- id of sub chartindicator
- as IIndicator
IChartPanel add(IIndicator indicator)
add
in interface IChartPanel
indicator
- as IIndicator
IChartPanel add(IIndicator indicator, java.lang.Object[] optParams)
add
in interface IChartPanel
indicator
- as IIndicator
optParams
- as Object[]
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 indicatorsIChartPanel 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
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 indicatorsIChartPanel 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[]
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[]
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[]
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[]
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[]
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[]
void removeIndicator(IIndicator indicator)
removeIndicator
in interface IChartPanel
indicator
- instance of IIndicator
interfacejava.util.List<IIndicator> getIndicators()
getIndicators
in interface IChartPanel
java.util.List<IIndicatorAppearanceInfo> getIndicatorApperanceInfos()
getIndicatorApperanceInfos
in interface IChartPanel
DataType getDataType()
getFeedDescriptor()
PriceRange getPriceRange()
getFeedDescriptor()
LineBreakLookback getLineBreakLookback()
getFeedDescriptor()
ReversalAmount getReversalAmount()
getFeedDescriptor()
Filter getFilter()
getFeedDescriptor()
IFeedDescriptor getFeedDescriptor()
IFeedDescriptor
IFeedDescriptor
void repaint()
IChartObjectFactory getChartObjectFactory()
IChartObjectFactory
instance. This factory provides convenience methods to create
various graphics objects.IChartObjectFactory
instance.void add(IChartObject chartObject)
IChartObject
type to current panel.
Please note that only one instance of object can be added per chart.add
in interface IChartPanel
chartObject
- - instance of IChartObject
super type.@Deprecated void addToMainChart(IChartObject object)
add(IChartObject)
methodIChartObject
super type to main chart window.
Please note that only one instance of object can be added per main chart window.object
- - instance of IChartObject
super type.java.lang.IllegalArgumentException
- - if object
is already present on any of main charts.@Deprecated void addToSubChart(java.lang.Integer subChartId, int indicatorId, IChartObject object)
getIndicatorPanels()
and IIndicatorPanel.add(IChartObject)
methodsIChartObject
super type to sub chart window with specified subChartId
and indicatorId
.
Please note that only one instance of object can be added per sub chart window.subChartId
- - sub chart id.indicatorId
- - indicator function id.object
- - instance of IChartObject
super type.java.lang.IllegalArgumentException
- - if object
is already present on any of sub charts.@Deprecated void addToMainChartUnlocked(IChartObject object)
addToMainChart(IChartObject)
There is no objects division onto locked and unlocked anymoreIChartObject
super type to unlocked objects pool of main chart window.
Please note that only one instance of object can be added to unlocked objects pool per main chart window.object
- - instance of IChartObject
super type.java.lang.IllegalArgumentException
- - if object
is already present on any of main charts unlocked objects pool.@Deprecated java.lang.Boolean isChartObjectUnlocked(IChartObject chartObject)
chartObject
is unlocked or not. Returns null
if chart does not contain specified chartObject
chartObject
- object to checktrue
- chartObject
is unlocked, false
- if not, null
- chartObject
does not belong to this
chart.TickBarSize getTickBarSize()
getFeedDescriptor()
@Deprecated java.util.List<IChartObject> getStrategyChartObjects()
java.awt.image.BufferedImage getImage()
BufferedImage
snapshot of this chart at the given moment.BufferedImage
snapshot of current chart at the method invocation moment.void setDataPresentationType(DataType.DataPresentationType presentationType)
getDataType()
.getSupportedPresentationTypes() to get all allowed values.
Use getDataType()
.isPresentationTypeSupported(DataPresentationType presentationType)
to check whether current DataType supports presentationType or not.presentationType
- one of DataPresentationType constants, supported by current DataTypejava.lang.IllegalArgumentException
- if DataPresentationType is not supported by current DataTypegetDataType()
DataType.DataPresentationType getDataPresentationType()
DataType.DataPresentationType
.
Depends on current DataType
valuegetDataType()
void selectDrawing(java.lang.String key)
key
- IChartObject's keyIChartObject.isLocked()
,
IChartObject.setLocked(boolean)
void selectDrawing(IChartObject chartObject)
chartObject
- object to selectIChartObject.isLocked()
,
IChartObject.setLocked(boolean)
void navigateAndSelectDrawing(java.lang.String key)
key
- IChartObject's keyIChartObject.isLocked()
,
IChartObject.setLocked(boolean)
void navigateAndSelectDrawing(IChartObject chartObject)
chartObject
- object to selectIChartObject.isLocked()
,
IChartObject.setLocked(boolean)
java.util.List<IIndicatorPanel> getIndicatorPanels()
@Deprecated void addSubIndicator(IIndicator indicator)
add(IIndicator)
indicator
- indicator to add@Deprecated void addSubIndicatorByPanelIndex(java.lang.Integer subPanelIndex, IIndicator indicator)
getIndicatorPanels()
and add(IIndicator)
methodssubPanelIndex
- panel's indexindicator
- indicator to addjava.lang.IllegalStateException
- in case of incorrect subPanelIndex or indicator is not designed for sub panel.@Deprecated void addToSubChart(int subPanelIndex, IChartObject chartObject)
getIndicatorPanels()
and IIndicatorPanel.add(IChartObject)
methodsIChartObject
type to sub chart panel with specified index
.
Please note that only one instance of object can be added on chart.subPanelIndex
- panel's indexchartObject
- object to addjava.lang.IllegalArgumentException
- in case of incorrect indexITimedData[] getLastRequestedData()
Object
type depends on getDataType()
java.util.Map<IIndicator,java.lang.Object[]> getLastCalculatedIndicatorOutputs()
Object
in Object[] stands for an output array of an indicator.
In each output array that is represented by an Object (of Object[]),
the 0th element stands for the first visible data feed object on the chart,
and the last element - for the data feed object element on the chart.long getMinTime()
long getMaxTime()
DataType
other than DataType.TICKS
or DataType.TIME_PERIOD_AGGREGATION
,
the maximal time value is the one of the last feed data element.void setCustomRange(int unitsBefore, long time, int unitsAfter)
unitsBefore
- number of displayed bars before specified timetime
- time to which chart should be scrolledunitsAfter
- number of displayed bars after specified timedouble getMinPrice()
getMinPrice
in interface IChartPanel
double getMaxPrice()
getMaxPrice
in interface IChartPanel
boolean isHistoricalTesterChart()
IChartTheme getTheme()
void setFeedDescriptor(IFeedDescriptor feedDescriptor)
feedDescriptor
- descriptor of chart data feedvoid setFocus()
void setChartAutoShiftActive(boolean active)
active
- if set to true - turn on chart auto shift, false - turn it offboolean isAlive()
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)
void switchPickingPriceMode(boolean isPickingPrice, IChart.PickingPriceListener listener)
isPickingPrice
- if set to true - turn on picking price mode, false - turn it offlistener
- listener to receive picked price valueCopyright © 2024. All rights reserved.