|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter<DensogramPlotter.DensoStyle>
uk.ac.starlink.ttools.plot2.layer.DensogramPlotter
public class DensogramPlotter
Plots a histogram-like density map - a one-dimensional colour bar indicating density on the horizontal axis.
Nested Class Summary | |
---|---|
static class |
DensogramPlotter.DensoStyle
Plotting style for this class. |
Nested classes/interfaces inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter |
---|
Pixel1dPlotter.BinArray, Pixel1dPlotter.Pixel1dPlan |
Field Summary | |
---|---|
static ConfigKey<Integer> |
EXTENT_KEY
Config key for the height of the density bar. |
static ConfigKey<Double> |
POSITION_KEY
Config key for the position of the density bar. |
static RampKeySet |
RAMP_KEYSET
Config keyset for the colour ramp. |
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter |
---|
KERNEL_KEY, SMOOTHSIZER_KEY, SMOOTHWIDTH_KEY |
Constructor Summary | |
---|---|
DensogramPlotter(FloatingCoord xCoord,
boolean hasWeight)
Constructor. |
Method Summary | |
---|---|
DensogramPlotter.DensoStyle |
createStyle(ConfigMap config)
Creates a style that can be used when creating a plot layer. |
protected void |
extendPixel1dCoordinateRanges(Range[] ranges,
boolean[] logFlags,
DensogramPlotter.DensoStyle style,
DataSpec dataSpec,
DataStore dataStore)
Performs any required range extension. |
protected LayerOpt |
getLayerOpt(DensogramPlotter.DensoStyle style)
Returns the LayerOpt suitable for a given style for this plotter. |
protected ReportMap |
getPixel1dReport(Pixel1dPlotter.Pixel1dPlan plan,
DensogramPlotter.DensoStyle style,
boolean xLog)
Returns information associated with the plot. |
protected int |
getPixelPadding(DensogramPlotter.DensoStyle style,
PlaneSurface surf)
Returns the padding required at both ends of the array of pixel bins for calculations. |
String |
getPlotterDescription()
Returns an XML description of this plotter. |
ConfigKey[] |
getStyleKeys()
Returns the configuration keys used to configure style for this plotter. |
protected void |
paintBins(PlaneSurface surface,
Pixel1dPlotter.BinArray binArray,
DensogramPlotter.DensoStyle style,
Graphics2D g)
Draws the graphical representation of a given array of counts per horizontal pixel. |
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.Pixel1dPlotter |
---|
calculatePixelPlan, createKernel, createLayer, getCoordGroup, getDataBins, getEffectiveExtent, getPixelWidth, getPlotterIcon, getPlotterName, getWeightCoordIndex, hasReports, readBins |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RampKeySet RAMP_KEYSET
public static final ConfigKey<Integer> EXTENT_KEY
public static final ConfigKey<Double> POSITION_KEY
Constructor Detail |
---|
public DensogramPlotter(FloatingCoord xCoord, boolean hasWeight)
xCoord
- X axis coordinatehasWeight
- true to permit histogram weightingMethod Detail |
---|
public String getPlotterDescription()
Plotter
Note: really this should appear at the LayerType level.
public ConfigKey[] getStyleKeys()
Plotter
Plotter.createStyle(uk.ac.starlink.ttools.plot2.config.ConfigMap)
method.
public DensogramPlotter.DensoStyle 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)
.
config
- map of style configuration items
protected void paintBins(PlaneSurface surface, Pixel1dPlotter.BinArray binArray, DensogramPlotter.DensoStyle style, Graphics2D g)
Pixel1dPlotter
paintBins
in class Pixel1dPlotter<DensogramPlotter.DensoStyle>
surface
- plotting surfacebinArray
- counts per X axis pixelstyle
- plotting styleg
- graphics contextprotected LayerOpt getLayerOpt(DensogramPlotter.DensoStyle style)
Pixel1dPlotter
getLayerOpt
in class Pixel1dPlotter<DensogramPlotter.DensoStyle>
style
- plot style
protected int getPixelPadding(DensogramPlotter.DensoStyle style, PlaneSurface surf)
Pixel1dPlotter
getPixelPadding
in class Pixel1dPlotter<DensogramPlotter.DensoStyle>
style
- plotting stylesurf
- plotting surface
protected void extendPixel1dCoordinateRanges(Range[] ranges, boolean[] logFlags, DensogramPlotter.DensoStyle style, DataSpec dataSpec, DataStore dataStore)
Pixel1dPlotter
extendPixel1dCoordinateRanges
in class Pixel1dPlotter<DensogramPlotter.DensoStyle>
ranges
- array of data space dimension ranges to updatelogFlags
- array of linear/log flags corresponding to rangesstyle
- plotting styledataSpec
- data specificationdataStore
- data storage objectPlotLayer.extendCoordinateRanges(uk.ac.starlink.ttools.plot.Range[], boolean[], uk.ac.starlink.ttools.plot2.data.DataStore)
protected ReportMap getPixel1dReport(Pixel1dPlotter.Pixel1dPlan plan, DensogramPlotter.DensoStyle style, boolean xLog)
Pixel1dPlotter
getPixel1dReport
in class Pixel1dPlotter<DensogramPlotter.DensoStyle>
plan
- plotting planstyle
- plot stylexLog
- true iff X axis is logarithmic
Drawing.getReport(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |