Package jxl.format
Class Colour
java.lang.Object
jxl.format.Colour
- Direct Known Subclasses:
Colour
Enumeration class which contains the various colours available within
the standard Excel colour palette
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
static final Colour
-
Method Summary
Modifier and TypeMethodDescriptionstatic Colour[]
Returns all available colours - used when generating the default paletteint
Deprecated.use getDefaultRGB insteadint
Deprecated.use getDefaultRGB insteadint
Deprecated.use getDefaultRGB insteadReturns the default RGB of the colourGets the string description for display purposesstatic Colour
getInternalColour
(int val) Gets the internal colour from the valueint
getValue()
Gets the value of this colour.
-
Field Details
-
UNKNOWN
-
BLACK
-
WHITE
-
DEFAULT_BACKGROUND1
-
DEFAULT_BACKGROUND
-
PALETTE_BLACK
-
RED
-
BRIGHT_GREEN
-
BLUE
-
YELLOW
-
PINK
-
TURQUOISE
-
DARK_RED
-
GREEN
-
DARK_BLUE
-
DARK_YELLOW
-
VIOLET
-
TEAL
-
GREY_25_PERCENT
-
GREY_50_PERCENT
-
PERIWINKLE
-
PLUM2
-
IVORY
-
LIGHT_TURQUOISE2
-
DARK_PURPLE
-
CORAL
-
OCEAN_BLUE
-
ICE_BLUE
-
DARK_BLUE2
-
PINK2
-
YELLOW2
-
TURQOISE2
-
VIOLET2
-
DARK_RED2
-
TEAL2
-
BLUE2
-
SKY_BLUE
-
LIGHT_TURQUOISE
-
LIGHT_GREEN
-
VERY_LIGHT_YELLOW
-
PALE_BLUE
-
ROSE
-
LAVENDER
-
TAN
-
LIGHT_BLUE
-
AQUA
-
LIME
-
GOLD
-
LIGHT_ORANGE
-
ORANGE
-
BLUE_GREY
-
GREY_40_PERCENT
-
DARK_TEAL
-
SEA_GREEN
-
DARK_GREEN
-
OLIVE_GREEN
-
BROWN
-
PLUM
-
INDIGO
-
GREY_80_PERCENT
-
AUTOMATIC
-
GRAY_80
-
GRAY_50
-
GRAY_25
-
-
Method Details
-
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
Gets the string description for display purposes- Returns:
- the string description
-
getDefaultRed
public int getDefaultRed()Deprecated.use getDefaultRGB insteadGets the default red content of this colour. Used when writing the default colour palette- Returns:
- the red content of this colour
-
getDefaultGreen
public int getDefaultGreen()Deprecated.use getDefaultRGB insteadGets the default green content of this colour. Used when writing the default colour palette- Returns:
- the green content of this colour
-
getDefaultBlue
public int getDefaultBlue()Deprecated.use getDefaultRGB insteadGets the default blue content of this colour. Used when writing the default colour palette- Returns:
- the blue content of this colour
-
getDefaultRGB
Returns the default RGB of the colour- Returns:
- the default RGB
-
getInternalColour
Gets the internal colour from the value- Parameters:
val
-- Returns:
- the colour with that value
-
getAllColours
Returns all available colours - used when generating the default palette- Returns:
- all available colours
-