public final class AtomText extends AbstractAtom implements Atom
Modifier and Type | Class and Description |
---|---|
protected static interface |
AtomText.DelayedDouble |
Modifier | Constructor and Description |
---|---|
protected |
AtomText(java.lang.String text,
FontConfiguration style,
Url url,
AtomText.DelayedDouble marginLeft,
AtomText.DelayedDouble marginRight,
boolean manageSpecialChars) |
Modifier and Type | Method and Description |
---|---|
Dimension2D |
calculateDimension(StringBounder stringBounder) |
void |
drawU(UGraphic ug) |
FontConfiguration |
getFontConfiguration() |
java.util.List<Atom> |
getSplitted(StringBounder stringBounder,
LineBreakStrategy maxWidthAsString) |
double |
getStartingAltitude(StringBounder stringBounder) |
java.lang.String |
getText() |
java.util.List<Atom> |
splitInTwo(StringBounder stringBounder,
double width) |
java.lang.String |
toString() |
protected AtomText(java.lang.String text, FontConfiguration style, Url url, AtomText.DelayedDouble marginLeft, AtomText.DelayedDouble marginRight, boolean manageSpecialChars)
public Dimension2D calculateDimension(StringBounder stringBounder)
calculateDimension
in interface Atom
public java.util.List<Atom> getSplitted(StringBounder stringBounder, LineBreakStrategy maxWidthAsString)
public java.util.List<Atom> splitInTwo(StringBounder stringBounder, double width)
splitInTwo
in interface Atom
splitInTwo
in class AbstractAtom
public final java.lang.String getText()
public double getStartingAltitude(StringBounder stringBounder)
getStartingAltitude
in interface Atom
public java.lang.String toString()
toString
in class java.lang.Object
public FontConfiguration getFontConfiguration()