Class Format
java.lang.Object
com.independentsoft.office.spreadsheet.styles.Format
The Class Format.
-
Constructor Summary
ConstructorsConstructorDescriptionFormat()Instantiates a new format.Format(InternalXMLStreamReader reader)Instantiates a new format.Format(InternalXMLStreamReader reader, String startLocalName, String startNamespace)Instantiates a new format. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the alignment.Gets the border.getFill()Gets the fill.getFont()Gets the font.Gets the number format.Gets the protection.voidsetAlignment(CellAlignment alignment)Sets the alignment.voidsetBorder(CellBorder border)Sets the border.voidSets the fill.voidSets the font.voidsetNumberFormat(NumberFormat numberFormat)Sets the number format.voidsetProtection(Protection protection)Sets the protection.toString()Returns a string representation of this format using the specified element name.
-
Constructor Details
-
Format
public Format()Instantiates a new format. -
Format
Instantiates a new format.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
Format
public Format(InternalXMLStreamReader reader, String startLocalName, String startNamespace) throws XMLStreamExceptionInstantiates a new format. The x14:dxf element (differential formats extension) reuses the main-namespace CT_Dxf content model, so the same parser runs with a different start element.- Parameters:
reader- the readerstartLocalName- the start local namestartNamespace- the start namespace- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toString
-
toString
Returns a string representation of this format using the specified element name.- Parameters:
elementName- the element name- Returns:
- the string
-
getAlignment
Gets the alignment.- Returns:
- the alignment
-
setAlignment
Sets the alignment.- Parameters:
alignment- the new alignment
-
getBorder
Gets the border.- Returns:
- the border
-
setBorder
Sets the border.- Parameters:
border- the new border
-
getFill
Gets the fill.- Returns:
- the fill
-
setFill
Sets the fill.- Parameters:
fill- the new fill
-
getFont
Gets the font.- Returns:
- the font
-
setFont
Sets the font.- Parameters:
font- the new font
-
getNumberFormat
Gets the number format.- Returns:
- the number format
-
setNumberFormat
Sets the number format.- Parameters:
numberFormat- the new number format
-
getProtection
Gets the protection.- Returns:
- the protection
-
setProtection
Sets the protection.- Parameters:
protection- the new protection
-