de.erichseifert.gral.plots.lines
Class DiscreteLineRenderer2D

java.lang.Object
  extended by de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
      extended by de.erichseifert.gral.plots.lines.DiscreteLineRenderer2D
All Implemented Interfaces:
LineRenderer, SettingsListener, SettingsStorage

public class DiscreteLineRenderer2D
extends AbstractLineRenderer2D

Class that connects DataPoints with a stair-like line.


Field Summary
static Settings.Key ASCENDING_POINT
          Key for specifying a Number value for the relative distance between two points, i.e. the "step" of a stair.
static Settings.Key ASCENT_DIRECTION
          Key for specifying an DrawableConstants.Orientation instance which indicates the primary direction of the "steps".
 
Fields inherited from interface de.erichseifert.gral.plots.lines.LineRenderer
COLOR, GAP, GAP_ROUNDED, STROKE
 
Constructor Summary
DiscreteLineRenderer2D()
          Initializes a new DiscreteLineRenderer2D instance with default settings.
 
Method Summary
 Drawable getLine(Iterable<DataPoint> points)
          Returns a graphical representation for the line defined by points.
 
Methods inherited from class de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault, settingChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASCENT_DIRECTION

public static final Settings.Key ASCENT_DIRECTION
Key for specifying an DrawableConstants.Orientation instance which indicates the primary direction of the "steps".


ASCENDING_POINT

public static final Settings.Key ASCENDING_POINT
Key for specifying a Number value for the relative distance between two points, i.e. the "step" of a stair.

Constructor Detail

DiscreteLineRenderer2D

public DiscreteLineRenderer2D()
Initializes a new DiscreteLineRenderer2D instance with default settings.

Method Detail

getLine

public Drawable getLine(Iterable<DataPoint> points)
Description copied from interface: LineRenderer
Returns a graphical representation for the line defined by points.

Parameters:
points - Points to be used for creating the line.
Returns:
Representation of the line.


Copyright © 2009-2010. All Rights Reserved.