jxl.format
Class Colour

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

public class Colour
extends java.lang.Object

Enumeration class which contains the various colours available within the standard Excel colour palette


Field Summary
static Colour AQUA
           
static Colour BLACK
           
static Colour BLUE
           
static Colour BLUE_GREY
           
static Colour BRIGHT_GREEN
           
static Colour BROWN
           
private static Colour[] colours
          The list of colours
static Colour DARK_BLUE
           
static Colour DARK_GREEN
           
static Colour DARK_RED
           
static Colour DARK_TEAL
           
static Colour DARK_YELLOW
           
static Colour DEFAULT_BACKGROUND
           
static Colour GOLD
           
static Colour GRAY_25
           
static Colour GRAY_50
           
static Colour GRAY_80
           
static Colour GREEN
           
static Colour GREY_25_PERCENT
           
static Colour GREY_40_PERCENT
           
static Colour GREY_50_PERCENT
           
static Colour GREY_80_PERCENT
           
static Colour INDIGO
           
static Colour LAVENDER
           
static Colour LIGHT_BLUE
           
static Colour LIGHT_GREEN
           
static Colour LIGHT_ORANGE
           
static Colour LIGHT_TURQUOISE
           
static Colour LIGHT_YELLOW
           
static Colour LIME
           
static Colour OLIVE_GREEN
           
static Colour ORANGE
           
static Colour PALE_BLUE
           
static Colour PINK
           
static Colour PLUM
           
static Colour RED
           
static Colour ROSE
           
static Colour SEA_GREEN
           
static Colour SKY_BLUE
           
private  java.lang.String string
          The display string for the colour.
static Colour TAN
           
static Colour TEAL
           
static Colour TURQUOISE
           
static Colour UNKNOWN
           
private  int value
          The internal numerical representation of the colour
static Colour VERY_LIGHT_ORANGE
           
static Colour VERY_LIGHT_YELLOW
           
static Colour VIOLET
           
static Colour WHITE
           
static Colour YELLOW
           
 
Constructor Summary
protected Colour(int val, java.lang.String s)
          Private constructor
 
Method Summary
static Colour getColour(int val)
          Gets the colour from the value
 java.lang.String getDescription()
          Gets the string description for display purposes
 int getValue()
          Gets the value of this colour.
 
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 display string for the colour. Used when presenting the format information

colours

private static Colour[] colours
The list of colours

UNKNOWN

public static final Colour UNKNOWN

BLACK

public static final Colour BLACK

WHITE

public static final Colour WHITE

DEFAULT_BACKGROUND

public static final Colour DEFAULT_BACKGROUND

AQUA

public static final Colour AQUA

BROWN

public static final Colour BROWN

BLUE

public static final Colour BLUE

BLUE_GREY

public static final Colour BLUE_GREY

BRIGHT_GREEN

public static final Colour BRIGHT_GREEN

DARK_GREEN

public static final Colour DARK_GREEN

DARK_TEAL

public static final Colour DARK_TEAL

DARK_BLUE

public static final Colour DARK_BLUE

DARK_RED

public static final Colour DARK_RED

DARK_YELLOW

public static final Colour DARK_YELLOW

GOLD

public static final Colour GOLD

GREEN

public static final Colour GREEN

GREY_80_PERCENT

public static final Colour GREY_80_PERCENT

GREY_50_PERCENT

public static final Colour GREY_50_PERCENT

GREY_40_PERCENT

public static final Colour GREY_40_PERCENT

GREY_25_PERCENT

public static final Colour GREY_25_PERCENT

INDIGO

public static final Colour INDIGO

LIGHT_ORANGE

public static final Colour LIGHT_ORANGE

LIME

public static final Colour LIME

LIGHT_BLUE

public static final Colour LIGHT_BLUE

LIGHT_YELLOW

public static final Colour LIGHT_YELLOW

LIGHT_GREEN

public static final Colour LIGHT_GREEN

LIGHT_TURQUOISE

public static final Colour LIGHT_TURQUOISE

LAVENDER

public static final Colour LAVENDER

OLIVE_GREEN

public static final Colour OLIVE_GREEN

ORANGE

public static final Colour ORANGE

PALE_BLUE

public static final Colour PALE_BLUE

PINK

public static final Colour PINK

PLUM

public static final Colour PLUM

RED

public static final Colour RED

ROSE

public static final Colour ROSE

SKY_BLUE

public static final Colour SKY_BLUE

SEA_GREEN

public static final Colour SEA_GREEN

TEAL

public static final Colour TEAL

TURQUOISE

public static final Colour TURQUOISE

TAN

public static final Colour TAN

VERY_LIGHT_ORANGE

public static final Colour VERY_LIGHT_ORANGE

VERY_LIGHT_YELLOW

public static final Colour VERY_LIGHT_YELLOW

VIOLET

public static final Colour VIOLET

YELLOW

public static final Colour YELLOW

GRAY_80

public static final Colour GRAY_80

GRAY_50

public static final Colour GRAY_50

GRAY_25

public static final Colour GRAY_25
Constructor Detail

Colour

protected Colour(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 colour. 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

getColour

public static Colour getColour(int val)
Gets the colour from the value
Parameters:
val -  
Returns:
the colour with that value