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(java.lang.String label,
java.lang.Double value,
java.awt.Color color)
Adds new level to object levels. |
java.awt.Color |
getLevelColor(int index)
Returns level color by specified index. |
java.lang.String |
getLevelLabel(int index)
Returns level label text by specified index. |
int |
getLevelsCount()
Returns number of levels |
java.lang.Double |
getLevelValue(int index)
Returns level value by specified index. |
void |
removeLevel(int index)
Removes level by specified index. |
void |
setLevelColor(int index,
java.awt.Color color)
Sets color to level, specified by index. |
void |
setLevelLabel(int index,
java.lang.String label)
Sets label text to level, specified by index. |
void |
setLevelValue(int index,
java.lang.Double value)
Sets value to level, specified by index. |
| Methods inherited from interface com.dukascopy.api.drawings.IChartDependentChartObject |
|---|
isStickToCandleTimeEnabled, move, setPrice, setStickToCandleTimeEnabled, setTime |
| Method Detail |
|---|
java.lang.String getLevelLabel(int index)
index - - level index.
java.lang.IllegalArgumentException - - if level index is out of bounds.
void setLevelLabel(int index,
java.lang.String label)
index - - level index.label - - text to set.
java.lang.IllegalArgumentException - - if level index is out of bounds.java.lang.Double getLevelValue(int index)
index - - level index.
java.lang.IllegalArgumentException - - if level index is out of bounds.
void setLevelValue(int index,
java.lang.Double value)
index - - level index.value - - level value coefficient. Coefficient 1.0 corresponds to the 100% level.
java.lang.IllegalArgumentException - - if level index is out of bounds.java.awt.Color getLevelColor(int index)
index - - level index.
java.lang.IllegalArgumentException - - if level index is out of bounds.
void setLevelColor(int index,
java.awt.Color color)
index - - level index.color - - color to set.
java.lang.IllegalArgumentException - - if level index is out of bounds.
void addLevel(java.lang.String label,
java.lang.Double value,
java.awt.Color color)
label - - level label text.color - - level color.value - - level value coefficient. Coefficient 1.0 corresponds to the 100% level.void removeLevel(int index)
index - - index of level to remove.
java.lang.IllegalArgumentException - - if index is out of bounds.int getLevelsCount()