Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java @ 7077:0a337f0005c2 generator-refactoring
Extended init() of OutGenerator to take name of the out to serve.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 16:34:09 +0200 |
parents | 5c6fd2c010dd |
children | ada424214b02 |
comparison
equal
deleted
inserted
replaced
7074:a2abd87c0d3b | 7077:0a337f0005c2 |
---|---|
134 /** Map of datasets ("index"). */ | 134 /** Map of datasets ("index"). */ |
135 protected SortedMap<Integer, AxisDataset> datasets; | 135 protected SortedMap<Integer, AxisDataset> datasets; |
136 | 136 |
137 /** List of annotations to insert in plot. */ | 137 /** List of annotations to insert in plot. */ |
138 protected List<RiverAnnotation> annotations = new ArrayList<RiverAnnotation>(); | 138 protected List<RiverAnnotation> annotations = new ArrayList<RiverAnnotation>(); |
139 | |
140 protected String outName; | |
139 | 141 |
140 /** | 142 /** |
141 * A mini interface that allows to walk over the YAXIS enums defined in | 143 * A mini interface that allows to walk over the YAXIS enums defined in |
142 * subclasses. | 144 * subclasses. |
143 */ | 145 */ |
682 } | 684 } |
683 } | 685 } |
684 | 686 |
685 | 687 |
686 @Override | 688 @Override |
687 public void init(Document request, OutputStream out, CallContext context) { | 689 public void init(String outName, Document request, OutputStream out, CallContext context) { |
688 logger.debug("ChartGenerator.init"); | 690 logger.debug("ChartGenerator.init"); |
689 | 691 |
692 this.outName = outName; | |
690 this.request = request; | 693 this.request = request; |
691 this.out = out; | 694 this.out = out; |
692 this.context = context; | 695 this.context = context; |
693 } | 696 } |
694 | 697 |