Class CellAlignment
java.lang.Object
com.independentsoft.office.spreadsheet.styles.CellAlignment
The Class CellAlignment.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new cell alignment.CellAlignment(InternalXMLStreamReader reader)Instantiates a new cell alignment. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the horizontal alignment.intGets the indent.intGets the reading order.intGets the relative indent.intGets the text rotation.Gets the vertical alignment.booleanChecks if is justify last line.booleanChecks if is merge cell.booleanChecks if is shrink to fit.booleanChecks if is wrap text.voidsetHorizontalAlignment(HorizontalAlignment horizontalAlignment)Sets the horizontal alignment.voidsetIndent(int indent)Sets the indent.voidsetJustifyLastLine(boolean justifyLastLine)Sets the justify last line.voidsetMergeCell(boolean mergeCell)Sets the merge cell.voidsetReadingOrder(int readingOrder)Sets the reading order.voidsetRelativeIndent(int relativeIndent)Sets the relative indent.voidsetShrinkToFit(boolean shrinkToFit)Sets the shrink to fit.voidsetTextRotation(int textRotation)Sets the text rotation.voidsetVerticalAlignment(VerticalAlignment verticalAlignment)Sets the vertical alignment.voidsetWrapText(boolean wrapText)Sets the wrap text.toString()
-
Constructor Details
-
CellAlignment
public CellAlignment()Instantiates a new cell alignment. -
CellAlignment
Instantiates a new cell alignment.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toString
-
getHorizontalAlignment
Gets the horizontal alignment.- Returns:
- the horizontal alignment
-
setHorizontalAlignment
Sets the horizontal alignment.- Parameters:
horizontalAlignment- the new horizontal alignment
-
getIndent
public int getIndent()Gets the indent.- Returns:
- the indent
-
setIndent
public void setIndent(int indent)Sets the indent.- Parameters:
indent- the new indent
-
isJustifyLastLine
public boolean isJustifyLastLine()Checks if is justify last line.- Returns:
- true, if is justify last line
-
setJustifyLastLine
public void setJustifyLastLine(boolean justifyLastLine)Sets the justify last line.- Parameters:
justifyLastLine- the new justify last line
-
isMergeCell
public boolean isMergeCell()Checks if is merge cell.- Returns:
- true, if is merge cell
-
setMergeCell
public void setMergeCell(boolean mergeCell)Sets the merge cell.- Parameters:
mergeCell- the new merge cell
-
getReadingOrder
public int getReadingOrder()Gets the reading order.- Returns:
- the reading order
-
setReadingOrder
public void setReadingOrder(int readingOrder)Sets the reading order.- Parameters:
readingOrder- the new reading order
-
getRelativeIndent
public int getRelativeIndent()Gets the relative indent.- Returns:
- the relative indent
-
setRelativeIndent
public void setRelativeIndent(int relativeIndent)Sets the relative indent.- Parameters:
relativeIndent- the new relative indent
-
isShrinkToFit
public boolean isShrinkToFit()Checks if is shrink to fit.- Returns:
- true, if is shrink to fit
-
setShrinkToFit
public void setShrinkToFit(boolean shrinkToFit)Sets the shrink to fit.- Parameters:
shrinkToFit- the new shrink to fit
-
getTextRotation
public int getTextRotation()Gets the text rotation.- Returns:
- the text rotation
-
setTextRotation
public void setTextRotation(int textRotation)Sets the text rotation.- Parameters:
textRotation- the new text rotation
-
getVerticalAlignment
Gets the vertical alignment.- Returns:
- the vertical alignment
-
setVerticalAlignment
Sets the vertical alignment.- Parameters:
verticalAlignment- the new vertical alignment
-
isWrapText
public boolean isWrapText()Checks if is wrap text.- Returns:
- true, if is wrap text
-
setWrapText
public void setWrapText(boolean wrapText)Sets the wrap text.- Parameters:
wrapText- the new wrap text
-