jxl.format
Class Alignment
public class Alignment
extends java.lang.Object
Enumeration class which contains the various alignments for data within a
cell
static Alignment | CENTRE - Data in cells with this alignment will be centred
|
static Alignment | FILL - Data in cells with this alignment will fill the cell
|
static Alignment | GENERAL - The standard alignment
|
static Alignment | JUSTIFY - Data in cells with this alignment will be justified
|
static Alignment | LEFT - Data cells with this alignment will appear at the left hand edge of the
cell
|
static Alignment | RIGHT - Data in cells with this alignment will be right aligned
|
CENTRE
public static Alignment CENTRE
Data in cells with this alignment will be centred
FILL
public static Alignment FILL
Data in cells with this alignment will fill the cell
GENERAL
public static Alignment GENERAL
The standard alignment
JUSTIFY
public static Alignment JUSTIFY
Data in cells with this alignment will be justified
LEFT
public static Alignment LEFT
Data cells with this alignment will appear at the left hand edge of the
cell
RIGHT
public static Alignment RIGHT
Data in cells with this alignment will be right aligned
getAlignment
public static Alignment getAlignment(int val)
Gets the alignment from the value
- the alignment with that value
getDescription
public String getDescription()
Gets the string description of this alignment
getValue
public int getValue()
Gets the value of this alignment. This is the value that is written to
the generated Excel file