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.
|
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() |
String |
toXML() |
boundariesEqual, boundariesEqual, getBegin, getEnd, intersection, isValid, isValid, length, length, normalize, normalize, normalizedBounds, overlaps, overlaps, setBegin, setEnd, union
public 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 indexedToString(int currentIdx)
public String toXML()
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie