public interface ILeveledChartObject extends IFillableChartObject
Modifier and Type | Interface and Description |
---|---|
static class |
ILeveledChartObject.LevelsDisplayOption |
IChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXT
PROPERTY_BACKGROUND_COLOR, PROPERTY_BACKGROUND_OPACITY
PROPERTY_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(java.lang.String label,
java.lang.Double value,
java.awt.Color color)
Adds new level to object levels.
|
void |
addLevel(java.lang.String label,
java.lang.Double value,
java.awt.Color color,
java.awt.Color fillColor)
Adds new level to object levels.
|
boolean |
areLevelsShown()
Returns show levels option.
|
java.awt.Color |
getLevelColor(int index)
Returns level color by specified index.
|
java.awt.Color |
getLevelFillColor(int index)
Returns level fill color by specified index.
|
java.lang.String |
getLevelLabel(int index)
Returns level label text by specified index.
|
int |
getLevelsCount()
Returns number of levels.
|
boolean |
getLevelsDisplayOption(ILeveledChartObject.LevelsDisplayOption option)
Returns levels display option.
|
java.lang.Double |
getLevelValue(int index)
Returns level value by specified index.
|
boolean |
isLevelsDisplayOptionSupported(ILeveledChartObject.LevelsDisplayOption option)
Returns levels display option support status.
|
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 |
setLevelFillColor(int index,
java.awt.Color fillColor)
Sets fill color to level, specified by index.
|
void |
setLevelLabel(int index,
java.lang.String label)
Sets label text to level, specified by index.
|
void |
setLevelsDisplayOption(ILeveledChartObject.LevelsDisplayOption option,
boolean show)
Sets levels display option.
|
void |
setLevelValue(int index,
java.lang.Double value)
Sets value to level, specified by index.
|
void |
setShowLevels(boolean showLevels)
Sets show levels option.
|
getFillColor, getFillOpacity, setFillColor, setFillOpacity
isStickToCandlePriceEnabled, isStickToCandleTimeEnabled, move, setPrice, setStickToCandlePriceEnabled, setStickToCandleTimeEnabled, setTime
addPropertyChangeListener, clone, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getFinancialInstrument, getInstrument, getKey, getLineStyle, getLineWidth, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTextTruncation, getTime, getType, isLabelEnabled, isLabelShown, isLocked, isMenuEnabled, isSticky, isVisibleInWorkspaceTree, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setFinancialInstrument, setInstrument, setLineStyle, setLineWidth, setLocked, setMenuEnabled, setOpacity, setShowLabel, setSticky, setStroke, setText, setText, setText, setText, setTextTruncation, setTooltip, setVisibleInWorkspaceTree
java.lang.String getLevelLabel(int index)
index
- level indexjava.lang.IllegalArgumentException
- if level index is out of boundsvoid setLevelLabel(int index, java.lang.String label)
index
- level indexlabel
- text to setjava.lang.IllegalArgumentException
- if level index is out of boundsjava.lang.Double getLevelValue(int index)
index
- level indexjava.lang.IllegalArgumentException
- if level index is out of boundsvoid setLevelValue(int index, java.lang.Double value)
index
- level indexvalue
- level value coefficient. Coefficient 1.0 corresponds to the 100% level.java.lang.IllegalArgumentException
- if level index is out of boundsjava.awt.Color getLevelColor(int index)
index
- level indexjava.lang.IllegalArgumentException
- if level index is out of boundsvoid setLevelColor(int index, java.awt.Color color)
index
- level indexcolor
- color to setjava.lang.IllegalArgumentException
- if level index is out of boundsjava.awt.Color getLevelFillColor(int index)
index
- level indexjava.lang.IllegalArgumentException
- if level index is out of boundsvoid setLevelFillColor(int index, java.awt.Color fillColor)
index
- level indexfillColor
- fill color to setjava.lang.IllegalArgumentException
- if level index is out of boundsvoid addLevel(java.lang.String label, java.lang.Double value, java.awt.Color color)
label
- level label textvalue
- level value coefficient. Coefficient 1.0 corresponds to the 100% level.color
- level colorvoid addLevel(java.lang.String label, java.lang.Double value, java.awt.Color color, java.awt.Color fillColor)
label
- level label textvalue
- level value coefficient. Coefficient 1.0 corresponds to the 100% level.color
- level colorfillColor
- level fill colorvoid removeLevel(int index)
index
- index of level to removejava.lang.IllegalArgumentException
- if index is out of boundsint getLevelsCount()
void setShowLevels(boolean showLevels)
showLevels
- show levels optionboolean areLevelsShown()
void setLevelsDisplayOption(ILeveledChartObject.LevelsDisplayOption option, boolean show)
option
- levels display optionshow
- option valueboolean getLevelsDisplayOption(ILeveledChartObject.LevelsDisplayOption option)
option
- levels display optionboolean isLevelsDisplayOptionSupported(ILeveledChartObject.LevelsDisplayOption option)
option
- levels display optionCopyright © 2024. All rights reserved.