Package io.keikai.doc.io.schema.pdf
Class PDFRun
- java.lang.Object
-
- io.keikai.doc.io.schema.pdf.PDFRun
-
public class PDFRun extends java.lang.ObjectInternal Use Only.Represents a text run in PDF.
- Author:
- jamson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetBackgroundColor()Returns the backgroundColorof thePDFRun.java.awt.ColorgetColor()Returns theColorof thePDFRun.org.apache.pdfbox.pdmodel.font.PDFontgetFont()Returns thePDFontof thePDFRun.floatgetFontSize()Returns the font size of thePDFRun.java.lang.StringgetText()Returns the textStringof thePDFRun.floatgetWidth()Returns the width of thePDFRun.booleanisNotDef()Returns whether thePDFRunis not defined.booleanisSpace()Returns whether thePDFRunis a space.booleanisStrikethrough()Returns whether thePDFRunis strikethrough.booleanisSubscript()Returns whether thePDFRunis subscript.booleanisSuperscript()Returns whether thePDFRunis superscript.booleanisUnderline()Returns whether thePDFRunis underline.
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Returns the textStringof thePDFRun.- Returns:
- the text
Stringof thePDFRun
-
getColor
public java.awt.Color getColor()
Returns theColorof thePDFRun.- Returns:
- the
Colorof thePDFRun
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
Returns the backgroundColorof thePDFRun.- Returns:
- the background
Colorof thePDFRun
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont()
Returns thePDFontof thePDFRun.- Returns:
- the
PDFontof thePDFRun
-
isStrikethrough
public boolean isStrikethrough()
Returns whether thePDFRunis strikethrough.- Returns:
- whether the
PDFRunis strikethrough
-
getFontSize
public float getFontSize()
Returns the font size of thePDFRun.- Returns:
- the font size of the
PDFRun
-
isUnderline
public boolean isUnderline()
Returns whether thePDFRunis underline.- Returns:
- whether the
PDFRunis underline
-
isSuperscript
public boolean isSuperscript()
Returns whether thePDFRunis superscript.- Returns:
- whether the
PDFRunis superscript
-
isSubscript
public boolean isSubscript()
Returns whether thePDFRunis subscript.- Returns:
- whether the
PDFRunis subscript
-
isSpace
public boolean isSpace()
Returns whether thePDFRunis a space.- Returns:
- whether the
PDFRunis a space
-
-