|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILeveledChartObject
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.dukascopy.api.IChartObject |
|---|
IChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXT |
| Field Summary |
|---|
| Fields inherited from interface com.dukascopy.api.IChartObject |
|---|
PROPERTY_FONT, PROPERTY_FOREGROUND_ALPHA, PROPERTY_FOREGROUND_COLOR, PROPERTY_POINT_PRICE, PROPERTY_POINT_TIME, PROPERTY_STICKY, PROPERTY_STROKE |
| Method Summary | |
|---|---|
void |
addLevel(String label,
Double value,
Color color)
Adds new level to object levels. |
Color |
getLevelColor(int index)
Returns level color by specified index. |
String |
getLevelLabel(int index)
Returns level label text by specified index. |
int |
getLevelsCount()
Returns number of levels |
Double |
getLevelValue(int index)
Returns level value by specified index. |
void |
removeLevel(int index)
Removes level by specified index. |
void |
setLevelColor(int index,
Color color)
Sets color to level, specified by index. |
void |
setLevelLabel(int index,
String label)
Sets label text to level, specified by index. |
void |
setLevelValue(int index,
Double value)
Sets value to level, specified by index. |
| Methods inherited from interface com.dukascopy.api.drawings.IChartDependentChartObject |
|---|
move, setPrice, setTime |
| Methods inherited from interface com.dukascopy.api.IChartObject |
|---|
addPropertyChangeListener, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getKey, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTime, getType, isMenuEnabled, isSticky, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setMenuEnabled, setOpacity, setSticky, setStroke, setText, setText, setText, setText |
| Method Detail |
|---|
String getLevelLabel(int index)
index - - level index.
IllegalArgumentException - - if level index is out of bounds.
void setLevelLabel(int index,
String label)
index - - level index.label - - text to set.
IllegalArgumentException - - if level index is out of bounds.Double getLevelValue(int index)
index - - level index.
IllegalArgumentException - - if level index is out of bounds.
void setLevelValue(int index,
Double value)
index - - level index.value - - value to set.
IllegalArgumentException - - if level index is out of bounds.Color getLevelColor(int index)
index - - level index.
IllegalArgumentException - - if level index is out of bounds.
void setLevelColor(int index,
Color color)
index - - level index.color - - color to set.
IllegalArgumentException - - if level index is out of bounds.
void addLevel(String label,
Double value,
Color color)
label - - level label text.color - - level color.value - - level value.void removeLevel(int index)
index - - index of level to remove.
IllegalArgumentException - - if index is out of bounds.int getLevelsCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||