jxl.format
Class Pattern

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

public class Pattern
extends java.lang.Object

Enumeration class which contains the various patterns available within the standard Excel pattern palette


Field Summary
static Pattern GRAY_25
           
static Pattern GRAY_50
           
static Pattern GRAY_75
           
static Pattern NONE
           
private static Pattern[] patterns
          The list of patterns
static Pattern SOLID
           
private  java.lang.String string
          The textual description
private  int value
          The internal numerical representation of the colour
 
Constructor Summary
protected Pattern(int val, java.lang.String s)
          Private constructor
 
Method Summary
 java.lang.String getDescription()
          Gets the textual description
static Pattern getPattern(int val)
          Gets the pattern from the value
 int getValue()
          Gets the value of this pattern.
 
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 colour

string

private java.lang.String string
The textual description

patterns

private static Pattern[] patterns
The list of patterns

SOLID

public static final Pattern SOLID

NONE

public static final Pattern NONE

GRAY_75

public static final Pattern GRAY_75

GRAY_50

public static final Pattern GRAY_50

GRAY_25

public static final Pattern GRAY_25
Constructor Detail

Pattern

protected Pattern(int val,
                  java.lang.String s)
Private constructor
Parameters:
val -  
s -  
Method Detail

getValue

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

getDescription

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

getPattern

public static Pattern getPattern(int val)
Gets the pattern from the value
Parameters:
val -  
Returns:
the pattern with that value