|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChartObject
Represents graphical object on the chart
Method Summary | |
---|---|
Color |
getColor()
Returns color of the object |
String |
getKey()
|
int |
getPointsCount()
|
double |
getPrice(int pointIndex)
|
Stroke |
getStroke()
Returns stroke that is used for object rendering |
long |
getTime(int pointIndex)
|
IChart.Type |
getType()
Returns type of the graphical object |
void |
move(long time,
double price)
Moves first point of the object to the new position dragging whole object with all other points |
void |
setColor(Color color)
Sets color of the object |
void |
setStroke(Stroke stroke)
Sets stroke for object rendering |
void |
setText(String text)
Sets text to show with the object. |
void |
setText(String text,
Font font)
Sets text to show with the object. |
Method Detail |
---|
void move(long time, double price)
time
- new time of the first pointprice
- new price of the first pointvoid setText(String text)
text
- text to showvoid setText(String text, Font font)
text
- text to showfont
- font to use for text renderingColor getColor()
void setColor(Color color)
color
- color to use for object renderingStroke getStroke()
void setStroke(Stroke stroke)
stroke
- stroke to use for object renderingIChart.Type getType()
String getKey()
long getTime(int pointIndex)
pointIndex
- which determines which coordinate should be used to obtain time
double getPrice(int pointIndex)
pointIndex
- which determines which coordinate should be used to obtain price
int getPointsCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |