Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSection.java @ 3938:c0cab28ba1ea
merged flys-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:15:03 +0200 |
parents | b7867c03760a |
children |
comparison
equal
deleted
inserted
replaced
3865:436eec3be6ff | 3938:c0cab28ba1ea |
---|---|
1 package de.intevation.flys.exports; | |
2 | |
3 import org.apache.log4j.Logger; | |
4 | |
5 | |
6 /** | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public class ChartSection extends TypeSection { | |
10 | |
11 private static Logger logger = Logger.getLogger(ChartSection.class); | |
12 | |
13 public static final String TITLE_ATTR = "title"; | |
14 public static final String SUBTITLE_ATTR = "subtitle"; | |
15 public static final String DISPLAYGRID_ATTR = "display-grid"; | |
16 public static final String DISPLAYLOGO_ATTR = "display-logo"; | |
17 public static final String LOGOPLACEMENTH_ATTR = "logo-placeh"; | |
18 public static final String LOGOPLACEMENTV_ATTR = "logo-placev"; | |
19 | |
20 | |
21 public ChartSection() { | |
22 super("chart"); | |
23 } | |
24 | |
25 | |
26 public void setTitle(String title) { | |
27 setStringValue(TITLE_ATTR, title); | |
28 } | |
29 | |
30 | |
31 public String getTitle() { | |
32 return getStringValue(TITLE_ATTR); | |
33 } | |
34 | |
35 | |
36 public void setSubtitle(String subtitle) { | |
37 setStringValue(SUBTITLE_ATTR, subtitle); | |
38 } | |
39 | |
40 | |
41 public String getSubtitle() { | |
42 return getStringValue(SUBTITLE_ATTR); | |
43 } | |
44 | |
45 | |
46 /** Get Property-value for display-logo property. */ | |
47 public String getDisplayLogo() { | |
48 return getStringValue(DISPLAYLOGO_ATTR); | |
49 } | |
50 | |
51 | |
52 /** Set Property-value for display-logo property. */ | |
53 public void setDisplayLogo(String logo) { | |
54 logger.debug("Setting Display logo string."); | |
55 setChoiceStringValue(DISPLAYLOGO_ATTR, logo, "logo"); | |
56 } | |
57 | |
58 | |
59 /** Get Property-value for horizontal logo-placement property. */ | |
60 public String getLogoHPlacement() { | |
61 return getStringValue(LOGOPLACEMENTH_ATTR); | |
62 } | |
63 | |
64 | |
65 /** Set Property-value for horizontal logo-placement property. */ | |
66 public void setLogoHPlacement(String 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"); | |
80 } | |
81 | |
82 | |
83 public void setDisplayGrid(boolean displayGrid) { | |
84 setBooleanValue(DISPLAYGRID_ATTR, displayGrid); | |
85 } | |
86 | |
87 | |
88 public Boolean getDisplayGrid() { | |
89 return getBooleanValue(DISPLAYGRID_ATTR); | |
90 } | |
91 } | |
92 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |