|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.plugin.html.HtmlColumns
public class HtmlColumns
Keeps track of the number of columns, their size, and the gutter size. Does no implementation. For implementation, see the appropriate Column class.
| Field Summary | |
|---|---|
private java.util.ArrayList<HtmlColumn> |
columns
|
| Constructor Summary | |
|---|---|
HtmlColumns(HtmlData pdf)
Create an arrayList of default number of columns with no preceding vertical space |
|
HtmlColumns(int howMany,
float verticalSkip,
HtmlData pdf)
|
|
| Method Summary | |
|---|---|
(package private) float |
calculateColumnWidth(float textWidth,
int cols,
HtmlData pdf)
|
int |
createColumns(int newCount,
float verticalSkip,
HtmlData pdf)
Sets the number of columns. |
java.lang.String |
dump(GDD gdd)
|
HtmlColumn |
getColumn(int whichCol)
Return a designated column |
int |
getCount()
|
private float |
getRecommendedGutterSize(int numberOfCols)
Figure out the recommended gutter size for a given number of regular columns |
int |
size()
|
int |
startColumnsAtTop(HtmlData pdf)
If we changed column count in the middle of a page, then the columns at the bottom half of the page will be partial height. |
(package private) int |
validateColumnCount(int colCount,
GDD gdd)
Make sure the specified number of columns is correct ( > 0 ). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<HtmlColumn> columns
| Constructor Detail |
|---|
public HtmlColumns(HtmlData pdf)
pdf - the data on this PDF file
public HtmlColumns(int howMany,
float verticalSkip,
HtmlData pdf)
| Method Detail |
|---|
public int createColumns(int newCount,
float verticalSkip,
HtmlData pdf)
verticalSkip - distance to skip on the page before the top of the columns.newCount - number of new columnspdf - the Pdf document data
int validateColumnCount(int colCount,
GDD gdd)
colCount - how many columnsgdd - contains the error logger
float calculateColumnWidth(float textWidth,
int cols,
HtmlData pdf)
public int startColumnsAtTop(HtmlData pdf)
pdf - the PdfData bag
public HtmlColumn getColumn(int whichCol)
whichCol - the index of the column to get ( 0 = leftmost )
public int getCount()
private float getRecommendedGutterSize(int numberOfCols)
numberOfCols - number of columns on the page
public java.lang.String dump(GDD gdd)
public int size()
|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||