org.foray.mif
Class MifPage

java.lang.Object
  extended by org.foray.mif.MifToken
      extended by org.foray.mif.MifPage

public class MifPage
extends MifToken

A MIF Page.


Constructor Summary
MifPage(MifBook document)
          Constructor.
MifPage(MifBook document, String pageType, String pageBackground)
          Constructor.
 
Method Summary
 void addTextRect(int numCols)
          Adds a text rectangle with a specified number of columns to this page.
 MifTextRect curTextRect()
          Returns the current text rectangle.
 String mifContent()
          Returns the content of this token as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MifPage

public MifPage(MifBook document,
               String pageType,
               String pageBackground)
Constructor.

Parameters:
document - The parent document.
pageType - The page type.
pageBackground - The page background.

MifPage

public MifPage(MifBook document)
Constructor.

Parameters:
document - The parent document.
Method Detail

addTextRect

public void addTextRect(int numCols)
Adds a text rectangle with a specified number of columns to this page.

Parameters:
numCols - The number of columns that should be in the new text rectangle.

curTextRect

public MifTextRect curTextRect()
Returns the current text rectangle.

Returns:
The current text rectangle.

mifContent

public String mifContent()
Description copied from class: MifToken
Returns the content of this token as a String.

Returns:
The content of this token as a String.


Copyright © 2017. All rights reserved.