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
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 |
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
Colour
protected Colour(int val,
java.lang.String s)
- Private constructor
- Parameters:
val
- s
- the display string
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