public interface IChartDependentChartObject extends IChartObject
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 |
|---|---|
boolean |
isStickToCandlePriceEnabled()
Returns stick to candle/bar price option state on Y axis while drawing.
|
boolean |
isStickToCandleTimeEnabled()
Returns stick to candle/bar time option state on X axis while drawing.
|
void |
move(long time,
double price)
Moves first point of the object to the new position dragging whole object with all other points.
|
void |
setPrice(int pointIndex,
double priceValue)
Sets price value for figure edge specified by
pointIndex. |
void |
setStickToCandlePriceEnabled(boolean enabled)
Sets stick to candle/bar price option.
|
void |
setStickToCandleTimeEnabled(boolean enabled)
Sets stick to candle/bar time option.
|
void |
setTime(int pointIndex,
long timeValue)
Sets time value for figure edge specified by
pointIndex. |
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, setVisibleInWorkspaceTreevoid setTime(int pointIndex,
long timeValue)
pointIndex.pointIndex - index of figure edgetimeValue - time valuejava.lang.IllegalArgumentException - if pointIndex specified is invalidvoid setPrice(int pointIndex,
double priceValue)
pointIndex.pointIndex - index of figure edgepriceValue - price valuejava.lang.IllegalArgumentException - if pointIndex specified is invalidvoid move(long time,
double price)
move in interface IChartObjecttime - new time of the first pointprice - new price of the first pointboolean isStickToCandleTimeEnabled()
true if chart object will stick to candle time, false otherwisevoid setStickToCandleTimeEnabled(boolean enabled)
enabled - true if chart object should stick to candle time, false otherwiseboolean isStickToCandlePriceEnabled()
true if chart object will stick to candle price, false otherwisevoid setStickToCandlePriceEnabled(boolean enabled)
enabled - true if chart object should stick to candle price, false otherwiseCopyright © 2025. All rights reserved.