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.JFreeChartaddVerticalSectionChart(org.jfree.chart.JFreeChart transectChart, org.jfree.chart.JFreeChart verticalSectionChart)static org.jfree.chart.renderer.PaintScalecreatePaintScale(ColourScheme colourScheme)Creates and returns a JFreeChartPaintScalethat converts data values toColors.static org.jfree.chart.JFreeChartcreateTimeSeriesPlot(Collection<? extends PointSeriesFeature> features, HorizontalPosition hPos, String copyrightStatement)static org.jfree.chart.JFreeChartcreateTransectPlot(Map<PointCollectionFeature,String> pointCollectionFeatures2Labels, LineString transectDomain, boolean hasVerticalAxis, String copyrightStatement)Creates a plot ofTrajectoryFeatures which have been extracted along a transect.static org.jfree.chart.JFreeChartcreateVerticalProfilePlot(Collection<? extends ProfileFeature> features, String plottedQuantity, HorizontalPosition hPos, String copyrightStatement)static org.jfree.chart.JFreeChartcreateVerticalSectionChart(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 ofTrajectoryFeatures which have been extracted along a transect. AllTrajectoryFeatures must have been extracted along the sameLineStringfor this graph to be correctly displayed.- Parameters:
pointCollectionFeatures2Labels- AListofTrajectoryFeatures 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- AListof evenly-spacedProfileFeatures making up this vertical section. All features must have been extracted onto the sameVerticalAxis. They must each only contain a single parameter.horizPath- TheLineStringalong which theProfileFeatures have been extractedcolourScheme- TheColourSchemeto use for the plotzValue- The elevation at which a matching transect is plotted (will be marked on the chart) - can benullzExtent- The range of elevations to include on the vertical section chart. If this isnullthe 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 JFreeChartPaintScalethat converts data values toColors.
-
-