public class LayoutFlow
extends java.lang.Object
Examples:
Shows how to add text to a text box, and change its orientation.
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");
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTTOM_TO_TOP
Text is displayed vertically.
|
static int |
HORIZONTAL
Text is displayed horizontally.
|
static int |
HORIZONTAL_IDEOGRAPHIC
Ideographic text is displayed horizontally.
|
static int |
length |
static int |
TOP_TO_BOTTOM
Text is displayed vertically.
|
static int |
TOP_TO_BOTTOM_IDEOGRAPHIC
Ideographic text is displayed vertically.
|
static int |
VERTICAL
Text is displayed vertically.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String layoutFlowName) |
static java.lang.String |
getName(int layoutFlow) |
static int[] |
getValues() |
static java.lang.String |
toString(int layoutFlow) |
public static int HORIZONTAL
public static int TOP_TO_BOTTOM_IDEOGRAPHIC
public static int BOTTOM_TO_TOP
public static int TOP_TO_BOTTOM
public static int HORIZONTAL_IDEOGRAPHIC
public static int VERTICAL
public static int length