Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LegendSection.java @ 2424:092e519ff461
merged flys-artifacts/2.6.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:26 +0200 |
parents | ca8997aa683e |
children | 2c86dd618c84 |
comparison
equal
deleted
inserted
replaced
2392:8112ec686a9a | 2424:092e519ff461 |
---|---|
1 package de.intevation.flys.exports; | |
2 | |
3 | |
4 | |
5 /** | |
6 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
7 */ | |
8 public class LegendSection extends TypeSection { | |
9 | |
10 public static final String VISIBILITY_ATTR = "visibility"; | |
11 public static final String FONTSIZE_ATTR = "font-size"; | |
12 | |
13 | |
14 public LegendSection() { | |
15 super("legend"); | |
16 } | |
17 | |
18 | |
19 public void setFontSize(int fontSize) { | |
20 if (fontSize <= 0) { | |
21 return; | |
22 } | |
23 | |
24 setIntegerValue(FONTSIZE_ATTR, fontSize); | |
25 } | |
26 | |
27 | |
28 public Integer getFontSize() { | |
29 return getIntegerValue(FONTSIZE_ATTR); | |
30 } | |
31 | |
32 | |
33 public void setVisibility(boolean visibility) { | |
34 setBooleanValue(VISIBILITY_ATTR, visibility); | |
35 } | |
36 | |
37 | |
38 public Boolean getVisibility() { | |
39 return getBooleanValue(VISIBILITY_ATTR); | |
40 } | |
41 } | |
42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |