jxl.format
Class ScriptStyle

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

public final class ScriptStyle
extends java.lang.Object

Enumeration class which contains the various script styles available within the standard Excel ScriptStyle palette


Field Summary
static ScriptStyle NORMAL_SCRIPT
           
private  java.lang.String string
          The display string for the script style.
private static ScriptStyle[] styles
          The list of ScriptStyles
static ScriptStyle SUBSCRIPT
           
static ScriptStyle SUPERSCRIPT
           
private  int value
          The internal numerical representation of the ScriptStyle
 
Constructor Summary
protected ScriptStyle(int val, java.lang.String s)
          Private constructor
 
Method Summary
 java.lang.String getDescription()
          Gets the string description for display purposes
static ScriptStyle getStyle(int val)
          Gets the ScriptStyle from the value
 int getValue()
          Gets the value of this style.
 
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 numerical representation of the ScriptStyle

string

private java.lang.String string
The display string for the script style. Used when presenting the format information

styles

private static ScriptStyle[] styles
The list of ScriptStyles

NORMAL_SCRIPT

public static final ScriptStyle NORMAL_SCRIPT

SUPERSCRIPT

public static final ScriptStyle SUPERSCRIPT

SUBSCRIPT

public static final ScriptStyle SUBSCRIPT
Constructor Detail

ScriptStyle

protected ScriptStyle(int val,
                      java.lang.String s)
Private constructor
Parameters:
val -  
s - the display string
Method Detail

getValue

public int getValue()
Gets the value of this style. This is the value that is written to the generated Excel file
Returns:
the binary value

getDescription

public java.lang.String getDescription()
Gets the string description for display purposes
Returns:
the string description

getStyle

public static ScriptStyle getStyle(int val)
Gets the ScriptStyle from the value
Parameters:
val -  
Returns:
the ScriptStyle with that value