public interface IPolyLineChartObject extends IChartDependentChartObject
IChartObject.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
|
isStickToCandleTimeEnabled, move, setPrice, setStickToCandleTimeEnabled, setTime
addPropertyChangeListener, 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, setVisibleInWorkspaceTree
static final int MAX_POINTS_COUNT
boolean addNewPoint(long time, double price)
time
- price
- MAX_POINTS_COUNT
void removePoint(int index)
index
- IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size())Copyright © 2016. All rights reserved.