public class LayoutFlow
Example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape textbox = new Shape(doc, ShapeType.TEXT_BOX);
textbox.setWidth(100.0);
textbox.setHeight(100.0);
textbox.getTextBox().setLayoutFlow(LayoutFlow.BOTTOM_TO_TOP);
textbox.appendChild(new Paragraph(doc));
builder.insertNode(textbox);
builder.moveTo(textbox.getFirstParagraph());
builder.write("This text is flipped 90 degrees to the left.");
doc.save(getArtifactsDir() + "Drawing.TextBox.docx");
Field Summary | ||
---|---|---|
static final int | HORIZONTAL | |
Text is displayed horizontally.
|
||
static final int | TOP_TO_BOTTOM_IDEOGRAPHIC | |
Ideographic text is displayed vertically.
|
||
static final int | BOTTOM_TO_TOP | |
Text is displayed vertically.
|
||
static final int | TOP_TO_BOTTOM | |
Text is displayed vertically.
|
||
static final int | HORIZONTAL_IDEOGRAPHIC | |
Ideographic text is displayed horizontally.
|
||
static final int | VERTICAL | |
Text is displayed vertically.
|
public static final int HORIZONTAL
public static final int TOP_TO_BOTTOM_IDEOGRAPHIC
public static final int BOTTOM_TO_TOP
public static final int TOP_TO_BOTTOM
public static final int HORIZONTAL_IDEOGRAPHIC
public static final int VERTICAL