de.erichseifert.gral.plots.areas
Class LineAreaRenderer2D

java.lang.Object
  extended by de.erichseifert.gral.plots.areas.AbstractAreaRenderer
      extended by de.erichseifert.gral.plots.areas.LineAreaRenderer2D
All Implemented Interfaces:
AreaRenderer, SettingsListener, SettingsStorage

public class LineAreaRenderer2D
extends AbstractAreaRenderer

Default two-dimensional implementation of the AreaRenderer interface that draws lines from data points to the main axis.


Field Summary
static Settings.Key STROKE
          Key for specifying the Stroke instance that is used draw the lines from the data points to the axis.
 
Fields inherited from interface de.erichseifert.gral.plots.areas.AreaRenderer
COLOR, GAP, GAP_ROUNDED
 
Constructor Summary
LineAreaRenderer2D()
          Standard constructor that initializes a new instance.
 
Method Summary
 Drawable getArea(Axis axis, AxisRenderer axisRenderer, Iterable<DataPoint> points)
          Returns the graphical representation to be drawn for the specified data points.
 
Methods inherited from class de.erichseifert.gral.plots.areas.AbstractAreaRenderer
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault, settingChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STROKE

public static final Settings.Key STROKE
Key for specifying the Stroke instance that is used draw the lines from the data points to the axis.

Constructor Detail

LineAreaRenderer2D

public LineAreaRenderer2D()
Standard constructor that initializes a new instance.

Method Detail

getArea

public Drawable getArea(Axis axis,
                        AxisRenderer axisRenderer,
                        Iterable<DataPoint> points)
Description copied from interface: AreaRenderer
Returns the graphical representation to be drawn for the specified data points.

Parameters:
axis - Reference axis for the specified data points.
axisRenderer - Renderer of the reference axis.
points - Points to be used for creating the area.
Returns:
Representation of the area.


Copyright © 2009-2010. All Rights Reserved.