01: /*
02: * PermField.java
03: *
04: * Created on June 24, 2004, 2:22 PM
05: */
06:
07: package jimm.datavision.layout.excel;
08:
09: import jimm.datavision.*;
10: import jimm.datavision.field.Border;
11: import jimm.datavision.field.Field;
12: import jimm.datavision.field.Format;
13: import jimm.datavision.field.Rectangle;
14:
15: /**
16: *
17: * @author dbeeler
18: */
19: public class PermField {
20:
21: private String strFieldText;
22: private Rectangle boundField;
23: private Border borderField;
24: private Format formatField;
25:
26: /** Creates a new instance of PermField */
27: public PermField(Field useField) {
28: strFieldText = useField.toString();
29: boundField = useField.getBounds();
30: borderField = useField.getBorder();
31: formatField = useField.getFormat();
32:
33: }
34:
35: public String getStringValue() {
36: return this .strFieldText;
37: }
38:
39: public Rectangle getBounds() {
40: return this .boundField;
41: }
42:
43: public Border getBorder() {
44: return this .borderField;
45: }
46:
47: public Format getFormat() {
48: return this.formatField;
49: }
50:
51: }
|