JRubik v0.6

es.aeat.eett.plugins.tableNavi.jpivot
Class RowAxisBuilderImpl

java.lang.Object
  extended byes.aeat.eett.plugins.tableNavi.jpivot.PartBuilderSupport
      extended byes.aeat.eett.plugins.tableNavi.jpivot.AxisBuilderSupport
          extended byes.aeat.eett.plugins.tableNavi.jpivot.RowAxisBuilderImpl
All Implemented Interfaces:
AxisBuilder, AxisConfig, com.tonbeller.wcf.bookmarks.Bookmarkable, java.util.EventListener, PartBuilder, java.beans.PropertyChangeListener, RowAxisBuilder, RowAxisConfig, com.tonbeller.jpivot.table.span.SpanDirections

public class RowAxisBuilderImpl
extends AxisBuilderSupport
implements RowAxisBuilder, RowAxisConfig

common functionality for row axis builders

Author:
av

Field Summary
(package private)  com.tonbeller.jpivot.table.span.SpanCalc headerSpans
           
(package private)  int positionHeader
           
 
Fields inherited from class es.aeat.eett.plugins.tableNavi.jpivot.AxisBuilderSupport
headerSpan, hierarchyHeader, memberIndent, memberSpan, propertySpanBuilder, showParentMembers, spanBuilder, spanCalc
 
Fields inherited from class es.aeat.eett.plugins.tableNavi.jpivot.PartBuilderSupport
table
 
Fields inherited from interface es.aeat.eett.plugins.tableNavi.jpivot.AxisConfig
HIERARCHY_HEADER, HIERARCHY_LEVEL_HEADER, LEVEL_HEADER, NO_HEADER
 
Fields inherited from interface com.tonbeller.jpivot.table.span.SpanDirections
HIERARCHY_SPAN, HIERARCHY_THEN_POSITION_SPAN, NO_SPAN, POSITION_SPAN, POSITION_THEN_HIERARCHY_SPAN
 
Constructor Summary
RowAxisBuilderImpl()
           
 
Method Summary
 void buildHeaderRow(javax.swing.tree.DefaultMutableTreeNode parent, int rowIndex)
          builds a row for the corner element
 void buildRow(javax.swing.tree.DefaultMutableTreeNode parent, int rowIndex)
          appends one <row-heading> or multiple >column-heading< elements to parent.
protected  com.tonbeller.jpivot.olap.model.Axis getAxis()
          returns the row/column axis or null if result is 1- or 0-dimensional
 int getColumnCount()
          returns the number of columns.
 int getHeaderRowCount()
          return the number of rows needed for the header (corner element)
 com.tonbeller.jpivot.table.span.SpanCalc getHeaderSpanCalc()
          returns the SpanCalc for header if present. return null otherwise
 int getPositionHeader()
          Returns the positionHeader.
 int getRowCount()
          returns the number of rows.
 void initialize(com.tonbeller.jpivot.olap.model.Axis axis)
          called from startBuild()
 void setPositionHeader(int positionHeader)
          Sets the positionHeader.
 
Methods inherited from class es.aeat.eett.plugins.tableNavi.jpivot.AxisBuilderSupport
buildHeading, getAxisConfig, getBookmarkState, getHeaderSpan, getHierarchyHeader, getMemberSpan, getPropertyConfig, getSpanBuilder, getSpanCalc, initialize, isMemberIndent, isShowParentMembers, propertyChange, setBookmarkState, setHeaderSpan, setHierarchyHeader, setMemberIndent, setMemberSpan, setShowParentMembers, setSpanBuilder, startBuild, stopBuild
 
Methods inherited from class es.aeat.eett.plugins.tableNavi.jpivot.PartBuilderSupport
destroy, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface es.aeat.eett.plugins.tableNavi.jpivot.AxisBuilder
getAxisConfig, getSpanBuilder, getSpanCalc, setSpanBuilder
 
Methods inherited from interface es.aeat.eett.plugins.tableNavi.jpivot.PartBuilder
destroy, initialize, startBuild, stopBuild
 
Methods inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable
getBookmarkState, setBookmarkState
 
Methods inherited from interface es.aeat.eett.plugins.tableNavi.jpivot.AxisConfig
getHeaderSpan, getHierarchyHeader, getMemberSpan, getPropertyConfig, isMemberIndent, isShowParentMembers, setHeaderSpan, setHierarchyHeader, setMemberIndent, setMemberSpan, setShowParentMembers
 

Field Detail

positionHeader

int positionHeader

headerSpans

com.tonbeller.jpivot.table.span.SpanCalc headerSpans
Constructor Detail

RowAxisBuilderImpl

public RowAxisBuilderImpl()
Method Detail

buildRow

public void buildRow(javax.swing.tree.DefaultMutableTreeNode parent,
                     int rowIndex)
Description copied from interface: AxisBuilder
appends one <row-heading> or multiple >column-heading< elements to parent.

Specified by:
buildRow in interface AxisBuilder
Parameters:
parent - a <row> element containing headings (and cells)
rowIndex - - index of the row to build

getColumnCount

public int getColumnCount()
Description copied from interface: AxisBuilder
returns the number of columns. A row axis will return hierarchyCount, a column axis will return positionCount

Specified by:
getColumnCount in interface AxisBuilder
See Also:
com.tonbeller.jpivot.ui.table.AxisBuilder#getColumnCount()

getRowCount

public int getRowCount()
Description copied from interface: AxisBuilder
returns the number of rows. A row axis will return positionCount, a column axis will return hierarchyCount

Specified by:
getRowCount in interface AxisBuilder
See Also:
com.tonbeller.jpivot.ui.table.AxisBuilder#getRowCount()

getPositionHeader

public int getPositionHeader()
Returns the positionHeader.

Specified by:
getPositionHeader in interface RowAxisConfig
Returns:
int

setPositionHeader

public void setPositionHeader(int positionHeader)
Sets the positionHeader.

Specified by:
setPositionHeader in interface RowAxisConfig
Parameters:
positionHeader - The positionHeader to set

buildHeaderRow

public void buildHeaderRow(javax.swing.tree.DefaultMutableTreeNode parent,
                           int rowIndex)
Description copied from interface: RowAxisBuilder
builds a row for the corner element

Specified by:
buildHeaderRow in interface RowAxisBuilder
See Also:
com.tonbeller.jpivot.ui.table.RowAxisBuilder#buildHeaderRow(Element, int)

getHeaderRowCount

public int getHeaderRowCount()
Description copied from interface: RowAxisBuilder
return the number of rows needed for the header (corner element)

Specified by:
getHeaderRowCount in interface RowAxisBuilder
See Also:
com.tonbeller.jpivot.ui.table.RowAxisBuilder#getHeaderRowCount()

getHeaderSpanCalc

public com.tonbeller.jpivot.table.span.SpanCalc getHeaderSpanCalc()
Description copied from interface: RowAxisBuilder
returns the SpanCalc for header if present. return null otherwise

Specified by:
getHeaderSpanCalc in interface RowAxisBuilder

initialize

public void initialize(com.tonbeller.jpivot.olap.model.Axis axis)
Description copied from class: AxisBuilderSupport
called from startBuild()

Overrides:
initialize in class AxisBuilderSupport
See Also:
com.tonbeller.jpivot.ui.table.AxisBuilder#initialize(Axis)

getAxis

protected com.tonbeller.jpivot.olap.model.Axis getAxis()
Description copied from class: AxisBuilderSupport
returns the row/column axis or null if result is 1- or 0-dimensional

Specified by:
getAxis in class AxisBuilderSupport

JRubik v0.6

JRubik v0.6