01: package net.sourceforge.squirrel_sql.plugins.graph.xmlbeans;
02:
03: public class FormatXmlBean {
04: private String name;
05: private double width;
06: private double height;
07: private boolean selected;
08: private boolean landscape;
09:
10: public FormatXmlBean(String name, double width, double height,
11: boolean selected, boolean landscape) {
12: this .setName(name);
13: this .setWidth(width);
14: this .setHeight(height);
15: this .setSelected(selected);
16: this .setLandscape(landscape);
17: }
18:
19: /**
20: * Needed by XML Serializer
21: */
22: public FormatXmlBean() {
23: }
24:
25: public String toString() {
26: return getName();
27: }
28:
29: public String getName() {
30: return name;
31: }
32:
33: public void setName(String name) {
34: this .name = name;
35: }
36:
37: public double getWidth() {
38: return width;
39: }
40:
41: public void setWidth(double width) {
42: this .width = width;
43: }
44:
45: public double getHeight() {
46: return height;
47: }
48:
49: public void setHeight(double height) {
50: this .height = height;
51: }
52:
53: public boolean isSelected() {
54: return selected;
55: }
56:
57: public void setSelected(boolean selected) {
58: this .selected = selected;
59: }
60:
61: public boolean isLandscape() {
62: return landscape;
63: }
64:
65: public void setLandscape(boolean landscape) {
66: this.landscape = landscape;
67: }
68:
69: }
|