org.jfree.workbook
Class RowAttributesManager

java.lang.Object
  |
  +--org.jfree.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()
          Constructs a RowAttributesManager.
 
Method Summary
 java.util.Iterator getAttributesIterator()
          Returns an iterator that provides access to the row attributes.
 double getDefaultRowHeight()
          Returns the default row height.
 double getHeight(int row)
          Returns the height of a particular row.
 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.
 
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()
Constructs a RowAttributesManager.

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:
height - the height.

getHeight

public double getHeight(int row)
Returns the height of a particular row.

Parameters:
row - the row.
Returns:
The 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.

getAttributesIterator

public java.util.Iterator getAttributesIterator()
Returns an iterator that provides access to the row attributes.

Returns:
An iterator.