|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.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 in pts. |
Constructor Summary | |
ColumnAttributes(int start,
int end)
Constructs a new ColumnAttributes object, using default values where necessary. |
|
ColumnAttributes(int start,
int end,
double width)
Constructs a new ColumnAttributes object. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Implements the Comparable interface. |
int |
getEndColumn()
Returns the end column. |
int |
getMarginA()
Returns margin A. |
int |
getMarginB()
Returns margin B. |
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. |
boolean |
isHardSize()
Returns a flag indicating ???. |
boolean |
isHidden()
Returns a flag indicating whether or not the column is hidden. |
void |
setWidth(double width)
Sets the column width. |
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 start, int end)
start
- the start column.end
- the end column.public ColumnAttributes(int start, int end, double width)
start
- the start column.end
- the end column.width
- the column width.Method Detail |
public int getStartColumn()
public int getEndColumn()
public double getWidth()
public void setWidth(double width)
width
- the new column width.public int getMarginA()
public int getMarginB()
public boolean isHardSize()
public boolean isHidden()
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.Comparable
other
- The object to compare against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |