01: package com.xoetrope.export.xl;
02:
03: import com.xoetrope.export.Block;
04: import com.xoetrope.export.Block;
05:
06: /**
07: *
08: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
09: * the GNU Public License (GPL), please see license.txt for more details. If
10: * you make commercial use of this software you must purchase a commercial
11: * license from Xoetrope.</p>
12: * <p> $Revision: 1.6 $</p>
13: */
14: public class XLCellBlockItem extends XLBlockItem {
15: int x = 0, y = 0, rowSpan, colSpan;
16:
17: public XLCellBlockItem(XLExporter exporter) {
18: super (exporter);
19: }
20:
21: public void setX(int value) {
22: x = value;
23: }
24:
25: public void setY(int value) {
26: y = value;
27: }
28:
29: public void setRowSpan(int value) {
30: rowSpan = value;
31: }
32:
33: public void setColSpan(int value) {
34: colSpan = value;
35: }
36:
37: public int getX() {
38: return x;
39: }
40:
41: public int getY() {
42: return y;
43: }
44:
45: public int getRowSpan() {
46: return rowSpan;
47: }
48:
49: public int getColSpan() {
50: return colSpan;
51: }
52:
53: public Block append(Block item) {
54: super .append(item);
55: CursorTracker tracker = (CursorTracker) item;
56: tracker
57: .setOffset(x - tracker.getColumn(), y
58: - tracker.getRow());
59: return item;
60: }
61:
62: }
|