|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.table.LevelAxisDecorator
public class LevelAxisDecorator
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
Revenue | |
---|---|
USA | 1000 |
CA | 100 |
will become
Revenue | ||
---|---|---|
USA | USA | 1000 |
USA | CA | 100 |
If the all member is not visible on the axis, its not added as a parent, because this would not add information. Otherwise its added like other parent members too.
Constructor Summary | |
---|---|
LevelAxisDecorator(Axis axis,
MemberTree tree)
Constructor for LevelAxisDecorator. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
|
Axis |
getAxis()
|
Hierarchy[] |
getHierarchies()
returns the hierarchies of the underlying axis. |
java.util.List |
getPositions()
return the positions on this axis |
java.lang.Object |
getRootDecoree()
returns the object that has been created by the olap server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LevelAxisDecorator(Axis axis, MemberTree tree)
Method Detail |
---|
public java.util.List getPositions()
Axis
getPositions
in interface Axis
Axis.getPositions()
public Hierarchy[] getHierarchies()
getHierarchies
in interface Axis
Axis.getHierarchies()
public Axis getAxis()
com.tonbeller.jpivot.olap.model.impl.AxisDecorator#getAxis()
public java.lang.Object getRootDecoree()
Decorator
getRootDecoree
in interface Decorator
public void accept(Visitor visitor)
accept
in interface Visitable
Visitable.accept(Visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |