|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.objects.Columns
The columns specification class. Columns are specified by their widths and intercolumn gaps in twips. They could be separated with a line.
| Constructor Summary | |
Columns(int count,
int textWidth)
Construct a set of columns and calculate its parameters in assumption of the default column gap (720 twips). |
|
| Method Summary | |
void |
calculateParameters(int columnGap)
Calculate columns' parameters for constant width columns. |
java.lang.Object |
clone()
Create a deep copy of this object. |
int |
count()
Return a number of columns. |
boolean |
equals(java.lang.Object obj)
Compare this object with another columns specification and return true if they coinside. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
int |
getAverageGapWidth()
Return an everage width of column gap. |
int |
getColumnGapWidth(int index)
Return the width of the gap to the right of the specified column. |
int |
getColumnWidth(int index)
Return the width of the specified column. |
boolean |
hasEqualWidthColumns()
Return true if all columns have identical widths. |
boolean |
hasLineBetween()
Return true if the "line between columns" tag is turned on. |
void |
lineBetween()
Turn the "line between columns" tag on (default is off). |
void |
setColumnGapWidth(int index,
int value)
Set a width of the gap to the right of the specified column. |
void |
setColumnWidth(int index,
int value)
Set a width of the specified column. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Columns(int count,
int textWidth)
count - a number of columnstextWidth - a width of the text area in twips| Method Detail |
public final int count()
public void calculateParameters(int columnGap)
columnGap - an intercolumn space in twips
public final void setColumnWidth(int index,
int value)
index - a zero-based index of the columnvalue - a width of the column in twips
public final void setColumnGapWidth(int index,
int value)
index - a zero-based index of the columnvalue - a width of the gap in twipspublic final int getColumnWidth(int index)
index - a zero-based index of the columnpublic final int getColumnGapWidth(int index)
index - a zero-based index of the columnpublic final void lineBetween()
public final boolean hasLineBetween()
public boolean hasEqualWidthColumns()
public int getAverageGapWidth()
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||