jxl.format
Class Orientation

java.lang.Object
  |
  +--jxl.format.Orientation

public final class Orientation
extends java.lang.Object

Enumeration type which describes the orientation of data within a cell


Field Summary
static Orientation HORIZONTAL
          Cells with this specified orientation will be horizontal
static Orientation MINUS_90
          Cells with this specified orientation will have their data presented with a rotation of 90 degrees downwardswards
private static Orientation[] orientations
          The list of alignments
static Orientation PLUS_90
          Cells with this specified orientation will have their data presented with a rotation of 90 degrees upwards
private  java.lang.String string
          The textual description
private  int value
          The internal binary value which gets written to the generated Excel file
static Orientation VERTICAL
          Cells with this specified orientation have their data presented vertically
 
Constructor Summary
protected Orientation(int val, java.lang.String s)
          Constructor
 
Method Summary
 java.lang.String getDescription()
          Gets the textual description
static Orientation getOrientation(int val)
          Gets the alignment from the value
 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

orientations

private static Orientation[] orientations
The list of alignments

HORIZONTAL

public static Orientation HORIZONTAL
Cells with this specified orientation will be horizontal

VERTICAL

public static Orientation VERTICAL
Cells with this specified orientation have their data presented vertically

PLUS_90

public static Orientation PLUS_90
Cells with this specified orientation will have their data presented with a rotation of 90 degrees upwards

MINUS_90

public static Orientation MINUS_90
Cells with this specified orientation will have their data presented with a rotation of 90 degrees downwardswards
Constructor Detail

Orientation

protected Orientation(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

getOrientation

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