Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 3618:b7867c03760a
Split logo placement property in two (vertical/horizontal).
flys-artifacts/trunk@5286 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 29 Aug 2012 07:58:08 +0000 |
parents | 05deafdcbf39 |
children | 695e8005e199 |
comparison
equal
deleted
inserted
replaced
3617:05deafdcbf39 | 3618:b7867c03760a |
---|---|
751 ChartSection chartSection = new ChartSection(); | 751 ChartSection chartSection = new ChartSection(); |
752 chartSection.setTitle(getChartTitle()); | 752 chartSection.setTitle(getChartTitle()); |
753 chartSection.setSubtitle(getChartSubtitle()); | 753 chartSection.setSubtitle(getChartSubtitle()); |
754 chartSection.setDisplayGrid(isGridVisible()); | 754 chartSection.setDisplayGrid(isGridVisible()); |
755 chartSection.setDisplayLogo(showLogo()); | 755 chartSection.setDisplayLogo(showLogo()); |
756 chartSection.setLogoPlacement(logoPlace()); | 756 chartSection.setLogoVPlacement(logoVPlace()); |
757 chartSection.setLogoHPlacement(logoHPlace()); | |
757 return chartSection; | 758 return chartSection; |
758 } | 759 } |
759 | 760 |
760 | 761 |
761 /** | 762 /** |
1028 | 1029 |
1029 return true; | 1030 return true; |
1030 } | 1031 } |
1031 | 1032 |
1032 | 1033 |
1033 protected String logoPlace() { | 1034 /** Where to place the logo. */ |
1035 protected String logoHPlace() { | |
1034 ChartSettings chartSettings = getChartSettings(); | 1036 ChartSettings chartSettings = getChartSettings(); |
1035 if (chartSettings != null) { | 1037 if (chartSettings != null) { |
1036 ChartSection cs = chartSettings.getChartSection(); | 1038 ChartSection cs = chartSettings.getChartSection(); |
1037 String place = cs.getLogoPlacement(); | 1039 String place = cs.getLogoHPlacement(); |
1040 | |
1041 return place; | |
1042 } | |
1043 return "none"; | |
1044 } | |
1045 | |
1046 | |
1047 /** Where to place the logo. */ | |
1048 protected String logoVPlace() { | |
1049 ChartSettings chartSettings = getChartSettings(); | |
1050 if (chartSettings != null) { | |
1051 ChartSection cs = chartSettings.getChartSection(); | |
1052 String place = cs.getLogoVPlacement(); | |
1038 | 1053 |
1039 return place; | 1054 return place; |
1040 } | 1055 } |
1041 return "none"; | 1056 return "none"; |
1042 } | 1057 } |