Package jxl.format
Class Alignment
- java.lang.Object
-
- jxl.format.Alignment
-
- Direct Known Subclasses:
Alignment
public class Alignment extends java.lang.ObjectEnumeration class which contains the various alignments for data within a cell
-
-
Field Summary
Fields Modifier and Type Field Description static AlignmentCENTREData in cells with this alignment will be centredstatic AlignmentFILLData in cells with this alignment will fill the cellstatic AlignmentGENERALThe standard alignmentstatic AlignmentJUSTIFYData in cells with this alignment will be justifiedstatic AlignmentLEFTData cells with this alignment will appear at the left hand edge of the cellstatic AlignmentRIGHTData in cells with this alignment will be right aligned
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlignmentgetAlignment(int val)Gets the alignment from the valuejava.lang.StringgetDescription()Gets the string description of this alignmentintgetValue()Gets the value of this alignment.
-
-
-
Field Detail
-
GENERAL
public static Alignment GENERAL
The standard alignment
-
LEFT
public static Alignment LEFT
Data cells with this alignment will appear at the left hand edge of the cell
-
CENTRE
public static Alignment CENTRE
Data in cells with this alignment will be centred
-
RIGHT
public static Alignment RIGHT
Data in cells with this alignment will be right aligned
-
FILL
public static Alignment FILL
Data in cells with this alignment will fill the cell
-
JUSTIFY
public static Alignment JUSTIFY
Data in cells with this alignment will be justified
-
-
Method Detail
-
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
public java.lang.String getDescription()
Gets the string description of this alignment- Returns:
- the string description
-
getAlignment
public static Alignment getAlignment(int val)
Gets the alignment from the value- Parameters:
val-- Returns:
- the alignment with that value
-
-