comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1989:156304542edf

Finished the ChartSection part of the chart Settings returned by the XYChartGenerator. flys-artifacts/trunk@3423 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 15 Dec 2011 12:05:06 +0000
parents 3632150dbe0b
children 5c1e7c1e9e09
comparison
equal deleted inserted replaced
1988:158b3aabda2c 1989:156304542edf
144 */ 144 */
145 protected abstract String getChartTitle(); 145 protected abstract String getChartTitle();
146 146
147 147
148 /** 148 /**
149 * This method always returns null. If a concrete subclass of this class
150 * requires a chart subtitle, this subclass can easily override this method.
151 *
152 * @return always null.
153 */
154 protected String getChartSubtitle() {
155 // overridden this method in subclasses that need subtitles
156 return null;
157 }
158
159
160 /**
161 * This method is used to determine if the resulting chart should display
162 * grid lines or not. <b>Note: this method always returns true!</b>
163 *
164 * @return true, if the chart should display grid lines, otherwise false.
165 */
166 protected boolean isGridVisible() {
167 return true;
168 }
169
170
171 /**
149 * Returns the X-Axis label of a chart. 172 * Returns the X-Axis label of a chart.
150 * 173 *
151 * @return the X-Axis label of a chart. 174 * @return the X-Axis label of a chart.
152 */ 175 */
153 protected abstract String getXAxisLabel(); 176 protected abstract String getXAxisLabel();
832 */ 855 */
833 public Settings getSettings() { 856 public Settings getSettings() {
834 ChartSettings settings = new ChartSettings(); 857 ChartSettings settings = new ChartSettings();
835 858
836 ChartSection chartSection = new ChartSection(); 859 ChartSection chartSection = new ChartSection();
837 // XXX Before we can do this, the FLYSArtifactCollection needs to call 860 chartSection.setTitle(getChartTitle());
838 // doOut() for each facet. 861 chartSection.setSubtitle(getChartSubtitle());
839 //chartSection.setTitle(getChartTitle()); 862 chartSection.setDisplayGird(isGridVisible());
840 //chartSection.setSubtitle("TODO SUBTITLE");
841 //chartSection.setDisplayGird(true);
842 863
843 settings.setChartSection(chartSection); 864 settings.setChartSection(chartSection);
844 865
845 return settings; 866 return settings;
846 } 867 }

http://dive4elements.wald.intevation.org