01: /*
02: * Copyright 2006 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
07: * BI Platform. The Initial Developer is Pentaho Corporation.
08: *
09: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11: * the license for the specific language governing your rights and limitations.
12: *
13: * @created July 6, 2007
14: * @author Gretchen Moran
15: *
16: */
17: package org.pentaho.plugin.jfreereport.reportcharts;
18:
19: import org.jfree.data.xy.DefaultXYZDataset;
20:
21: /**
22: * This class is allows us to accumulate the maximum z value
23: * during data collection and hand that vaslue to the chart at render time -
24: * without creating a tighter coupling between the data and rendering classes.
25: *
26: * @author Gretchen Moran
27: *
28: */
29: public class ExtendedXYZDataset extends DefaultXYZDataset {
30: private static final long serialVersionUID = -6629387979880168707L;
31:
32: private double maxZValue = 0;
33:
34: public ExtendedXYZDataset() {
35: super ();
36: }
37:
38: public double getMaxZValue() {
39: return maxZValue;
40: }
41:
42: public void setMaxZValue(double maxZValue) {
43: this.maxZValue = maxZValue;
44: }
45:
46: }
|