Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/TimeSeriesChart.java @ 333:19571fd1d0e8
Sourced ChartFactory call out to an own method, which is overriden by TimeSeriesChart.
gnv-artifacts/trunk@399 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 07 Dec 2009 10:33:31 +0000 |
parents | 42a5269636eb |
children | e37930705daa |
comparison
equal
deleted
inserted
replaced
332:f5c25c86a625 | 333:19571fd1d0e8 |
---|---|
63 this.linesVisible = linesVisible; | 63 this.linesVisible = linesVisible; |
64 this.shapesVisible = shapesVisible; | 64 this.shapesVisible = shapesVisible; |
65 } | 65 } |
66 | 66 |
67 | 67 |
68 public JFreeChart generateChart() { | 68 protected void initChart() { |
69 log.debug("generate timeseries chart"); | |
70 | |
71 if (chart != null) | |
72 return chart; | |
73 | |
74 chart = ChartFactory.createTimeSeriesChart( | 69 chart = ChartFactory.createTimeSeriesChart( |
75 labels.getTitle(), | 70 labels.getTitle(), |
76 labels.getDomainAxisLabel(), | 71 labels.getDomainAxisLabel(), |
77 null, | 72 null, |
78 null, | 73 null, |
79 true, | 74 true, |
80 false, | 75 false, |
81 false | 76 false |
82 ); | 77 ); |
83 | |
84 theme.apply(chart); | |
85 initData(); | |
86 | |
87 return chart; | |
88 } | 78 } |
89 | 79 |
90 | 80 |
91 protected void initData() { | 81 protected void initData() { |
92 log.debug("init data for timeseries chart"); | 82 log.debug("init data for timeseries chart"); |