Enumeration type which describes the orientation of data within a cell
Field Summary |
---|
public static Orientation | HORIZONTAL | Cells with this specified orientation will be horizontal |
public static Orientation | VERTICAL | Cells with this specified orientation have their data
presented vertically |
public static Orientation | PLUS_90 | Cells with this specified orientation will have their data
presented with a rotation of 90 degrees upwards |
public static Orientation | MINUS_90 | Cells with this specified orientation will have their data
presented with a rotation of 90 degrees downwards |
public static Orientation | PLUS_45 | Cells with this specified orientation will have their data
presented with a rotation 45 degrees upwards |
public static Orientation | MINUS_45 | Cells with this specified orientation will have their data
presented with a rotation 45 degrees downwards |
public static Orientation | STACKED | Cells with this specified orientation will have their text stacked
downwards, but not rotated |
Constructor: |
protected Orientation(int val,
String s) {
value = val; string = s;
Orientation[] oldorients = orientations;
orientations = new Orientation[oldorients.length + 1];
System.arraycopy(oldorients, 0, orientations, 0, oldorients.length);
orientations[oldorients.length] = this;
}
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from jxl.format.Orientation Detail: |
public String getDescription() {
return string;
}
Gets the textual description |
public static Orientation getOrientation(int val) {
for (int i = 0 ; i < orientations.length ; i++)
{
if (orientations[i].getValue() == val)
{
return orientations[i];
}
}
return HORIZONTAL;
}
Gets the alignment from the value |
public int getValue() {
return value;
}
Accessor for the binary value |