| Package | Description |
|---|---|
| rst.pdfbox.layout.elements | |
| rst.pdfbox.layout.elements.render | |
| rst.pdfbox.layout.text |
| Modifier and Type | Method and Description |
|---|---|
Alignment |
Paragraph.getAlignment() |
| Modifier and Type | Method and Description |
|---|---|
void |
Paragraph.setAlignment(Alignment alignment)
Sets the alignment to apply.
|
| Modifier and Type | Field and Description |
|---|---|
protected Alignment |
VerticalLayoutHint.VerticalLayoutHintBuilder.alignment |
| Modifier and Type | Method and Description |
|---|---|
Alignment |
VerticalLayoutHint.getAlignment() |
| Modifier and Type | Method and Description |
|---|---|
VerticalLayoutHint.VerticalLayoutHintBuilder |
VerticalLayoutHint.VerticalLayoutHintBuilder.alignment(Alignment alignment) |
| Constructor and Description |
|---|
ColumnLayoutHint(Alignment alignment)
Creates a layout hint with the given alignment.
|
ColumnLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
Creates a layout hint with the given alignment and margins.
|
ColumnLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom,
boolean resetY)
Creates a layout hint with the given alignment and margins.
|
VerticalLayoutHint(Alignment alignment)
Creates a layout hint with the given alignment.
|
VerticalLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom)
Creates a layout hint with the given alignment and margins.
|
VerticalLayoutHint(Alignment alignment,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom,
boolean resetY)
Creates a layout hint with the given alignment and margins.
|
| Modifier and Type | Field and Description |
|---|---|
protected Alignment |
Indent.alignment |
| Modifier and Type | Method and Description |
|---|---|
static Alignment |
Alignment.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Alignment[] |
Alignment.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TextLine.drawAligned(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
Alignment alignment,
float availableLineWidth,
DrawListener drawListener) |
void |
DrawableText.drawText(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
Alignment alignment,
DrawListener drawListener)
Draws the text of the (PdfBox-) cursor position.
|
void |
TextFlow.drawText(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
Alignment alignment,
DrawListener drawListener) |
void |
TextLine.drawText(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
Alignment alignment,
DrawListener drawListener) |
static void |
TextSequenceUtil.drawText(TextSequence text,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
DrawListener drawListener,
Alignment alignment,
float maxWidth,
float lineSpacing,
boolean applyLineSpacingToFirstLine)
Draws the given text sequence to the PDPageContentStream at the given
position.
|
static float |
TextSequenceUtil.getOffset(TextSequence textLine,
float targetWidth,
Alignment alignment)
Gets the (left) offset of the line with respect to the target width and
alignment.
|
| Constructor and Description |
|---|
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.
|
Copyright © 2021. All rights reserved.