org.jfree.workbook
Class ColumnAttributesManager

java.lang.Object
  |
  +--org.jfree.workbook.ColumnAttributesManager

public class ColumnAttributesManager
extends java.lang.Object

Records information about the columns in a worksheet.


Field Summary
protected  java.util.List attributes
          List of ColumnAttributes objects.
protected  double defaultColumnWidth
          The default column width.
 
Constructor Summary
ColumnAttributesManager()
          Constructs a new ColumnAttributesManager.
 
Method Summary
 java.util.Iterator getAttributesIterator()
          Returns an iterator that provides access to the attribute records.
 double getDefaultColumnWidth()
          Returns the default column width.
 void modifyColumnAttributes(ColumnAttributesModifier modifier, int c1, int c2)
          General method for modifying column attributes.
 void setColumnWidth(int startColumn, int endColumn, double width)
          Sets the width of a range of columns.
 void setDefaultColumnWidth(double width)
          Sets the default column width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultColumnWidth

protected double defaultColumnWidth
The default column width.


attributes

protected java.util.List attributes
List of ColumnAttributes objects.

Constructor Detail

ColumnAttributesManager

public ColumnAttributesManager()
Constructs a new ColumnAttributesManager.

Method Detail

getDefaultColumnWidth

public double getDefaultColumnWidth()
Returns the default column width.

Returns:
The default column width.

setDefaultColumnWidth

public void setDefaultColumnWidth(double width)
Sets the default column width.

Parameters:
width - the new default column width.

setColumnWidth

public void setColumnWidth(int startColumn,
                           int endColumn,
                           double width)
Sets the width of a range of columns.

Parameters:
startColumn - the start column (0 <= startColumn < Worksheets.MAX_COLUMNS).
endColumn - the end column (startColumn <= endColumn < Worksheets.MAX_COLUMNS).
width - the new width.

modifyColumnAttributes

public void modifyColumnAttributes(ColumnAttributesModifier modifier,
                                   int c1,
                                   int c2)
General method for modifying column attributes.

Parameters:
modifier - the modifier.
c1 - the start column.
c2 - the end column.

getAttributesIterator

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

Returns:
The iterator.