de.erichseifert.gral.plots.lines
Interface LineRenderer

All Superinterfaces:
SettingsStorage
All Known Implementing Classes:
AbstractLineRenderer2D, DefaultLineRenderer2D, DiscreteLineRenderer2D

public interface LineRenderer
extends SettingsStorage

Interface that provides functions for rendering a line in 2-dimensional space.

Functionality includes:


Field Summary
static Settings.Key COLOR
          Key for specifying the Paint instance to be used to paint the line shape.
static Settings.Key GAP
          Key for specifying a Number value for the gap between the line and a point.
static Settings.Key GAP_ROUNDED
          Key for specifying a Boolean value which decides whether the gaps should have rounded corners.
static Settings.Key STROKE
          Key for specifying the Stroke instance to be used to define the line shape.
 
Method Summary
 Drawable getLine(Iterable<DataPoint> points)
          Returns a graphical representation for the line defined by points.
 
Methods inherited from interface de.erichseifert.gral.util.SettingsStorage
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
 

Field Detail

STROKE

static final Settings.Key STROKE
Key for specifying the Stroke instance to be used to define the line shape.


GAP

static final Settings.Key GAP
Key for specifying a Number value for the gap between the line and a point. If the gap value is <=0 no gap will be used.


GAP_ROUNDED

static final Settings.Key GAP_ROUNDED
Key for specifying a Boolean value which decides whether the gaps should have rounded corners.


COLOR

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

Method Detail

getLine

Drawable getLine(Iterable<DataPoint> points)
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.