|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChart
Allows to draw graphical objects on the chart
Nested Class Summary | |
---|---|
static class |
IChart.Type
Type of the graphical object |
Method Summary | |
---|---|
void |
comment(String comment)
Writes a comment in the upper left corner. |
IChartObject |
draw(String key,
IChart.Type type,
long time1,
double price1)
Draws graphical object that requires only 1 point |
IChartObject |
draw(String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2)
Draws graphical object that requires up to 2 points |
IChartObject |
draw(String key,
IChart.Type type,
long time1,
double price1,
long time2,
double price2,
long time3,
double price3)
Draws graphical object that requires up to 3 points |
IChartObject |
get(String key)
Returns graphical object by key |
List<IChartObject> |
getAll()
Returns all graphical objects |
OfferSide |
getSelectedOfferSide()
|
Period |
getSelectedPeriod()
|
void |
move(IChartObject objectToMove,
long newTime,
double newPrice)
Moves graphical object to new coordinates |
void |
move(String chartObjectKey,
long newTime,
double newPrice)
Moves graphical object to new coordinates |
double |
priceMax(int index)
Returns maximal value of the vertical scale of the specified subwindow of the current chart (0-main chart window, the indicators' subwindows are numbered starting from 1). |
double |
priceMin(int index)
Returns minimal value of the vertical scale of the specified subwindow of the current chart (0-main chart window, the indicators' subwindows are numbered starting from 1). |
IChartObject |
remove(String key)
Deletes and returns graphical object by key |
void |
removeAll()
Removes all graphical objects on the chart |
int |
size()
Returns number of the graphical objects on the chart |
int |
windowsTotal()
Returns count of indicator windows on the chart (including main chart). |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
IChartObject draw(String key, IChart.Type type, long time1, double price1, long time2, double price2, long time3, double price3)
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
IChartObject draw(String key, IChart.Type type, long time1, double price1, long time2, double price2)
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
IChartObject draw(String key, IChart.Type type, long time1, double price1)
key
- unique id of the objecttype
- type of the objecttime1
- time of the pointprice1
- price of the point
void move(IChartObject objectToMove, long newTime, double newPrice)
objectToMove
- chart object to movenewTime
- new time coordinatenewPrice
- new price coordinatevoid move(String chartObjectKey, long newTime, double newPrice)
chartObjectKey
- key of the chart object to movenewTime
- new time coordinatenewPrice
- new price coordinatevoid comment(String comment)
comment
- string to displayIChartObject get(String key)
key
- unique id of the object
IChartObject remove(String key)
key
- unique id of the object
List<IChartObject> getAll()
void removeAll()
int size()
double priceMin(int index)
index
- of the (sub-)window
double priceMax(int index)
index
- of the (sub-)window
int windowsTotal()
Period getSelectedPeriod()
OfferSide getSelectedOfferSide()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |