platypus
Class Columns
java.lang.Object
platypus.Columns
public class Columns
- extends java.lang.Object
Keeps track of the number of columns and the gutter size. Does no implementation. For
implementation, see the appropriate Column class.
- Author:
- alb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lineNumber
private int lineNumber
columns
private java.util.ArrayList<Column> columns
Columns
public Columns()
Columns
public Columns(int howMany)
createColumns
public int createColumns(int newCount)
- Sets the number of columns. For the time being, these are equally wide and spaced
columns. Eventually, we'll permit irregular shapes and varying widths.
- Parameters:
newCount - number of new columns
- Returns:
- number of created columns
getColumn
public Column getColumn(int whichCol)
- Return a designated column
- Parameters:
whichCol -
- Returns:
- the specified column
getCount
public int getCount()
getRecommendedGutterSize
private float getRecommendedGutterSize(int numberOfColumns)
- Figure out the recommended gutter size for regular columns
- Parameters:
numberOfColumns -
- Returns:
- recommended size of gutter in points, or -1f in case of 0 or less columns.
getLineNumber
public int getLineNumber()
dump
public java.lang.String dump()
Copyright © 2006-7 Pacific Data Works LLC