comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ExportSection.java @ 2056:76eeb3b4358e

Added an ExportSection to ChartSettings which provides attributes for chart 'width' and 'height'. flys-artifacts/trunk@3547 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Dec 2011 10:12:14 +0000
parents
children ca8997aa683e
comparison
equal deleted inserted replaced
2055:3cec0575d655 2056:76eeb3b4358e
1 package de.intevation.flys.exports;
2
3 import de.intevation.artifactdatabase.state.Attribute;
4 import de.intevation.artifactdatabase.state.DefaultSection;
5
6
7 /**
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
9 */
10 public class ExportSection extends TypeSection {
11
12 public static final String WIDTH_ATTR = "width";
13 public static final String HEIGHT_ATTR = "height";
14
15
16 public ExportSection() {
17 super("export");
18 }
19
20
21 public void setWidth(int width) {
22 if (width <= 0) {
23 return;
24 }
25
26 setIntegerValue(WIDTH_ATTR, width);
27 }
28
29
30 public Integer getWidth() {
31 return getIntegerValue(WIDTH_ATTR);
32 }
33
34
35 public void setHeight(int height) {
36 if (height <= 0) {
37 return;
38 }
39
40 setIntegerValue(HEIGHT_ATTR, height);
41 }
42
43
44 public Integer getHeight() {
45 return getIntegerValue(HEIGHT_ATTR);
46 }
47 }
48 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org