de.erichseifert.gral.plots.points
Interface PointRenderer

All Superinterfaces:
SettingsStorage
All Known Implementing Classes:
AbstractPointRenderer, DefaultPointRenderer, SizeablePointRenderer

public interface PointRenderer
extends SettingsStorage

An interface providing functions for rendering points in a diagram. It defines methods for:


Field Summary
static Settings.Key COLOR
          Key for specifying the Paint instance to be used to paint the point shape.
static Settings.Key ERROR_COLOR
          Key for specifying the Paint instance to be used to paint the error bars.
static Settings.Key ERROR_DISPLAYED
          Key for specifying whether the error value is displayed.
static Settings.Key ERROR_SHAPE
          Key for specifying the Shape instance defining the form of the points at the end of the error bars.
static Settings.Key ERROR_STROKE
          Key for specifying the Stroke instance defining the error bars.
static Settings.Key SHAPE
          Key for specifying the Shape instance defining the form of the point.
static Settings.Key VALUE_ALIGNMENT_X
          Key for specifying the Number value that positions the value horizontally.
static Settings.Key VALUE_ALIGNMENT_Y
          Key for specifying the Number value that positions the value vertically.
static Settings.Key VALUE_COLOR
          Key for specifying the Paint instance to be used to paint the value.
static Settings.Key VALUE_DISPLAYED
          Key for specifying whether the data value of a point is displayed or not.
static Settings.Key VALUE_FORMAT
          Key for specifying the Format instance to be used to format the displayed data values.
 
Method Summary
 Drawable getPoint(Axis axis, AxisRenderer axisRenderer, Row row)
          Returns the graphical representation to be drawn for the specified data value.
 Shape getPointPath(Row row)
          Returns a Shape instance that can be used for further calculations.
 
Methods inherited from interface de.erichseifert.gral.util.SettingsStorage
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
 

Field Detail

SHAPE

static final Settings.Key SHAPE
Key for specifying the Shape instance defining the form of the point.


COLOR

static final Settings.Key COLOR
Key for specifying the Paint instance to be used to paint the point shape.


VALUE_DISPLAYED

static final Settings.Key VALUE_DISPLAYED
Key for specifying whether the data value of a point is displayed or not.


VALUE_FORMAT

static final Settings.Key VALUE_FORMAT
Key for specifying the Format instance to be used to format the displayed data values.


VALUE_ALIGNMENT_X

static final Settings.Key VALUE_ALIGNMENT_X
Key for specifying the Number value that positions the value horizontally.


VALUE_ALIGNMENT_Y

static final Settings.Key VALUE_ALIGNMENT_Y
Key for specifying the Number value that positions the value vertically.


VALUE_COLOR

static final Settings.Key VALUE_COLOR
Key for specifying the Paint instance to be used to paint the value.


ERROR_DISPLAYED

static final Settings.Key ERROR_DISPLAYED
Key for specifying whether the error value is displayed.


ERROR_COLOR

static final Settings.Key ERROR_COLOR
Key for specifying the Paint instance to be used to paint the error bars.


ERROR_SHAPE

static final Settings.Key ERROR_SHAPE
Key for specifying the Shape instance defining the form of the points at the end of the error bars.


ERROR_STROKE

static final Settings.Key ERROR_STROKE
Key for specifying the Stroke instance defining the error bars.

Method Detail

getPoint

Drawable getPoint(Axis axis,
                  AxisRenderer axisRenderer,
                  Row row)
Returns the graphical representation to be drawn for the specified data value.

Parameters:
axis - that is used to project the point.
axisRenderer - Renderer for the axis.
row - Data row containing the point.
Returns:
Component that can be used to draw the point

getPointPath

Shape getPointPath(Row row)
Returns a Shape instance that can be used for further calculations.

Parameters:
row - Data row containing the point.
Returns:
Outline that describes the point's shape.


Copyright © 2009-2010. All Rights Reserved.