public class SpectrogramPlotter extends java.lang.Object implements Plotter<SpectrogramPlotter.SpectroStyle>
Modifier and Type | Class and Description |
---|---|
static interface |
SpectrogramPlotter.ChannelGrid
Defines the spectrum frequency channels.
|
static class |
SpectrogramPlotter.SpectroStyle
Style subclass for SpectrogramPlotter.
|
Constructor and Description |
---|
SpectrogramPlotter(FloatingCoord xCoord)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PlotLayer |
createLayer(DataGeom geom,
DataSpec dataSpec,
SpectrogramPlotter.SpectroStyle style)
The supplied
geom is ignored. |
SpectrogramPlotter.SpectroStyle |
createStyle(ConfigMap config)
Creates a style that can be used when creating a plot layer.
|
CoordGroup |
getCoordGroup()
Returns an object describing which data coordinates are used for
this plotter and how they are arranged in supplied DataSpec objects.
|
int |
getExtentCoordIndex()
Returns the coordinate index for the time extent coordinate.
|
java.lang.String |
getPlotterDescription()
Returns an XML description of this plotter.
|
javax.swing.Icon |
getPlotterIcon()
Returns an icon for this plotter for use in user interface.
|
java.lang.String |
getPlotterName()
Returns the name of this plotter for use in user interface.
|
int |
getSpectrumCoordIndex()
Returns the coordinate index for the spectral coordinate.
|
ConfigKey[] |
getStyleKeys()
Returns the configuration keys used to configure style for this plotter.
|
boolean |
hasReports()
Indicates whether the drawings produced by this plotter will
return general interest report information to upstream plotting code.
|
public SpectrogramPlotter(FloatingCoord xCoord)
xCoord
- horizontal axis coordinatepublic int getSpectrumCoordIndex()
public int getExtentCoordIndex()
public java.lang.String getPlotterName()
Plotter
getPlotterName
in interface Plotter<SpectrogramPlotter.SpectroStyle>
public javax.swing.Icon getPlotterIcon()
Plotter
getPlotterIcon
in interface Plotter<SpectrogramPlotter.SpectroStyle>
public java.lang.String getPlotterDescription()
Plotter
Note: really this should appear at the LayerType level.
getPlotterDescription
in interface Plotter<SpectrogramPlotter.SpectroStyle>
public CoordGroup getCoordGroup()
Plotter
getCoordGroup
in interface Plotter<SpectrogramPlotter.SpectroStyle>
public ConfigKey[] getStyleKeys()
Plotter
Plotter.createStyle(uk.ac.starlink.ttools.plot2.config.ConfigMap)
method.getStyleKeys
in interface Plotter<SpectrogramPlotter.SpectroStyle>
public SpectrogramPlotter.SpectroStyle createStyle(ConfigMap config)
Plotter
Plotter.getStyleKeys()
.
The return value can be used as input to Plotter.createLayer(uk.ac.starlink.ttools.plot2.DataGeom, uk.ac.starlink.ttools.plot2.data.DataSpec, S)
.createStyle
in interface Plotter<SpectrogramPlotter.SpectroStyle>
config
- map of style configuration itemspublic boolean hasReports()
Plotter
hasReports
in interface Plotter<SpectrogramPlotter.SpectroStyle>
Drawing.getReport(java.lang.Object)
public PlotLayer createLayer(DataGeom geom, DataSpec dataSpec, SpectrogramPlotter.SpectroStyle style)
geom
is ignored.createLayer
in interface Plotter<SpectrogramPlotter.SpectroStyle>
geom
- indicates base position coordinates and their
mapping to points in the data space;
if non-null, the data geom's
DataGeom.hasPosition()
method will return truedataSpec
- specifies the data required for the plotstyle
- data style as obtained from createStyle
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.