public class Indent extends ControlFragment
| Modifier and Type | Field and Description |
|---|---|
protected Alignment |
alignment |
protected SpaceUnit |
indentUnit |
protected float |
indentWidth |
protected StyledText |
styledText |
static Indent |
UNINDENT
Constant for the indentation of 0.
|
DEFAULT_FONT_DESCRIPTOR| Constructor and Description |
|---|
Indent(float indentPt)
Directly creates an indent of the given width in pt.
|
Indent(float indentWidth,
SpaceUnit indentUnit)
Creates a new line with the given font descriptor.
|
Indent(String label,
float indentWidth,
SpaceUnit indentUnit,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont font)
Creates a new line with the
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height. |
Indent(String label,
float indentWidth,
SpaceUnit indentUnit,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont font,
Alignment alignment)
Creates a new line with the
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height. |
Indent(String label,
float indentWidth,
SpaceUnit indentUnit,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont font,
Alignment alignment,
Color color)
Creates a new line with the
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height. |
Indent(String label,
float indentWidth,
SpaceUnit indentUnit,
FontDescriptor fontDescriptor,
Alignment alignment,
Color color)
Creates a new line with the given font descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getWidth() |
String |
toString() |
StyledText |
toStyledText() |
getColor, getFontDescriptor, getHeight, getName, getTextpublic static final Indent UNINDENT
protected float indentWidth
protected SpaceUnit indentUnit
protected Alignment alignment
protected StyledText styledText
public Indent(float indentWidth,
SpaceUnit indentUnit)
throws IOException
indentWidth - the indentation.indentUnit - the indentation unit.IOException - by pdfboxpublic Indent(String label, float indentWidth, SpaceUnit indentUnit, float fontSize, org.apache.pdfbox.pdmodel.font.PDFont font) throws IOException
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height.label - the label of the indentation.indentWidth - the indentation.indentUnit - the indentation unit.fontSize - the font size, resp. the height of the new line.font - the font to use.IOException - by pdfboxpublic Indent(String label, float indentWidth, SpaceUnit indentUnit, float fontSize, org.apache.pdfbox.pdmodel.font.PDFont font, Alignment alignment) throws IOException
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height.label - the label of the indentation.indentWidth - the indentation.indentUnit - the indentation unit.fontSize - the font size, resp. the height of the new line.font - the font to use.alignment - the alignment of the label.IOException - by pdfboxpublic Indent(String label, float indentWidth, SpaceUnit indentUnit, float fontSize, org.apache.pdfbox.pdmodel.font.PDFont font, Alignment alignment, Color color) throws IOException
ControlFragment.DEFAULT_FONT_DESCRIPTOR's font and the given
height.label - the label of the indentation.indentWidth - the indentation.indentUnit - the indentation unit.fontSize - the font size, resp. the height of the new line.font - the font to use.alignment - the alignment of the label.color - the color to use.IOException - by pdfboxpublic Indent(String label, float indentWidth, SpaceUnit indentUnit, FontDescriptor fontDescriptor, Alignment alignment, Color color) throws IOException
label - the label of the indentation.indentWidth - the indentation width.indentUnit - the indentation unit.fontDescriptor - the font and size associated with this new line.alignment - the alignment of the label.color - the color to use.IOException - by pdfboxpublic Indent(float indentPt)
indentPt - the indentation in pt.public float getWidth()
throws IOException
getWidth in interface AreagetWidth in class ControlFragmentIOException - by pdfboxpublic StyledText toStyledText()
public String toString()
toString in class ControlFragmentCopyright © 2022. All rights reserved.