Package jxl.format
Class Alignment
java.lang.Object
jxl.format.Alignment
- Direct Known Subclasses:
Alignment
Enumeration class which contains the various alignments for data within a
cell
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Alignment
Data in cells with this alignment will be centredstatic Alignment
Data in cells with this alignment will fill the cellstatic Alignment
The standard alignmentstatic Alignment
Data in cells with this alignment will be justifiedstatic Alignment
Data cells with this alignment will appear at the left hand edge of the cellstatic Alignment
Data in cells with this alignment will be right aligned -
Method Summary
Modifier and TypeMethodDescriptionstatic Alignment
getAlignment
(int val) Gets the alignment from the valueGets the string description of this alignmentint
getValue()
Gets the value of this alignment.
-
Field Details
-
GENERAL
The standard alignment -
LEFT
Data cells with this alignment will appear at the left hand edge of the cell -
CENTRE
Data in cells with this alignment will be centred -
RIGHT
Data in cells with this alignment will be right aligned -
FILL
Data in cells with this alignment will fill the cell -
JUSTIFY
Data in cells with this alignment will be justified
-
-
Method Details
-
getValue
public int getValue()Gets the value of this alignment. This is the value that is written to the generated Excel file- Returns:
- the binary value
-
getDescription
Gets the string description of this alignment- Returns:
- the string description
-
getAlignment
Gets the alignment from the value- Parameters:
val
-- Returns:
- the alignment with that value
-