com.dukascopy.api.drawings
Interface IChartDependentChartObject

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

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
 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 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.
 
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
 

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:
java.lang.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:
java.lang.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

isStickToCandleTimeEnabled

boolean isStickToCandleTimeEnabled()
Returns stick to candle/bar time option state on X axis while drawing. Actual only for uniform periods. System default value: true


setStickToCandleTimeEnabled

void setStickToCandleTimeEnabled(boolean enabled)
Sets stick to candle/bar time option. Actual only for uniform periods. System default value: true

Parameters:
enabled -