Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSection.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 |
comparison
equal
deleted
inserted
replaced
3617:05deafdcbf39 | 3618:b7867c03760a |
---|---|
12 | 12 |
13 public static final String TITLE_ATTR = "title"; | 13 public static final String TITLE_ATTR = "title"; |
14 public static final String SUBTITLE_ATTR = "subtitle"; | 14 public static final String SUBTITLE_ATTR = "subtitle"; |
15 public static final String DISPLAYGRID_ATTR = "display-grid"; | 15 public static final String DISPLAYGRID_ATTR = "display-grid"; |
16 public static final String DISPLAYLOGO_ATTR = "display-logo"; | 16 public static final String DISPLAYLOGO_ATTR = "display-logo"; |
17 public static final String LOGOPLACEMENT_ATTR = "logo-place"; | 17 public static final String LOGOPLACEMENTH_ATTR = "logo-placeh"; |
18 public static final String LOGOPLACEMENTV_ATTR = "logo-placev"; | |
18 | 19 |
19 | 20 |
20 public ChartSection() { | 21 public ChartSection() { |
21 super("chart"); | 22 super("chart"); |
22 } | 23 } |
53 logger.debug("Setting Display logo string."); | 54 logger.debug("Setting Display logo string."); |
54 setChoiceStringValue(DISPLAYLOGO_ATTR, logo, "logo"); | 55 setChoiceStringValue(DISPLAYLOGO_ATTR, logo, "logo"); |
55 } | 56 } |
56 | 57 |
57 | 58 |
58 /** Get Property-value for logo-placement property. */ | 59 /** Get Property-value for horizontal logo-placement property. */ |
59 public String getLogoPlacement() { | 60 public String getLogoHPlacement() { |
60 return getStringValue(LOGOPLACEMENT_ATTR); | 61 return getStringValue(LOGOPLACEMENTH_ATTR); |
61 } | 62 } |
62 | 63 |
63 | 64 |
64 /** Set Property-value for logo-placement property. */ | 65 /** Set Property-value for horizontal logo-placement property. */ |
65 public void setLogoPlacement(String place) { | 66 public void setLogoHPlacement(String place) { |
66 setChoiceStringValue(LOGOPLACEMENT_ATTR, place, "place"); | 67 setChoiceStringValue(LOGOPLACEMENTH_ATTR, place, "placeh"); |
68 } | |
69 | |
70 | |
71 /** Get Property-value for vertical logo-placement property. */ | |
72 public String getLogoVPlacement() { | |
73 return getStringValue(LOGOPLACEMENTV_ATTR); | |
74 } | |
75 | |
76 | |
77 /** Set Property-value for vertical logo-placement property. */ | |
78 public void setLogoVPlacement(String place) { | |
79 setChoiceStringValue(LOGOPLACEMENTV_ATTR, place, "placev"); | |
67 } | 80 } |
68 | 81 |
69 | 82 |
70 public void setDisplayGrid(boolean displayGrid) { | 83 public void setDisplayGrid(boolean displayGrid) { |
71 setBooleanValue(DISPLAYGRID_ATTR, displayGrid); | 84 setBooleanValue(DISPLAYGRID_ATTR, displayGrid); |