net.nexttext
Class TextPage

java.lang.Object
  extended by net.nexttext.TextPage
All Implemented Interfaces:
Locatable

public class TextPage
extends java.lang.Object
implements Locatable

A page responsible for storing and displaying text

The actual rendering of the text is delegated to a TextPageRenderer to support separation of model from view and to promote modularity.


Constructor Summary
TextPage(Book book, TextPageRenderer t)
           
 
Method Summary
 processing.core.PVector getLocation()
          A getter for the page's location.
 PVectorProperty getPosition()
          A getter for the standard "Position" property.
 PVectorProperty getRotation()
          A getter for the standard "Rotation" property.
 TextObjectGroup getTextRoot()
           
 void render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPage

public TextPage(Book book,
                TextPageRenderer t)
Method Detail

getTextRoot

public TextObjectGroup getTextRoot()

render

public void render()

getPosition

public PVectorProperty getPosition()
A getter for the standard "Position" property.


getRotation

public PVectorProperty getRotation()
A getter for the standard "Rotation" property.


getLocation

public processing.core.PVector getLocation()
A getter for the page's location.

Specified by:
getLocation in interface Locatable
Returns:
The object's location in absolute coordinates.