es.aeat.eett.plugins.tableNavi.jpivot
Class LevelAxisDecorator
java.lang.Object
es.aeat.eett.plugins.tableNavi.jpivot.LevelAxisDecorator
- All Implemented Interfaces:
- com.tonbeller.jpivot.olap.model.Axis, com.tonbeller.jpivot.olap.model.Decorator, com.tonbeller.jpivot.olap.model.Visitable
- public class LevelAxisDecorator
- extends java.lang.Object
- implements com.tonbeller.jpivot.olap.model.Axis
Decorates an Axis by adding the parents of all members.
Every Position will contain an equal number of members,
where some of them will be the same. For example, an
axis in the result contains 2 members in 1 hierarchy
will become
| | Revenue |
USA | USA | 1000 |
USA | CA | 100 |
- Author:
- av
Field Summary |
(package private) com.tonbeller.jpivot.olap.model.Axis |
axis
|
(package private) int[] |
levelCount
|
(package private) java.util.List |
positions
|
(package private) int |
totalLevelCount
|
(package private) com.tonbeller.jpivot.olap.navi.MemberTree |
tree
|
Constructor Summary |
LevelAxisDecorator(com.tonbeller.jpivot.olap.model.Axis axis,
com.tonbeller.jpivot.olap.navi.MemberTree tree)
Constructor for LevelAxisDecorator. |
Method Summary |
void |
accept(com.tonbeller.jpivot.olap.model.Visitor visitor)
|
(package private) void |
addParents(com.tonbeller.jpivot.olap.model.Member[] result,
int offset,
int totalCount,
com.tonbeller.jpivot.olap.model.Member member)
|
(package private) void |
computeLevelCount()
for each hierarchy of the underlying axis compute the
number of levels (maxRootDistance - minRootDistance). |
com.tonbeller.jpivot.olap.model.Axis |
getAxis()
|
com.tonbeller.jpivot.olap.model.Hierarchy[] |
getHierarchies()
returns the hierarchies of the underlying axis. |
java.util.List |
getPositions()
|
java.lang.Object |
getRootDecoree()
|
(package private) com.tonbeller.jpivot.olap.model.Position |
makePosition(com.tonbeller.jpivot.olap.model.Position source)
|
(package private) void |
makePositions()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
axis
com.tonbeller.jpivot.olap.model.Axis axis
tree
com.tonbeller.jpivot.olap.navi.MemberTree tree
levelCount
int[] levelCount
totalLevelCount
int totalLevelCount
positions
java.util.List positions
LevelAxisDecorator
public LevelAxisDecorator(com.tonbeller.jpivot.olap.model.Axis axis,
com.tonbeller.jpivot.olap.navi.MemberTree tree)
- Constructor for LevelAxisDecorator.
computeLevelCount
void computeLevelCount()
- for each hierarchy of the underlying axis compute the
number of levels (maxRootDistance - minRootDistance).
makePositions
void makePositions()
makePosition
com.tonbeller.jpivot.olap.model.Position makePosition(com.tonbeller.jpivot.olap.model.Position source)
addParents
void addParents(com.tonbeller.jpivot.olap.model.Member[] result,
int offset,
int totalCount,
com.tonbeller.jpivot.olap.model.Member member)
getPositions
public java.util.List getPositions()
- Specified by:
getPositions
in interface com.tonbeller.jpivot.olap.model.Axis
- See Also:
Axis.getPositions()
getHierarchies
public com.tonbeller.jpivot.olap.model.Hierarchy[] getHierarchies()
- returns the hierarchies of the underlying axis.
- Specified by:
getHierarchies
in interface com.tonbeller.jpivot.olap.model.Axis
- See Also:
Axis.getHierarchies()
getAxis
public com.tonbeller.jpivot.olap.model.Axis getAxis()
- See Also:
com.tonbeller.jpivot.olap.model.impl.AxisDecorator#getAxis()
getRootDecoree
public java.lang.Object getRootDecoree()
- Specified by:
getRootDecoree
in interface com.tonbeller.jpivot.olap.model.Decorator
accept
public void accept(com.tonbeller.jpivot.olap.model.Visitor visitor)
- Specified by:
accept
in interface com.tonbeller.jpivot.olap.model.Visitable
- See Also:
Visitable.accept(Visitor)
JRubik v0.6