public interface ILeveledChartObject extends IChartDependentChartObject
IChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXTPROPERTY_FONT, PROPERTY_FOREGROUND_ALPHA, PROPERTY_FOREGROUND_COLOR, PROPERTY_POINT_PRICE, PROPERTY_POINT_TIME, PROPERTY_STICKY, PROPERTY_STROKE| Modifier and Type | Method and Description |
|---|---|
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.
|
isStickToCandleTimeEnabled, move, setPrice, setStickToCandleTimeEnabled, setTimeaddPropertyChangeListener, clone, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getInstrument, getKey, getLineStyle, getLineWidth, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTextTruncation, getTime, getType, isLabelEnabled, isLocked, isMenuEnabled, isSticky, isVisibleInWorkspaceTree, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setInstrument, setLineStyle, setLineWidth, setLocked, setMenuEnabled, setOpacity, setSticky, setStroke, setText, setText, setText, setText, setTextTruncation, setTooltip, setVisibleInWorkspaceTreeString 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 - - level value coefficient. Coefficient 1.0 corresponds to the 100% level.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 coefficient. Coefficient 1.0 corresponds to the 100% level.void removeLevel(int index)
index - - index of level to remove.IllegalArgumentException - - if index is out of bounds.int getLevelsCount()
Copyright © 2016. All rights reserved.