Class LinePlotter
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.AbstractPlotter<S>
-
- uk.ac.starlink.ttools.plot2.layer.SimpleDecalPlotter<LinePlotter.LinesStyle>
-
- uk.ac.starlink.ttools.plot2.layer.LinePlotter
-
- All Implemented Interfaces:
Plotter<LinePlotter.LinesStyle>
public class LinePlotter extends SimpleDecalPlotter<LinePlotter.LinesStyle>
Plotter that plots a line between data points.- Since:
- 15 Feb 2013
- Author:
- Mark Taylor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinePlotter.LinesStyle
Style for line plotter.
-
Field Summary
Fields Modifier and Type Field Description static ConfigKey<AxisOpt>
SORTAXIS_KEY
Config key for point sequence pre-sorting.
-
Constructor Summary
Constructors Constructor Description LinePlotter()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinePlotter.LinesStyle
createStyle(ConfigMap config)
Creates a style that can be used when creating a plot layer.protected LayerOpt
getLayerOpt(LinePlotter.LinesStyle style)
Indicates the layer optimisation options that apply to a given style.java.lang.String
getPlotterDescription()
Returns an XML description of this plotter.ConfigKey[]
getStyleKeys()
Returns the configuration keys used to configure style for this plotter.protected void
paintData2D(Surface surface, DataStore dataStore, DataGeom geom, DataSpec dataSpec, LinePlotter.LinesStyle style, java.awt.Graphics g, PaperType paperType)
Called during Decal painting to perform the actual plot.-
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.SimpleDecalPlotter
createLayer
-
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.AbstractPlotter
getCoordGroup, getPlotterIcon, getPlotterName, hasReports
-
-
-
-
Method Detail
-
getPlotterDescription
public java.lang.String getPlotterDescription()
Description copied from interface:Plotter
Returns an XML description of this plotter.Note: really this should appear at the LayerType level.
- Returns:
- one or more <p> elements
-
getStyleKeys
public ConfigKey[] getStyleKeys()
Description copied from interface:Plotter
Returns the configuration keys used to configure style for this plotter. The keys in the return value are used in the map supplied to thePlotter.createStyle(uk.ac.starlink.ttools.plot2.config.ConfigMap)
method.- Returns:
- keys used when creating a style for this plotter.
-
createStyle
public LinePlotter.LinesStyle createStyle(ConfigMap config)
Description copied from interface:Plotter
Creates a style that can be used when creating a plot layer. The keys that are significant in the supplied config map are those returned byPlotter.getStyleKeys()
. The return value can be used as input toPlotter.createLayer(uk.ac.starlink.ttools.plot2.DataGeom, uk.ac.starlink.ttools.plot2.data.DataSpec, S)
.- Parameters:
config
- map of style configuration items- Returns:
- plotter-specific plot style
-
getLayerOpt
protected LayerOpt getLayerOpt(LinePlotter.LinesStyle style)
Description copied from class:SimpleDecalPlotter
Indicates the layer optimisation options that apply to a given style.- Specified by:
getLayerOpt
in classSimpleDecalPlotter<LinePlotter.LinesStyle>
- Parameters:
style
- plot style- Returns:
- layer options
-
paintData2D
protected void paintData2D(Surface surface, DataStore dataStore, DataGeom geom, DataSpec dataSpec, LinePlotter.LinesStyle style, java.awt.Graphics g, PaperType paperType)
Description copied from class:SimpleDecalPlotter
Called during Decal painting to perform the actual plot.- Specified by:
paintData2D
in classSimpleDecalPlotter<LinePlotter.LinesStyle>
- Parameters:
surface
- plot surfacedataStore
- data storage objectgeom
- data geometrystyle
- plot styleg
- graphics contextpaperType
- paper type
-
-