IAnnotation
Defines the interface to an annotation, a custom drawable element over or under the UltrachartSurface
Implementiert: IHitTestable, IPublishMouseEvents, IXmlSerializable
Eigenschaften
DataContext : object
Gets or sets the data context
DragDirections : XyDirection
Limits the Drag direction when dragging the annotation using the mouse, e.g in the X-Direction, Y-Direction or XyDirection. See the XyDirection enumeration for options
IsAttached : bool
Gets or sets whether the current annotation is attached
IsEditable : bool
Gets or sets whether you can interact current annotation
IsResizable : bool
Gets value, indicates whether current instance is resizable
IsSelected : bool
Gets or sets whether the current annotation is selected
ParentSurface : IUltrachartSurface
Gets or sets the parent IUltrachartSurface that this Annotation belongs to
ResizeDirections : XyDirection
Limits the Resize direction when resiaing the annotation using the mouse, e.g in the X-Direction, Y-Direction or XyDirection. See the XyDirection enumeration for options
Services : IServiceContainer
Gets or sets a IServiceContainer container
X1 : IComparable
Gets or sets the X1 Coordinate of the Annotation. For Absolute, this must be a data-value on the X-Axis such as a DateTime for DateTimeAxis, double for NumericAxis or integer index for CategoryDateTimeAxis. For Relative, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the XAxis and 1.0 is the far right.
X2 : IComparable
Gets or sets the X2 Coordinate of the Annotation. For Absolute, this must be a data-value on the X-Axis such as a DateTime for DateTimeAxis, double for NumericAxis or integer index for CategoryDateTimeAxis. For Relative, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the XAxis and 1.0 is the far right.
XAxes : IEnumerable<IAxis>
Returns the XAxes on the parent UltrachartSurface
Y1 : IComparable
Gets or sets the Y1 Coordinate of the Annotation. For Absolute, this must be a data-value on the Y-Axis such as a double for NumericAxis For Relative, this must be a double value between 0.0 and 1.0, where 0.0 is the bottom of the YAxis and 1.0 is the top
Y2 : IComparable
Gets or sets the Y2 Coordinate of the Annotation. For Absolute, this must be a data-value on the Y-Axis such as a double for NumericAxis For Relative, this must be a double value between 0.0 and 1.0, where 0.0 is the bottom of the YAxis and 1.0 is the top
YAxes : IEnumerable<IAxis>
Returns the YAxes on the parent UltrachartSurface
Methoden
CanMultiSelect(IAnnotation[]) : bool
Check if this annotation can be multiselected along with other annotations.
- annotations
- Annotations to check against.
CaptureMouse() : bool
Captures the mouse
Drag(double, double)
Raises the DragDelta event, called when a drag operation is in progress and each time the X1 Y1 X2 Y2 points update in the annotation
EndDrag()
Raises the DragEnded event, called when a drag operation ends
GetBasePoints() : Point[]
This method is used in internally by the AnnotationResizeAdorner. Gets the adorner point positions
Hide()
Hides the Annotation by removing adorner markers from the ParentSurface AdornerLayerCanvas and setting Visibility to Collapsed
MoveAnnotation(double, double)
This method is used internally by the AnnotationDragAdorner. Programmatically moves the annotation by an X,Y offset.
- offsetX
- offsetY
OnAttached()
Called when the Annotation is attached to parent surface
OnDetached()
Called when the Annotation is detached from its parent surface
OnXAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)
Raises notification when parent XAxes changes.
OnYAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)
Raises notification when parent YAxes changes.
Refresh() : bool
Refreshes the annnotation position on the parent UltrachartSurface, without causing a full redraw of the chart
ReleaseMouseCapture()
Releases mouse capture
SetBasePoint(Point, int)
This method is used in internally by the AnnotationResizeAdorner. Programmatically sets an adorner point position
- newPoint
- index
Show()
Shows annotation which being hidden by Hide call
Update(ICoordinateCalculator<double>, ICoordinateCalculator<double>)
Updates the coordinate calculators and refreshes the annotation position on the parent UltrachartSurface
- xCoordinateCalculator
- The XAxis ICoordinateCalculator
- yCoordinateCalculator
- The YAxis ICoordinateCalculator
Ereignisse
DragDelta : EventHandler<AnnotationDragDeltaEventArgs>
Occurs when current AnnotationBase is dragged or moved
DragEnded : EventHandler<AnnotationDragEventArgs>
Occurs when a Drag or move operation ends
DragStarted : EventHandler<AnnotationDragEventArgs>
Occurs when a Drag or move operation starts
Selected : EventHandler
Occurs when IAnnotation becomes selected.
Unselected : EventHandler
Occurs when IAnnotation becomes unselected.