public interface IPolyLineChartObject extends IDecoratedChartObject
IDecoratedChartObject.Decoration, IDecoratedChartObject.PlacementIChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXT| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_POINTS_COUNT
maximum number of points allowed
|
PROPERTY_FONT, PROPERTY_FOREGROUND_ALPHA, PROPERTY_FOREGROUND_COLOR, PROPERTY_POINT_PRICE, PROPERTY_POINT_TIME, PROPERTY_STICKY, PROPERTY_STROKE| Modifier and Type | Method and Description |
|---|---|
boolean |
addNewPoint(long time,
double price)
Appends new point to end of the line.
|
void |
removePoint(int index)
Removes point at specified position.
|
getDecorations, removeDecorations, setDecoration, setDecorationsisStickToCandlePriceEnabled, isStickToCandleTimeEnabled, move, setPrice, setStickToCandlePriceEnabled, setStickToCandleTimeEnabled, setTimeaddPropertyChangeListener, 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, setVisibleInWorkspaceTreestatic final int MAX_POINTS_COUNT
boolean addNewPoint(long time,
double price)
time - time valueprice - price valueMAX_POINTS_COUNTvoid removePoint(int index)
index - point indexjava.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())Copyright © 2025. All rights reserved.