KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > table > AxisBuilder


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.jpivot.table;
14
15 import org.w3c.dom.Element JavaDoc;
16
17 import com.tonbeller.jpivot.table.span.SpanCalc;
18
19 /**
20  * builds the row or column headings
21  *
22  * @author av
23  */

24 public interface AxisBuilder extends PartBuilder {
25
26   /**
27    * returns the number of rows. A row axis will return positionCount, a column axis
28    * will return hierarchyCount
29    */

30   int getRowCount();
31
32   /**
33    * returns the number of columns. A row axis will return hierarchyCount, a column axis
34    * will return positionCount
35    */

36   int getColumnCount();
37
38   /**
39    * appends one <row-heading> or multiple >column-heading<
40    * elements to parent.
41    * @param parent a <row> element containing headings (and cells)
42    * @param rowIndex - index of the row to build
43    */

44   void buildRow(Element JavaDoc parent, int rowIndex);
45
46   /**
47    * @see SpanBuilder
48    */

49   SpanBuilder getSpanBuilder();
50
51   /**
52    * @see SpanBuilder
53    */

54   void setSpanBuilder(SpanBuilder spanBuilder);
55   
56   SpanCalc getSpanCalc();
57   
58   AxisConfig getAxisConfig();
59   
60   AxisHeaderBuilder getAxisHeaderBuilder();
61   
62   void setAxisHeaderBuilder(AxisHeaderBuilder axisHeaderBuilder);
63 }
64
65
Popular Tags