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
-
PWord(int, String, PFormat)
- The constructor gets position, value and format of the word.
-
PWord(String)
- The constructor gets the value of the word.
-
getPosition()
- Returns the position of the word in the original page
-
getValue()
- Returns the value of the word.
-
isHeading()
- Returns true if the word is marked as Heading
-
isHighlight()
- Returns true if the word is formatted as italics, bold or underline
-
isTitle()
- Returns true if the word is marked as title
-
testausgabe()
-
PWord
public PWord(String value)
- The constructor gets the value of the word.
PWord
public PWord(int position,
String value,
PFormat format)
- The constructor gets position, value and format of the word.
getPosition
public int getPosition()
- Returns the position of the word in the original page
getValue
public String getValue()
- Returns the value of the word.
isHighlight
public boolean isHighlight()
- Returns true if the word is formatted as italics, bold or underline
isTitle
public boolean isTitle()
- Returns true if the word is marked as title
isHeading
public boolean isHeading()
- Returns true if the word is marked as Heading
testausgabe
public String testausgabe()
- Overrides:
- testausgabe in class PElement