KickJava   Java API By Example, From Geeks To Geeks.

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


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 com.tonbeller.jpivot.table.span.PropertyConfig;
16 import com.tonbeller.jpivot.table.span.SpanDirections;
17
18 /**
19  * exposes properties to configure an axis. A facade that simplifies
20  * the configuration of an axis.
21  * @author av
22  */

23
24 public interface AxisConfig extends SpanDirections {
25   /**
26    * controls whether or not the parents of the member will be displayed
27    */

28   boolean isShowParentMembers();
29   void setShowParentMembers(boolean showParentMembers);
30
31   /**
32    * controls whether or not a member should be indented
33    */

34   boolean isMemberIndent();
35   void setMemberIndent(boolean memberIndent);
36
37   /**
38    * no axis header will be created
39    */

40   static final int NO_HEADER = 0;
41
42   /**
43    * the hierarchies will be shown as axis headers
44    */

45   static final int HIERARCHY_HEADER = 1;
46
47   /**
48    * the levels will be shown as axis headers
49    */

50   static final int LEVEL_HEADER = 2;
51
52   /**
53    * position header on rowaxis only: shows both, hierarchy and level headers
54    */

55   static final int HIERARCHY_LEVEL_HEADER = 3;
56
57   /**
58    * the headers will be mixed with the members of the axis
59    */

60   int getHierarchyHeader();
61   void setHierarchyHeader(int hierarchyHeader);
62
63   /**
64    * controls the generation of spans for member elements
65    */

66   int getMemberSpan();
67   void setMemberSpan(int span);
68
69   /**
70    * controls the generation of spans for header elements
71    */

72   int getHeaderSpan();
73   void setHeaderSpan(int span);
74
75   PropertyConfig getPropertyConfig();
76 }
77
Popular Tags