|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.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 start,
int end)
Standard constructor: uses default values. |
|
RowAttributes(int start,
int end,
double height)
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. |
int |
getMarginA()
Returns margin A. |
int |
getMarginB()
Returns margin B. |
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. |
boolean |
includesRow(int row)
Returns true if this attributes record applies to the specified row. |
boolean |
isHardSize()
Returns a flag indicating ???. |
boolean |
isHidden()
Returns a flag indicating whether or not the row is hidden. |
void |
setHeight(double height)
Sets the row height. |
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 start, int end)
start
- the start row.end
- the end row.public RowAttributes(int start, int end, double height)
start
- the start row.end
- 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 int getMarginA()
public int getMarginB()
public boolean isHardSize()
public boolean isHidden()
public boolean includesRow(int row)
row
- the row.
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.Comparable
other
- the object to compare against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |