com.dukascopy.api.drawings
Interface IChartDependentChartObject

All Superinterfaces:
IChartObject
All Known Subinterfaces:
IAndrewsPitchforkChartObject, IChannelChartObject, ICyclesChartObject, IEllipseChartObject, IFiboArcChartObject, IFiboExpansionChartObject, IFiboFanChartObject, IFiboRetracementChartObject, IFiboTimeZonesChartObject, IFillableChartObject, IGannAnglesChartObject, IHorizontalLineChartObject, ILabelChartObject, ILeveledChartObject, ILongLineChartObject, IOrderLineChartObject, IPercentChartObject, IPolyLineChartObject, IPriceMarkerChartObject, IRayLineChartObject, IRectangleChartObject, IShortLineChartObject, ISignalDownChartObject, ISignalUpChartObject, ITextChartObject, ITimeMarkerChartObject, ITriangleChartObject, IVerticalLineChartObject, IVerticalRetracementChartObject

public interface IChartDependentChartObject
extends IChartObject


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
 
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
 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 setTime(int pointIndex, long timeValue)
          Sets time value for figure edge specified by pointIndex.
 
Methods inherited from interface com.dukascopy.api.IChartObject
addPropertyChangeListener, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getKey, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTime, getType, isMenuEnabled, isSticky, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setMenuEnabled, setOpacity, setSticky, setStroke, setText, setText, setText, setText
 

Method Detail

setTime

void setTime(int pointIndex,
             long timeValue)
Sets time value for figure edge specified by pointIndex.

Parameters:
pointIndex - - index of figure edge.
timeValue - - time value.
Throws:
IllegalArgumentException - - if pointIndex specified is invalid.

setPrice

void setPrice(int pointIndex,
              double priceValue)
Sets price value for figure edge specified by pointIndex.

Parameters:
pointIndex - - index of figure edge.
priceValue - - price value.
Throws:
IllegalArgumentException - - if pointIndex specified is invalid.

move

void move(long time,
          double price)
Moves first point of the object to the new position dragging whole object with all other points. Do not initiate chart repaint immediately, use IChart.repaint() method if necessary.

Specified by:
move in interface IChartObject
Parameters:
time - new time of the first point
price - new price of the first point


Copyright © 2011. All Rights Reserved.