|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.plugin.pdf.Columns
public class Columns
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<Column> |
columns
|
| Constructor Summary | |
|---|---|
Columns(int howMany,
float verticalSkip,
PdfData pdf)
|
|
Columns(PdfData pdf)
Create an arrayList of default number of columns with no preceding vertical space |
|
| Method Summary | |
|---|---|
(package private) float |
calculateColumnWidth(float textWidth,
int cols,
PdfData pdf)
|
int |
createColumns(int newCount,
float verticalSkip,
PdfData pdf)
Sets the number of columns. |
java.lang.String |
dump(GDD gdd)
|
Column |
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(PdfData 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<Column> columns
| Constructor Detail |
|---|
public Columns(PdfData pdf)
pdf - the data on this PDF file
public Columns(int howMany,
float verticalSkip,
PdfData pdf)
| Method Detail |
|---|
public int createColumns(int newCount,
float verticalSkip,
PdfData 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,
PdfData pdf)
public int startColumnsAtTop(PdfData pdf)
pdf - the PdfData bag
public Column 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 | ||||||||