|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xssf.usermodel.extensions.XSSFCellAlignment
public class XSSFCellAlignment
Cell settings avaiable in the Format/Alignment tab
Constructor Summary | |
---|---|
XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
Creates a Cell Alignment from the supplied XML definition |
Method Summary | |
---|---|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment |
getCTCellAlignment()
Access to low-level data |
HorizontalAlignment |
getHorizontal()
Get the type of horizontal alignment for the cell |
long |
getIndent()
Get the number of spaces to indent the text in the cell |
long |
getTextRotation()
Get the degree of rotation for the text in the cell Expressed in degrees. |
VerticalAlignment |
getVertical()
Get the type of vertical alignment for the cell |
boolean |
getWrapText()
Whether the text should be wrapped |
void |
setHorizontal(HorizontalAlignment align)
Set the type of horizontal alignment for the cell |
void |
setIndent(long indent)
Set the number of spaces to indent the text in the cell |
void |
setTextRotation(long rotation)
Set the degree of rotation for the text in the cell Expressed in degrees. |
void |
setVertical(VerticalAlignment align)
Set the type of vertical alignment for the cell |
void |
setWrapText(boolean wrapped)
Set whether the text should be wrapped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
cellAlignment
- Method Detail |
---|
public VerticalAlignment getVertical()
VerticalAlignment
public void setVertical(VerticalAlignment align)
align
- - the type of alignmentVerticalAlignment
public HorizontalAlignment getHorizontal()
HorizontalAlignment
public void setHorizontal(HorizontalAlignment align)
align
- - the type of alignmentHorizontalAlignment
public long getIndent()
public void setIndent(long indent)
indent
- - number of spacespublic long getTextRotation()
[degrees below horizon] = 90 - textRotation.
public void setTextRotation(long rotation)
[degrees below horizon] = 90 - textRotation.
rotation
- - the rotation degrees (between 0 and 180 degrees)public boolean getWrapText()
public void setWrapText(boolean wrapped)
wrapped
- a boolean value indicating if the text in a cell should be line-wrapped within the cell.@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment getCTCellAlignment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |