Package uk.ac.rdg.resc.edal.graphics
Class Charting
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.Charting
-
public final class Charting extends Object
Code to produce various types of chart.- Author:
- Guy Griffiths, Jon Blower, Kevin X. Yang
-
-
Constructor Summary
Constructors Constructor Description Charting()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jfree.chart.JFreeChart
addVerticalSectionChart(org.jfree.chart.JFreeChart transectChart, org.jfree.chart.JFreeChart verticalSectionChart)
static org.jfree.chart.renderer.PaintScale
createPaintScale(ColourScheme colourScheme)
Creates and returns a JFreeChartPaintScale
that converts data values toColor
s.static org.jfree.chart.JFreeChart
createTimeSeriesPlot(Collection<? extends PointSeriesFeature> features, HorizontalPosition hPos, String copyrightStatement)
static org.jfree.chart.JFreeChart
createTransectPlot(Map<PointCollectionFeature,String> pointCollectionFeatures2Labels, LineString transectDomain, boolean hasVerticalAxis, String copyrightStatement)
Creates a plot ofTrajectoryFeature
s which have been extracted along a transect.static org.jfree.chart.JFreeChart
createVerticalProfilePlot(Collection<? extends ProfileFeature> features, String plottedQuantity, HorizontalPosition hPos, String copyrightStatement)
static org.jfree.chart.JFreeChart
createVerticalSectionChart(List<ProfileFeature> features, LineString horizPath, ColourScheme colourScheme, Double zValue, Extent<Double> zExtent)
Plot a vertical section chart
-
-
-
Method Detail
-
createVerticalProfilePlot
public static org.jfree.chart.JFreeChart createVerticalProfilePlot(Collection<? extends ProfileFeature> features, String plottedQuantity, HorizontalPosition hPos, String copyrightStatement) throws MismatchedCrsException
- Throws:
MismatchedCrsException
-
createTimeSeriesPlot
public static org.jfree.chart.JFreeChart createTimeSeriesPlot(Collection<? extends PointSeriesFeature> features, HorizontalPosition hPos, String copyrightStatement) throws MismatchedCrsException
- Throws:
MismatchedCrsException
-
createTransectPlot
public static org.jfree.chart.JFreeChart createTransectPlot(Map<PointCollectionFeature,String> pointCollectionFeatures2Labels, LineString transectDomain, boolean hasVerticalAxis, String copyrightStatement)
Creates a plot ofTrajectoryFeature
s which have been extracted along a transect. AllTrajectoryFeature
s must have been extracted along the sameLineString
for this graph to be correctly displayed.- Parameters:
pointCollectionFeatures2Labels
- AList
ofTrajectoryFeature
s to plottransectDomain
- The transect domain along which *all* features must have been extracted.hasVerticalAxis
-copyrightStatement
- A copyright notice to display under the graph- Returns:
- The plot
-
createVerticalSectionChart
public static org.jfree.chart.JFreeChart createVerticalSectionChart(List<ProfileFeature> features, LineString horizPath, ColourScheme colourScheme, Double zValue, Extent<Double> zExtent)
Plot a vertical section chart- Parameters:
features
- AList
of evenly-spacedProfileFeature
s making up this vertical section. All features must have been extracted onto the sameVerticalAxis
. They must each only contain a single parameter.horizPath
- TheLineString
along which theProfileFeature
s have been extractedcolourScheme
- TheColourScheme
to use for the plotzValue
- The elevation at which a matching transect is plotted (will be marked on the chart) - can benull
zExtent
- The range of elevations to include on the vertical section chart. If this isnull
the entire available range will be used- Returns:
- The resulting chart
-
addVerticalSectionChart
public static org.jfree.chart.JFreeChart addVerticalSectionChart(org.jfree.chart.JFreeChart transectChart, org.jfree.chart.JFreeChart verticalSectionChart)
-
createPaintScale
public static org.jfree.chart.renderer.PaintScale createPaintScale(ColourScheme colourScheme)
Creates and returns a JFreeChartPaintScale
that converts data values toColor
s.
-
-