public abstract class AbstractLineRenderer2D extends BasicSettingsStorage implements LineRenderer, SettingsListener
Abstract class that renders a line in two-dimensional space.
Functionality includes:
COLOR, GAP, GAP_ROUNDED, STROKE
Constructor and Description |
---|
AbstractLineRenderer2D()
Initializes a new
AbstractLineRenderer2D instance with
default settings. |
Modifier and Type | Method and Description |
---|---|
protected Shape |
punch(Shape line,
Iterable<DataPoint> dataPoints)
Returns the shape of a line from which the shapes of the specified
points are subtracted.
|
void |
settingChanged(SettingChangeEvent event)
Invoked if a setting has changed.
|
addSettingsListener, getSetting, hasSetting, hasSettingDefault, notifySettingChanged, removeSetting, removeSettingDefault, removeSettingsListener, setSetting, setSetting, setSettingDefault
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLine, getLineShape
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
public AbstractLineRenderer2D()
AbstractLineRenderer2D
instance with
default settings.protected Shape punch(Shape line, Iterable<DataPoint> dataPoints)
line
- Shape of the line.dataPoints
- Data points on the line.public void settingChanged(SettingChangeEvent event)
settingChanged
in interface SettingsListener
event
- Event containing information about the changed setting.Copyright © 2009-2013. All Rights Reserved.