Class PWord

java.lang.Object
   |
   +----PElement
           |
           +----PWord

public class PWord
extends PElement
The class PWord is used to store a word of a page and its format.

Author:
Gregor Panzer qversion 0.1

Constructor Index

 o PWord(int, String, PFormat)
The constructor gets position, value and format of the word.
 o PWord(String)
The constructor gets the value of the word.

Method Index

 o getPosition()
Returns the position of the word in the original page
 o getValue()
Returns the value of the word.
 o isHeading()
Returns true if the word is marked as Heading
 o isHighlight()
Returns true if the word is formatted as italics, bold or underline
 o isTitle()
Returns true if the word is marked as title
 o testausgabe()

Constructors

 o PWord
 public PWord(String value)
The constructor gets the value of the word.

 o PWord
 public PWord(int position,
              String value,
              PFormat format)
The constructor gets position, value and format of the word.

Methods

 o getPosition
 public int getPosition()
Returns the position of the word in the original page

 o getValue
 public String getValue()
Returns the value of the word.

 o isHighlight
 public boolean isHighlight()
Returns true if the word is formatted as italics, bold or underline

 o isTitle
 public boolean isTitle()
Returns true if the word is marked as title

 o isHeading
 public boolean isHeading()
Returns true if the word is marked as Heading

 o testausgabe
 public String testausgabe()
Overrides:
testausgabe in class PElement