de.erichseifert.gral.plots.points
Class DefaultPointRenderer

java.lang.Object
  extended by de.erichseifert.gral.plots.points.AbstractPointRenderer
      extended by de.erichseifert.gral.plots.points.DefaultPointRenderer
All Implemented Interfaces:
PointRenderer, SettingsListener, SettingsStorage
Direct Known Subclasses:
SizeablePointRenderer

public class DefaultPointRenderer
extends AbstractPointRenderer

Class that creates Drawables for a row of data.


Field Summary
 
Fields inherited from interface de.erichseifert.gral.plots.points.PointRenderer
COLOR, ERROR_COLOR, ERROR_DISPLAYED, ERROR_SHAPE, ERROR_STROKE, SHAPE, VALUE_ALIGNMENT_X, VALUE_ALIGNMENT_Y, VALUE_COLOR, VALUE_DISPLAYED, VALUE_FORMAT
 
Constructor Summary
DefaultPointRenderer()
           
 
Method Summary
 Drawable getPoint(Axis axisY, AxisRenderer axisYRenderer, 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 class de.erichseifert.gral.plots.points.AbstractPointRenderer
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault, settingChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPointRenderer

public DefaultPointRenderer()
Method Detail

getPoint

public Drawable getPoint(Axis axisY,
                         AxisRenderer axisYRenderer,
                         Row row)
Description copied from interface: PointRenderer
Returns the graphical representation to be drawn for the specified data value.

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

getPointPath

public Shape getPointPath(Row row)
Description copied from interface: PointRenderer
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.