|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.PixogramPlotter
public class PixogramPlotter
Plotter that works like a histogram with pixel-sized bins. Only works with PlaneSurfaces.
Nested Class Summary | |
---|---|
static class |
PixogramPlotter.PixoStyle
Style subclass for pixogram plots. |
Field Summary | |
---|---|
static ReportKey<double[]> |
BINS_KEY
Report key for plotted bin height in data coordinates. |
static ConfigKey<Boolean> |
FILL_KEY
Config key for line/fill toggle. |
static ConfigKey<Integer> |
SMOOTH_KEY
Config key for smoothing width. |
Constructor Summary | |
---|---|
PixogramPlotter(FloatingCoord xCoord,
boolean hasWeight)
Constructor. |
Method Summary | |
---|---|
PlotLayer |
createLayer(DataGeom geom,
DataSpec dataSpec,
PixogramPlotter.PixoStyle style)
The supplied geom is ignored. |
PixogramPlotter.PixoStyle |
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. |
String |
getPlotterDescription()
Returns an XML description of this plotter. |
Icon |
getPlotterIcon()
Returns an icon for this plotter for use in user interface. |
String |
getPlotterName()
Returns the name of this plotter for use in user interface. |
ConfigKey[] |
getStyleKeys()
Returns the configuration keys used to configure style for this plotter. |
int |
getWeightCoordIndex()
Returns the DataSpec coord index used for the weighting data for this plotter. |
boolean |
hasReports()
Indicates whether the drawings produced by this plotter will return general interest report information to upstream plotting code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ReportKey<double[]> BINS_KEY
public static final ConfigKey<Boolean> FILL_KEY
public static final ConfigKey<Integer> SMOOTH_KEY
Constructor Detail |
---|
public PixogramPlotter(FloatingCoord xCoord, boolean hasWeight)
xCoord
- X axis coordinatehasWeight
- true to permit histogram weightingMethod Detail |
---|
public String getPlotterName()
Plotter
getPlotterName
in interface Plotter<PixogramPlotter.PixoStyle>
public Icon getPlotterIcon()
Plotter
getPlotterIcon
in interface Plotter<PixogramPlotter.PixoStyle>
public String getPlotterDescription()
Plotter
Note: really this should appear at the LayerType level.
getPlotterDescription
in interface Plotter<PixogramPlotter.PixoStyle>
public CoordGroup getCoordGroup()
Plotter
getCoordGroup
in interface Plotter<PixogramPlotter.PixoStyle>
public ConfigKey[] getStyleKeys()
Plotter
Plotter.createStyle(uk.ac.starlink.ttools.plot2.config.ConfigMap)
method.
getStyleKeys
in interface Plotter<PixogramPlotter.PixoStyle>
public PixogramPlotter.PixoStyle 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<PixogramPlotter.PixoStyle>
config
- map of style configuration items
public boolean hasReports()
Plotter
hasReports
in interface Plotter<PixogramPlotter.PixoStyle>
Drawing.getReport(java.lang.Object)
public PlotLayer createLayer(DataGeom geom, DataSpec dataSpec, PixogramPlotter.PixoStyle style)
geom
is ignored.
createLayer
in interface Plotter<PixogramPlotter.PixoStyle>
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
public int getWeightCoordIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |