com.dukascopy.api.drawings
Interface IPolyLineChartObject

All Superinterfaces:
IChartDependentChartObject, IChartObject

public interface IPolyLineChartObject
extends IChartDependentChartObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.dukascopy.api.IChartObject
IChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXT
 
Field Summary
static int MAX_POINTS_COUNT
          maximum number of points allowed
 
Fields inherited from interface com.dukascopy.api.IChartObject
PROPERTY_FONT, PROPERTY_FOREGROUND_ALPHA, PROPERTY_FOREGROUND_COLOR, PROPERTY_POINT_PRICE, PROPERTY_POINT_TIME, PROPERTY_STICKY, PROPERTY_STROKE
 
Method Summary
 boolean addNewPoint(long time, double price)
          Appends new point to end of the line
 void removePoint(int index)
          Removes point at specified position
 
Methods inherited from interface com.dukascopy.api.drawings.IChartDependentChartObject
isStickToCandleTimeEnabled, move, setPrice, setStickToCandleTimeEnabled, setTime
 
Methods inherited from interface com.dukascopy.api.IChartObject
addPropertyChangeListener, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getKey, getLineWidth, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTextTruncation, getTime, getType, isLabelEnabled, isLocked, isMenuEnabled, isSticky, isVisibleInWorkspaceTree, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setLineStyle, setLineWidth, setLocked, setMenuEnabled, setOpacity, setSticky, setStroke, setText, setText, setText, setText, setTextTruncation, setTooltip, setVisibleInWorkspaceTree
 

Field Detail

MAX_POINTS_COUNT

static final int MAX_POINTS_COUNT
maximum number of points allowed

See Also:
Constant Field Values
Method Detail

addNewPoint

boolean addNewPoint(long time,
                    double price)
Appends new point to end of the line

Parameters:
time -
price -
Returns:
boolean true if point appended successfully, otherwise false if reached max number of points
See Also:
IPolyLineChartObject.MAX_POINTS_COUNT

removePoint

void removePoint(int index)
Removes point at specified position

Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())