|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.jrefinery.workbook.RowAttributes
Stores the attributes for a range of rows (or sometimes just one row).
| Field Summary | |
protected int |
endRow
The ending row number (startRow to Worksheet.MAX_ROWS-1). |
protected boolean |
hardSize
Not sure what this is (Gnumeric uses it for something). |
protected double |
height
The row height. |
protected boolean |
hidden
Flag that indicates whether this row is hidden. |
protected int |
marginA
The left margin. |
protected int |
marginB
The right margin. |
protected int |
startRow
The starting row number (0 to Worksheet.MAX_ROWS-1). |
| Constructor Summary | |
RowAttributes(int startRow,
int endRow)
Standard constructor: uses default values. |
|
RowAttributes(int startRow,
int endRow,
double width)
Standard constructor. |
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
Implements the Comparable interface. |
int |
getEndRow()
Returns the end row. |
double |
getHeight()
Returns the row height. |
RowAttributes |
getSplitFromRow(int split)
Returns a new RowAttributes object, based on this one but only from the specified row. |
RowAttributes |
getSplitToRow(int split)
Returns a new RowAttributes object, based on this one but only up to the specified row. |
int |
getStartRow()
Returns the start row. |
RowAttributes |
getSubset(int r1,
int r2)
Returns a new RowAttributes object, based on this one but only for the specified range of rows. |
void |
setHeight(double height)
Sets the row height. |
void |
writeRowInfo(java.io.PrintStream out,
java.lang.String indent)
Writes the rows 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 startRow
protected int endRow
protected double height
protected int marginA
protected int marginB
protected boolean hardSize
protected boolean hidden
| Constructor Detail |
public RowAttributes(int startRow,
int endRow)
startRow - The start row.endRow - The end row.
public RowAttributes(int startRow,
int endRow,
double width)
startRow - The start row.endRow - The end row.height - The row height.| Method Detail |
public int getStartRow()
public int getEndRow()
public double getHeight()
public void setHeight(double height)
height - The new row height.public RowAttributes getSplitToRow(int split)
split - The row.public RowAttributes getSplitFromRow(int split)
split - The row.
public RowAttributes getSubset(int r1,
int r2)
r1 - The start row.r2 - The end row.public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - The object to compare against.
public void writeRowInfo(java.io.PrintStream out,
java.lang.String indent)
out - The output stream.indent - The indentation.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||