|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.ss.usermodel.HorizontalAlignment
public class HorizontalAlignment
The enumeration value indicating horizontal alignment of a cell, i.e., whether it is aligned general, left, right, horizontally centered, filled (replicated), justified, centered across multiple cells, or distributed.
Field Summary | |
---|---|
static HorizontalAlignment |
CENTER
The horizontal alignment is centered, meaning the text is centered across the cell. |
static HorizontalAlignment |
CENTER_SELECTION
The horizontal alignment is centered across multiple cells. |
static HorizontalAlignment |
DISTRIBUTED
Indicates that each 'word' in each line of text inside the cell is evenly distributed across the width of the cell, with flush right and left margins. |
static HorizontalAlignment |
FILL
Indicates that the value of the cell should be filled across the entire width of the cell. |
static HorizontalAlignment |
GENERAL
The horizontal alignment is general-aligned. |
static HorizontalAlignment |
JUSTIFY
The horizontal alignment is justified (flush left and right). |
static HorizontalAlignment |
LEFT
The horizontal alignment is left-aligned, even in Rightto-Left mode. |
static HorizontalAlignment |
RIGHT
The horizontal alignment is right-aligned, meaning that cell contents are aligned at the right edge of the cell, even in Right-to-Left mode. |
Constructor Summary | |
---|---|
HorizontalAlignment(int i)
|
Method Summary | |
---|---|
int |
getOrdinal()
|
static HorizontalAlignment[] |
values()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final HorizontalAlignment GENERAL
public static final HorizontalAlignment LEFT
public static final HorizontalAlignment CENTER
public static final HorizontalAlignment RIGHT
public static final HorizontalAlignment FILL
Additional rules:
public static final HorizontalAlignment JUSTIFY
public static final HorizontalAlignment CENTER_SELECTION
public static final HorizontalAlignment DISTRIBUTED
When there is also an indent value to apply, both the left and right side of the cell are padded by the indent value.
A 'word' is a set of characters with no space character in them.
Two lines inside a cell are separated by a carriage return.
Constructor Detail |
---|
public HorizontalAlignment(int i)
Method Detail |
---|
public int getOrdinal()
public static HorizontalAlignment[] values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |