|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.jrefinery.workbook.ColumnAttributes
Stores the attributes for a range of columns (or sometimes just one column).
| Field Summary | |
protected int |
endColumn
The ending column number (startColumn to Worksheet.MAX_COLUMNS-1). |
protected boolean |
hardSize
Not sure what this is (Gnumeric uses it for something). |
protected boolean |
hidden
Flag that indicates whether this column is hidden. |
protected int |
marginA
The left margin. |
protected int |
marginB
The right margin. |
protected int |
startColumn
The starting column number (0 to Worksheet.MAX_COLUMNS-1). |
protected double |
width
The column width. |
| Constructor Summary | |
ColumnAttributes(int startColumn,
int endColumn)
Standard constructor: uses default values. |
|
ColumnAttributes(int startColumn,
int endColumn,
double width)
Standard constructor. |
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
Implements the Comparable interface. |
int |
getEndColumn()
Returns the end column. |
ColumnAttributes |
getSplitFromColumn(int split)
Returns a new ColumnAttributes object, based on this one but only from the specified column. |
ColumnAttributes |
getSplitToColumn(int split)
Returns a new ColumnAttributes object, based on this one but only up to the specified column. |
int |
getStartColumn()
Returns the start column. |
ColumnAttributes |
getSubset(int c1,
int c2)
Returns a new ColumnAttributes object, based on this one but only for the specified range of columns. |
double |
getWidth()
Returns the column width. |
void |
setWidth(double width)
Sets the column width. |
void |
writeColInfo(java.io.PrintStream out,
java.lang.String indent)
Writes the columns element to the specified stream in the Gnumeric format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int startColumn
protected int endColumn
protected double width
protected int marginA
protected int marginB
protected boolean hardSize
protected boolean hidden
| Constructor Detail |
public ColumnAttributes(int startColumn,
int endColumn)
startColumn - The start column.endColumn - The end column.
public ColumnAttributes(int startColumn,
int endColumn,
double width)
startColumn - The start column.endColumn - The end column.width - The column width.| Method Detail |
public int getStartColumn()
public int getEndColumn()
public double getWidth()
public void setWidth(double width)
The - new column width.public ColumnAttributes getSplitToColumn(int split)
split - The column.public ColumnAttributes getSplitFromColumn(int split)
split - The column.
public ColumnAttributes getSubset(int c1,
int c2)
c1 - The start column.c2 - The end column.public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - The object to compare against.
public void writeColInfo(java.io.PrintStream out,
java.lang.String indent)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||