|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.powerml.structures.text.Text
This class is used to represent text, e.g. contained in a shape or a placeholder.
| Field Summary | |
static byte |
TYPE_BODY
Body text type |
static byte |
TYPE_HALF_BODY
Half body text type |
static byte |
TYPE_HEADER
Header text type |
static byte |
TYPE_NOTES
Notes text type |
static byte |
TYPE_QUARTER_BODY
Quarter body text type |
static byte |
TYPE_SHAPE
Shape text type |
static byte |
TYPE_TITLE_BODY
Body on title slide text type |
static byte |
TYPE_TITLE_HEADER
Header on title slide text type |
static byte |
TYPE_UNKNOWN
Unknown text type |
| Method Summary | |
void |
addXml(org.dom4j.Element parent,
boolean purgeStrings)
Transforms current instance to XML and adds it to a parent element. |
java.util.ArrayList |
getHyperlinks()
Returns a list of hyperlinks contained in the text. |
int |
getLength()
Returns the length of the text in characters. |
java.util.ArrayList |
getParagraphs()
Returns a list with all paragraphs contained in the text. |
Ruler |
getRuler()
Returns the ruler assigned to the text. |
java.lang.String |
getString()
Returns the text contained in the paragraph as a string obtained by concatenating the paragraphs of this text which are also obtained by concatenation. |
byte |
getType()
Returns the text type (see TYPE_... |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte TYPE_BODY
public static final byte TYPE_HALF_BODY
public static final byte TYPE_HEADER
public static final byte TYPE_NOTES
public static final byte TYPE_QUARTER_BODY
public static final byte TYPE_SHAPE
public static final byte TYPE_TITLE_BODY
public static final byte TYPE_TITLE_HEADER
public static final byte TYPE_UNKNOWN
| Method Detail |
public void addXml(org.dom4j.Element parent,
boolean purgeStrings)
parent - parent elementpurgeStrings - clean strings of control characterspublic java.util.ArrayList getHyperlinks()
Hyperlink instancespublic int getLength()
public java.util.ArrayList getParagraphs()
ArrayList containing Paragraph instancespublic Ruler getRuler()
public java.lang.String getString()
"#".
public byte getType()
TYPE_....
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||