comparison artifacts/src/main/java/org/dive4elements/river/exports/ExportSection.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-artifacts/src/main/java/org/dive4elements/river/exports/ExportSection.java@bd047b71ab37
children 4897a58c8746
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.exports;
2
3
4
5 /**
6 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
7 */
8 public class ExportSection extends TypeSection {
9
10 public static final String WIDTH_ATTR = "width";
11 public static final String HEIGHT_ATTR = "height";
12
13
14 public ExportSection() {
15 super("export");
16 }
17
18
19 public void setWidth(int width) {
20 if (width <= 0) {
21 return;
22 }
23
24 setIntegerValue(WIDTH_ATTR, width);
25 }
26
27
28 public Integer getWidth() {
29 return getIntegerValue(WIDTH_ATTR);
30 }
31
32
33 public void setHeight(int height) {
34 if (height <= 0) {
35 return;
36 }
37
38 setIntegerValue(HEIGHT_ATTR, height);
39 }
40
41
42 public Integer getHeight() {
43 return getIntegerValue(HEIGHT_ATTR);
44 }
45 }
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org