Package com.teamten.typeset
Class ColumnLayout
java.lang.Object
com.teamten.typeset.ColumnLayout
Describes the number and sizes of columns.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnLayout
(int columnCount, long columnWidth, long margin) Create a new column layout. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ColumnLayout
fromBodyWidth
(int columnCount, long bodyWidth, long margin) Create a multi-column layout from the specified body width and margin.int
long
long
int
hashCode()
static ColumnLayout
single()
Create a new single-column layout of zero width.static ColumnLayout
single
(long width) Create a new single-column layout of the specified width.toString()
-
Constructor Details
-
ColumnLayout
public ColumnLayout(int columnCount, long columnWidth, long margin) Create a new column layout.- Parameters:
columnCount
- the number of columns.columnWidth
- the width of each column. Can be 0 for a single column.margin
- the space between columns.
-
-
Method Details
-
single
Create a new single-column layout of zero width. -
single
Create a new single-column layout of the specified width. -
fromBodyWidth
Create a multi-column layout from the specified body width and margin. -
getColumnCount
public int getColumnCount() -
getColumnWidth
public long getColumnWidth() -
getMargin
public long getMargin() -
toString
-
equals
-
hashCode
public int hashCode()
-