com.jrefinery.workbook
Class RowAttributesManager

java.lang.Object
  |
  +--com.jrefinery.workbook.RowAttributesManager

public class RowAttributesManager
extends java.lang.Object

Records information about the rows in a worksheet, row height, visibility etc.


Field Summary
protected  java.util.List attributes
          List of RowAttributes objects.
protected  double defaultRowHeight
          The default row height.
 
Constructor Summary
RowAttributesManager()
          Default constructor.
 
Method Summary
 double getDefaultRowHeight()
          Returns the default row height.
 void modifyRowAttributes(RowAttributesModifier modifier, int r1, int r2)
          General method for modifying row attributes.
 void setDefaultRowHeight(double height)
          Sets the default row height.
 void setRowHeight(int startRow, int endRow, double height)
          Sets the height of a range of rows.
 void writeRows(java.io.PrintStream out, java.lang.String indent)
          Writes the rows element to the specified stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultRowHeight

protected double defaultRowHeight
The default row height.

attributes

protected java.util.List attributes
List of RowAttributes objects.
Constructor Detail

RowAttributesManager

public RowAttributesManager()
Default constructor.
Method Detail

getDefaultRowHeight

public double getDefaultRowHeight()
Returns the default row height.
Returns:
The default row height.

setDefaultRowHeight

public void setDefaultRowHeight(double height)
Sets the default row height.
Parameters:
The - new default row height.

setRowHeight

public void setRowHeight(int startRow,
                         int endRow,
                         double height)
Sets the height of a range of rows.
Parameters:
startRow - The start row.
endRow - The end row.
height - The new height.

modifyRowAttributes

public void modifyRowAttributes(RowAttributesModifier modifier,
                                int r1,
                                int r2)
General method for modifying row attributes.
Parameters:
modifier - Handles modification to individual row attribute records.
r1 - The start row.
r2 - The end row.

writeRows

public void writeRows(java.io.PrintStream out,
                      java.lang.String indent)
Writes the rows element to the specified stream.
Parameters:
out - The output stream.
indent - The indentation.