Package jxl.format
Class Orientation
- java.lang.Object
-
- jxl.format.Orientation
-
public final class Orientation extends java.lang.ObjectEnumeration type which describes the orientation of data within a cell
-
-
Field Summary
Fields Modifier and Type Field Description static OrientationHORIZONTALCells with this specified orientation will be horizontalstatic OrientationMINUS_45Cells with this specified orientation will have their data presented with a rotation 45 degrees downwardsstatic OrientationMINUS_90Cells with this specified orientation will have their data presented with a rotation of 90 degrees downwardsstatic OrientationPLUS_45Cells with this specified orientation will have their data presented with a rotation 45 degrees upwardsstatic OrientationPLUS_90Cells with this specified orientation will have their data presented with a rotation of 90 degrees upwardsstatic OrientationSTACKEDCells with this specified orientation will have their text stacked downwards, but not rotatedstatic OrientationVERTICALCells with this specified orientation have their data presented vertically
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Gets the textual descriptionstatic OrientationgetOrientation(int val)Gets the alignment from the valueintgetValue()Accessor for the binary value
-
-
-
Field Detail
-
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 downwards
-
PLUS_45
public static Orientation PLUS_45
Cells with this specified orientation will have their data presented with a rotation 45 degrees upwards
-
MINUS_45
public static Orientation MINUS_45
Cells with this specified orientation will have their data presented with a rotation 45 degrees downwards
-
STACKED
public static Orientation STACKED
Cells with this specified orientation will have their text stacked downwards, but not rotated
-
-
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
-
-