OverviewSingleDeprecated

jsx3.chart

interface PointRenderer

jsx3.chart.PointRenderer

interface PointRenderer
Objects that implement this interface may be used in Line/Area/Point/Bubble charts to render the points that appear at each datapoint.

Additionally, this interface contains several static fields that are implementors of this interface.

Field Summary
static jsx3.chart.PointRenderer
BOX
Creates a square point.
static jsx3.chart.PointRenderer
CIRCLE
Creates a circular point.
static jsx3.chart.PointRenderer
CROSS
Creates a x-shaped cross point.
static jsx3.chart.PointRenderer
DIAMOND
Creates a diamond shaped point.
static jsx3.chart.PointRenderer
TRIANGLE
Creates an upward-pointing triangular point.
Method Summary
abstract Number
Converts the area of the point to display to the radius of the box that it should fill.
abstract jsx3.vector.Tag
render(x1 : int, y1 : int, x2 : int, y2 : int, fill : jsx3.vector.Fill, stroke : jsx3.vector.Stroke)
Renders the point in the bounds specified by {x1,y1} {x2,y2}.
Field Detail

BOX

static jsx3.chart.PointRenderer BOX
Creates a square point.

CIRCLE

static jsx3.chart.PointRenderer CIRCLE
Creates a circular point.

CROSS

static jsx3.chart.PointRenderer CROSS
Creates a x-shaped cross point.

DIAMOND

static jsx3.chart.PointRenderer DIAMOND
Creates a diamond shaped point.

TRIANGLE

static jsx3.chart.PointRenderer TRIANGLE
Creates an upward-pointing triangular point.
Method Detail

areaToRadius

abstract Number areaToRadius(area : Number)
Converts the area of the point to display to the radius of the box that it should fill. Required if the point renderer will be used in a plot chart.

Parameters:

area

Returns:

 

render

abstract jsx3.vector.Tag render(x1 : int, y1 : int, x2 : int, y2 : int, fill : jsx3.vector.Fill, stroke : jsx3.vector.Stroke)
Renders the point in the bounds specified by {x1,y1} {x2,y2}.

Parameters:

x1
y1
x2
y2
fill
stroke

Returns: