public class XSSFCellAlignment
extends java.lang.Object
Constructor and Description |
---|
XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
Creates a Cell Alignment from the supplied XML definition
|
Modifier and Type | Method and Description |
---|---|
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
|
public XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
cellAlignment
- 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 -90 and 90 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()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.