|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.olap4j.layout.RectangularCellSetFormatter
public class RectangularCellSetFormatter
Formatter that can convert a CellSet
into a two-dimensional text
layout.
With non-compact layout:
| 1997 | | Q1 | Q2 | | | 4 | | Unit Sales | Store Sales | Unit Sales | Store Sales | ----+----+---------+------------+-------------+------------+-------------+ USA | CA | Modesto | 12 | 34.5 | 13 | 35.60 | | WA | Seattle | 12 | 34.5 | 13 | 35.60 | | CA | Fresno | 12 | 34.5 | 13 | 35.60 |
With compact layout:
1997 Q1 Q2 4 Unit Sales Store Sales Unit Sales Store Sales === == ======= ========== =========== ========== =========== USA CA Modesto 12 34.5 13 35.60 WA Seattle 12 34.5 13 35.60 CA Fresno 12 34.5 13 35.60
This class is experimental. It is not part of the olap4j specification and is subject to change without notice.
Constructor Summary | |
---|---|
RectangularCellSetFormatter(boolean compact)
Creates a RectangularCellSetFormatter. |
Method Summary | |
---|---|
void |
format(CellSet cellSet,
java.io.PrintWriter pw)
Formats a CellSet as text to a PrintWriter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RectangularCellSetFormatter(boolean compact)
compact
- Whether to generate compact outputMethod Detail |
---|
public void format(CellSet cellSet, java.io.PrintWriter pw)
CellSetFormatter
format
in interface CellSetFormatter
cellSet
- Cell setpw
- Print writer
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |