New to Telerik UI for WinForms? Start a free 30-day trial

Draws scatter-series markers at their arranged coordinates and hit-tests their marker bounds.

Definition

Constructors

Initializes a new instance of the SparkScatterSeriesDrawPart class.

C#
public SparkScatterSeriesDrawPart(SparkScatterSeries series, ISparkRenderer renderer)
Parameters:seriesSparkScatterSeries

The series.

rendererISparkRenderer

The renderer.

Methods

Draws a marker at each scatter point's arranged position.

C#
protected override void DrawPoints()

Overrides: SparkPointSeriesDrawPart.DrawPoints()

Draws the series parts.

C#
public override void DrawSeriesParts()

Overrides: SparkSeriesDrawPart.DrawSeriesParts()

Expands the clip by the view margins while painting a point marker; otherwise uses the base clip.

C#
protected override RectangleF GetAdjustedClipRect(Graphics g)
Parameters:gGraphics

The graphics surface whose clip bounds are adjusted.

Returns:

RectangleF

The clip rectangle used for the current paint context.

Overrides: SparkDrawPart<SparkSeries>.GetAdjustedClipRect(Graphics)

Gets the points array.

C#
protected override PointF[] GetPointsPositionsArray()
Returns:

PointF[]

Overrides: SparkPointSeriesDrawPart.GetPointsPositionsArray()

Returns the SparkDataPoint that hits the location.

C#
public override SparkDataPoint HitTest(Point location)
Parameters:locationPoint

The location.

Returns:

SparkDataPoint

Overrides: SparkPointSeriesDrawPart.HitTest(Point)