jxl.format
Class VerticalAlignment

java.lang.Object
  |
  +--jxl.format.VerticalAlignment
Direct Known Subclasses:
VerticalAlignment

public class VerticalAlignment
extends java.lang.Object

Enumeration type which describes the vertical alignment of data within a cell


Field Summary
private static VerticalAlignment[] alignments
          The list of alignments
static VerticalAlignment BOTTOM
          Cells with this specified vertical alignment will have their data aligned at the bottom
static VerticalAlignment CENTRE
          Cells with this specified vertical alignment will have their data aligned centrally
static VerticalAlignment JUSTIFY
          Cells with this specified vertical alignment will have their data justified
private  java.lang.String string
          The textual description
static VerticalAlignment TOP
          Cells with this specified vertical alignment will have their data aligned at the top
private  int value
          The internal binary value which gets written to the generated Excel file
 
Constructor Summary
protected VerticalAlignment(int val, java.lang.String s)
          Constructor
 
Method Summary
static VerticalAlignment getAlignment(int val)
          Gets the alignment from the value
 java.lang.String getDescription()
          Gets the textual description
 int getValue()
          Accessor for the binary value
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

value

private int value
The internal binary value which gets written to the generated Excel file

string

private java.lang.String string
The textual description

alignments

private static VerticalAlignment[] alignments
The list of alignments

TOP

public static VerticalAlignment TOP
Cells with this specified vertical alignment will have their data aligned at the top

CENTRE

public static VerticalAlignment CENTRE
Cells with this specified vertical alignment will have their data aligned centrally

BOTTOM

public static VerticalAlignment BOTTOM
Cells with this specified vertical alignment will have their data aligned at the bottom

JUSTIFY

public static VerticalAlignment JUSTIFY
Cells with this specified vertical alignment will have their data justified
Constructor Detail

VerticalAlignment

protected VerticalAlignment(int val,
                            java.lang.String s)
Constructor
Parameters:
val -  
Method Detail

getValue

public int getValue()
Accessor for the binary value
Returns:
the internal binary value

getDescription

public java.lang.String getDescription()
Gets the textual description

getAlignment

public static VerticalAlignment getAlignment(int val)
Gets the alignment from the value
Parameters:
val -  
Returns:
the alignment with that value