IAnnotationPlacementStrategy
StockSharp.Xaml.Charting.StrategyManager
Defines the interface for methods which allows to place annotation
Methods
GetBasePoints
public Point[] GetBasePoints(AnnotationCoordinates coordinates)
result = iAnnotationPlacementStrategy.GetBasePoints(coordinates)
Gets base points for annotation instance
- coordinates
IsInBounds
public bool IsInBounds(AnnotationCoordinates coordinates, IAnnotationCanvas annotationCanvas)
result = iAnnotationPlacementStrategy.IsInBounds(coordinates, annotationCanvas)
Checks whether coordinates are within canvas bounds
- coordinates
- annotationCanvas
MoveAnnotationTo
public void MoveAnnotationTo(AnnotationCoordinates coordinates, double horizontalOffset, double verticalOffset, IAnnotationCanvas annotationCanvas)
iAnnotationPlacementStrategy.MoveAnnotationTo(coordinates, horizontalOffset, verticalOffset, annotationCanvas)
Moves the annotation to a specific horizontal and vertical offset
- coordinates
- horizontalOffset
- verticalOffset
- annotationCanvas
PlaceAnnotation
public void PlaceAnnotation(AnnotationCoordinates coordinates)
iAnnotationPlacementStrategy.PlaceAnnotation(coordinates)
Places annotation with specific annotation coordinates
- coordinates
SetBasePoint
public void SetBasePoint(Point newPoint, int index)
iAnnotationPlacementStrategy.SetBasePoint(newPoint, index)
Sets base point for annotation
- newPoint
- index