comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChartFactory.java @ 113:a16f5267803e

Added Basic-Support for HorizontalProfiles gnv-artifacts/trunk@163 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 30 Sep 2009 13:42:51 +0000
parents b465f1bbe368
children 7fb9441dd8af
comparison
equal deleted inserted replaced
112:b8dbf39ca935 113:a16f5267803e
52 /** 52 /**
53 * Default Logging instance 53 * Default Logging instance
54 */ 54 */
55 private static Logger sLogger = Logger.getLogger(VerticalProfileChartFactory.class); 55 private static Logger sLogger = Logger.getLogger(VerticalProfileChartFactory.class);
56 private static boolean sDebug = sLogger.isDebugEnabled(); 56 private static boolean sDebug = sLogger.isDebugEnabled();
57 57 protected PlotOrientation plotOrientation = PlotOrientation.HORIZONTAL;
58 58
59 public synchronized void createSimpleVerticalProfileChart(ChartLabels pLabels, ChartStyle pStyle, Collection<KeyValueDescibeData> parameters, Collection<KeyValueDescibeData> measurements, OutputStream outputStream, Collection<Result> resultSet) throws IOException, TechnicalChartException { 59 public synchronized void createProfileChart(ChartLabels pLabels, ChartStyle pStyle, Collection<KeyValueDescibeData> parameters, Collection<KeyValueDescibeData> measurements, OutputStream outputStream, Collection<Result> resultSet) throws IOException, TechnicalChartException {
60 if (sDebug) 60 if (sDebug)
61 sLogger.debug("createSimpleTimeSeriesChart()"); 61 sLogger.debug("createSimpleTimeSeriesChart()");
62 int lLowerLevel = Integer.MIN_VALUE; 62 int lLowerLevel = Integer.MIN_VALUE;
63 int lUpperLevel = Integer.MAX_VALUE; 63 int lUpperLevel = Integer.MAX_VALUE;
64 if (pStyle.isUseUpperDataLevel() 64 if (pStyle.isUseUpperDataLevel()
80 NumberAxis axis; 80 NumberAxis axis;
81 StandardXYItemRenderer renderer = new StandardXYItemRenderer(); 81 StandardXYItemRenderer renderer = new StandardXYItemRenderer();
82 XYPlot plot = new XYPlot(); 82 XYPlot plot = new XYPlot();
83 //Global settings 83 //Global settings
84 84
85 plot.setOrientation(PlotOrientation.HORIZONTAL); 85 plot.setOrientation(plotOrientation);
86 plot.setBackgroundPaint(Color.lightGray); 86 plot.setBackgroundPaint(Color.lightGray);
87 plot.setDomainGridlinePaint(Color.white); 87 plot.setDomainGridlinePaint(Color.white);
88 plot.setRangeGridlinePaint(Color.white); 88 plot.setRangeGridlinePaint(Color.white);
89 plot.setAxisOffset(new RectangleInsets(5.0,5.0,5.0,5.0)); 89 plot.setAxisOffset(new RectangleInsets(5.0,5.0,5.0,5.0));
90 //plot.getRangeAxis().setFixedDimension(10.0); 90 //plot.getRangeAxis().setFixedDimension(10.0);

http://dive4elements.wald.intevation.org