public interface IClientChartPresentationManager
Manages Chart presentation modes (Period, DataType, etc.).
NOTE: Used only by Standalone JForex API.
IChart,
IClientGUI| Method Summary | |
|---|---|
DataType.DataPresentationType |
getDataPresentationType()
Returns charts' current DataType.DataPresentationType. |
IFeedDescriptor |
getFeedDescriptor()
Returns chart state described by bean IFeedDescriptor |
Filter |
getFilter()
|
IChartTheme |
getPredefinedTheme(IChartTheme.Predefined predefinedTheme)
Gets a copy of a predefined chart theme |
IChartTheme |
getTheme()
Returns current chart theme. |
boolean |
isChartAutoShift()
returns true if chart Auto Shift is activated |
void |
setChartAutoShift()
Activates chart Auto Shift |
void |
setDataPresentationType(DataType.DataPresentationType dataPresentationType)
Applies DataPresentationType to current chart. |
void |
setFeedDescriptor(IFeedDescriptor feedDescriptor)
Changes bundle of chart's feed data properties at once. |
void |
setFilter(Filter filter)
Sets the Filter globally which will be propagated to all open charts. |
void |
setInstrument(Instrument instrument)
Changes current Instrument to specified one |
void |
setTheme(IChartTheme chartTheme)
Sets chart theme |
void |
switchOfferSide(OfferSide offerSide)
Switches OfferSide |
void |
zoomIn()
Zooms in chart |
void |
zoomOut()
Zooms out chart |
| Method Detail |
|---|
void setFeedDescriptor(IFeedDescriptor feedDescriptor)
feedDescriptor - - see IFeedDescriptorsetFilter(Filter),
getFilter(),
setInstrument(Instrument),
switchOfferSide(OfferSide)IFeedDescriptor getFeedDescriptor()
IFeedDescriptor
IFeedDescriptorvoid setChartAutoShift()
boolean isChartAutoShift()
void zoomIn()
void zoomOut()
void setInstrument(Instrument instrument)
Instrument to specified one
instrument - new active Instrumentvoid setDataPresentationType(DataType.DataPresentationType dataPresentationType)
IChart.getDataType().getSupportedPresentationTypes() to get all allowed values.
Use IChart.getDataType().isPresentationTypeSupported(DataPresentationType presentationType)
to check whether current DataType supports presentationType or not.
presentationType - one of DataPresentationType constants, supported by current DataType
java.lang.IllegalArgumentException - if DataPresentationType is not supported by current DataTypeIChart#setDataPresentationType(DataPresentationType),
IChart.getDataType()DataType.DataPresentationType getDataPresentationType()
DataType.DataPresentationType.
Depends on current DataType value
IChart.getDataPresentationType(),
IChart.getDataType()void switchOfferSide(OfferSide offerSide)
offerSide - void setFilter(Filter filter)
Filter globally which will be propagated to all open charts.
filter - Filter to filter flats dataFilter getFilter()
Filter which is shared by all IChartsIChartTheme getTheme()
void setTheme(IChartTheme chartTheme)
chartTheme - IChartTheme getPredefinedTheme(IChartTheme.Predefined predefinedTheme)
predefinedTheme - theme enumeration