Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1991:0bd7c3cf0af1
Added axis sections into charts Settings.
flys-artifacts/trunk@3427 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 15 Dec 2011 17:10:42 +0000 |
parents | 5c1e7c1e9e09 |
children | 210020108ca4 |
comparison
equal
deleted
inserted
replaced
1990:5c1e7c1e9e09 | 1991:0bd7c3cf0af1 |
---|---|
883 Section legendSection = buildLegendSection(); | 883 Section legendSection = buildLegendSection(); |
884 | 884 |
885 settings.setChartSection(chartSection); | 885 settings.setChartSection(chartSection); |
886 settings.setLegendSection(legendSection); | 886 settings.setLegendSection(legendSection); |
887 | 887 |
888 List<Section> axisSections = buildAxisSections(); | |
889 for (Section axisSection: axisSections) { | |
890 settings.addAxisSection(axisSection); | |
891 } | |
892 | |
888 return settings; | 893 return settings; |
889 } | 894 } |
890 | 895 |
891 | 896 |
892 /** | 897 /** |
912 LegendSection legendSection = new LegendSection(); | 917 LegendSection legendSection = new LegendSection(); |
913 legendSection.setVisibility(isLegendVisible()); | 918 legendSection.setVisibility(isLegendVisible()); |
914 legendSection.setFontSize(getLegendFontSize()); | 919 legendSection.setFontSize(getLegendFontSize()); |
915 return legendSection; | 920 return legendSection; |
916 } | 921 } |
922 | |
923 | |
924 /** | |
925 * Creates new Sections for chart axes. Subclasses of this ChartGenerator | |
926 * should override this method to include all necessary axes in that | |
927 * concrete chart. | |
928 * | |
929 * @return an empty list. | |
930 */ | |
931 protected List<Section> buildAxisSections() { | |
932 return new ArrayList<Section>(); | |
933 } | |
917 } | 934 } |
918 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 935 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |