public static interface

ShinobiChart.OnCrosshairDrawListener

com.shinobicontrols.charts.ShinobiChart.OnCrosshairDrawListener

Class Overview

Interface definition for a callback to be invoked when a crosshair is about to be drawn.

Summary

Public Methods
abstract void onDrawCrosshair(ShinobiChart chart, Canvas canvas, Rect plotAreaRect, float pixelXValue, float pixelYValue, float targetCircleRadius, Paint paint)
Notification that a crosshair is about to be drawn.

Public Methods

public abstract void onDrawCrosshair (ShinobiChart chart, Canvas canvas, Rect plotAreaRect, float pixelXValue, float pixelYValue, float targetCircleRadius, Paint paint)

Notification that a crosshair is about to be drawn. This method is responsible for drawing the crosshair on to the canvas.

Parameters
chart the ShinobiChart that the crosshair belongs to, making the callback
canvas the canvas on which to draw the crosshair
plotAreaRect the boundary of the plotArea relative to the canvas, anything drawn beyond these bounds will not be visible
pixelXValue the x coordinate, in pixels, of the current focus point of the crosshair relative to the canvas
pixelYValue the y coordinate, in pixels, of the current focus point of the crosshair relative to the canvas
targetCircleRadius the radius of the circle to be drawn, in pixels
paint the Paint that will be used to draw the crosshair