aspose.pdf
Class ColumnInfo

java.lang.Object
  extended by aspose.pdf.ColumnInfo

public class ColumnInfo
extends java.lang.Object

Encapsulates info for page columns


Field Summary
 float[] colXPos
          The default column number of colXPos is 16.
 float[] spacingArr
          The default column number of spacingArr is 15.
 float[] widthArr
          The default column number of widthArr is 16.
 
Constructor Summary
ColumnInfo()
          Constructor - initializes a new instance of the ColumnInfo class.
 
Method Summary
 java.lang.Object clone()
          Clones a new ColumnInfo object.
 int getColumnCount()
          Gets an int value that indicates the number of columns in each page in the section.
 java.lang.String getColumnSpacing()
          Gets a string that contains the spacing between columns in each page in the section.
 java.lang.String getColumnWidths()
          Gets a string that contains the width of columns in each page in the section.
 int getCurCol()
          Gets an int value that indicates the index for current column.
 void setColumnCount(int columnCount)
          Sets an int value that indicates the number of columns in each page in the section.
 void setColumnSpacing(java.lang.String columnSpacing)
          Sets a string that contains the spacing between columns in each page in the section.
 void setColumnWidths(java.lang.String columnWidths)
          Sets a string that contains the width of columns in each page in the section.
 void setCurCol(int curCol)
          Sets an int value that indicates the index for current column.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

widthArr

public float[] widthArr
The default column number of widthArr is 16.


spacingArr

public float[] spacingArr
The default column number of spacingArr is 15.


colXPos

public float[] colXPos
The default column number of colXPos is 16.

Constructor Detail

ColumnInfo

public ColumnInfo()
Constructor - initializes a new instance of the ColumnInfo class.

Method Detail

clone

public java.lang.Object clone()
Clones a new ColumnInfo object.

Overrides:
clone in class java.lang.Object
Returns:
The new ColumnInfo object.

getColumnCount

public int getColumnCount()
Gets an int value that indicates the number of columns in each page in the section.

Returns:
Column count.

setColumnCount

public void setColumnCount(int columnCount)
Sets an int value that indicates the number of columns in each page in the section.

Parameters:
columnCount - Column count.

getCurCol

public int getCurCol()
Gets an int value that indicates the index for current column.

Returns:
An int value.

setCurCol

public void setCurCol(int curCol)
Sets an int value that indicates the index for current column.

Parameters:
curCol - An int value.

getColumnWidths

public java.lang.String getColumnWidths()
Gets a string that contains the width of columns in each page in the section. The value of each column should be separated by blank. The default unit is point, but cm, inch and percentage of available width are also supported. For example, "120 2.5cm 1.5inch", or "60% 40%". The max column number is 16.

Remarks: If this property is not set, column width will be calculated automatically according to ColumnCount and ColumnSpacing.

Returns:
A String value.

setColumnWidths

public void setColumnWidths(java.lang.String columnWidths)
Sets a string that contains the width of columns in each page in the section.

Parameters:
columnWidths - A String value.

getColumnSpacing

public java.lang.String getColumnSpacing()
Gets a string that contains the spacing between columns in each page in the section. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported. For example, "120 2.5cm 1.5inch".

Remarks: If this property is not set, default value 1.25cm will be used for each spacing.

Returns:
A Strig value.

setColumnSpacing

public void setColumnSpacing(java.lang.String columnSpacing)
Sets a string that contains the spacing between columns in each page in the section.

Parameters:
columnSpacing - A String value.