public class Text extends LineSegment
| Modifier and Type | Class and Description |
|---|---|
static class |
Text.VerticalAlignment |
begin, end| Constructor and Description |
|---|
Text() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFontName()
Get the value of fontName
|
float |
getFontSize()
Get the value of fontSize
|
String |
getText()
Get the value of text
|
Text.VerticalAlignment |
getVerticalAlignment()
Get the value of verticalAlignment
|
int |
hashCode() |
String |
indexedToString(int currentIdx)
Does the same as toString but also inserts the beginning and end index of
each objects respective text representation to this objects
attributes (which is retrievable by getBegin and getEnd).
|
void |
setFontName(String fontName)
Set the value of fontName
|
void |
setFontSize(float fontSize)
Set the value of fontSize
|
void |
setText(String text)
Set the value of text
|
void |
setVerticalAlignment(Text.VerticalAlignment verticalAlignment)
Set the value of verticalAlignment
|
String |
toString()
Returns the text content of this Text object.
|
String |
toXML()
Returns a XML representation of this text object including its
font size, font name and vertical alignment as XML attributes.
|
boundariesEqual, boundariesEqual, getBegin, getEnd, intersection, isValid, isValid, length, length, normalize, normalize, normalizedBounds, overlaps, overlaps, setBegin, setEnd, unionpublic Text.VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(Text.VerticalAlignment verticalAlignment)
verticalAlignment - new value of verticalAlignmentpublic float getFontSize()
public void setFontSize(float fontSize)
fontSize - new value of fontSizepublic String getFontName()
public void setFontName(String fontName)
fontName - new value of fontNamepublic String getText()
public void setText(String text)
text - new value of textpublic String toString()
public String indexedToString(int currentIdx)
currentIdx - the current index in the plain text representation.
If you are calling this as a user you should insert 0 here.public String toXML()
Copyright © 2014. All rights reserved.