xl.format
Class Color

System.Object
  extended byxl.format.Color
Direct Known Subclasses:
Color

public class Color
extends System.Object

Enumeration class which contains the various colors available within the standard Excel color palette


Field Summary
static Color AQUA
           
static Color AUTOMATIC
           
static Color BLACK
           
static Color BLUE
           
static Color BLUE_GREY
           
static Color BLUE2
           
static Color BRIGHT_GREEN
           
static Color BROWN
           
static Color CORAL
           
static Color DARK_BLUE
           
static Color DARK_BLUE2
           
static Color DARK_GREEN
           
static Color DARK_PURPLE
           
static Color DARK_RED
           
static Color DARK_RED2
           
static Color DARK_TEAL
           
static Color DARK_YELLOW
           
static Color DEFAULT_BACKGROUND
           
static Color DEFAULT_BACKGROUND1
           
static Color GOLD
           
static Color GRAY_25
           
static Color GRAY_50
           
static Color GRAY_80
           
static Color GREEN
           
static Color GREY_25_PERCENT
           
static Color GREY_40_PERCENT
           
static Color GREY_50_PERCENT
           
static Color GREY_80_PERCENT
           
static Color ICE_BLUE
           
static Color INDIGO
           
static Color IVORY
           
static Color LAVENDER
           
static Color LIGHT_BLUE
           
static Color LIGHT_GREEN
           
static Color LIGHT_ORANGE
           
static Color LIGHT_TURQUOISE
           
static Color LIGHT_TURQUOISE2
           
static Color LIME
           
static Color OCEAN_BLUE
           
static Color OLIVE_GREEN
           
static Color ORANGE
           
static Color PALE_BLUE
           
static Color PALETTE_BLACK
           
static Color PERIWINKLE
           
static Color PINK
           
static Color PINK2
           
static Color PLUM
           
static Color PLUM2
           
static Color RED
           
static Color ROSE
           
static Color SEA_GREEN
           
static Color SKY_BLUE
           
static Color TAN
           
static Color TEAL
           
static Color TEAL2
           
static Color TURQOISE2
           
static Color TURQUOISE
           
static Color UNKNOWN
           
static Color VERY_LIGHT_YELLOW
           
static Color VIOLET
           
static Color VIOLET2
           
static Color WHITE
           
static Color YELLOW
           
static Color YELLOW2
           
 
Method Summary
static Color[] getAllColors()
          Returns all available colors - used when generating the default palette
 int getDefaultBlue()
          Deprecated. use getDefaultRGB instead
 int getDefaultGreen()
          Deprecated. use getDefaultRGB instead
 int getDefaultRed()
          Deprecated. use getDefaultRGB instead
 RGB getDefaultRGB()
          Returns the default RGB of the color
 System.String getDescription()
          Gets the string description for display purposes
static Color getInternalColor(int val)
          Gets the internal color from the value
 int getValue()
          Gets the value of this color.
 
Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static readonly Color UNKNOWN

BLACK

public static readonly Color BLACK

WHITE

public static readonly Color WHITE

DEFAULT_BACKGROUND1

public static readonly Color DEFAULT_BACKGROUND1

DEFAULT_BACKGROUND

public static readonly Color DEFAULT_BACKGROUND

PALETTE_BLACK

public static readonly Color PALETTE_BLACK

RED

public static readonly Color RED

BRIGHT_GREEN

public static readonly Color BRIGHT_GREEN

BLUE

public static readonly Color BLUE

YELLOW

public static readonly Color YELLOW

PINK

public static readonly Color PINK

TURQUOISE

public static readonly Color TURQUOISE

DARK_RED

public static readonly Color DARK_RED

GREEN

public static readonly Color GREEN

DARK_BLUE

public static readonly Color DARK_BLUE

DARK_YELLOW

public static readonly Color DARK_YELLOW

VIOLET

public static readonly Color VIOLET

TEAL

public static readonly Color TEAL

GREY_25_PERCENT

public static readonly Color GREY_25_PERCENT

GREY_50_PERCENT

public static readonly Color GREY_50_PERCENT

PERIWINKLE

public static readonly Color PERIWINKLE

PLUM2

public static readonly Color PLUM2

IVORY

public static readonly Color IVORY

LIGHT_TURQUOISE2

public static readonly Color LIGHT_TURQUOISE2

DARK_PURPLE

public static readonly Color DARK_PURPLE

CORAL

public static readonly Color CORAL

OCEAN_BLUE

public static readonly Color OCEAN_BLUE

ICE_BLUE

public static readonly Color ICE_BLUE

DARK_BLUE2

public static readonly Color DARK_BLUE2

PINK2

public static readonly Color PINK2

YELLOW2

public static readonly Color YELLOW2

TURQOISE2

public static readonly Color TURQOISE2

VIOLET2

public static readonly Color VIOLET2

DARK_RED2

public static readonly Color DARK_RED2

TEAL2

public static readonly Color TEAL2

BLUE2

public static readonly Color BLUE2

SKY_BLUE

public static readonly Color SKY_BLUE

LIGHT_TURQUOISE

public static readonly Color LIGHT_TURQUOISE

LIGHT_GREEN

public static readonly Color LIGHT_GREEN

VERY_LIGHT_YELLOW

public static readonly Color VERY_LIGHT_YELLOW

PALE_BLUE

public static readonly Color PALE_BLUE

ROSE

public static readonly Color ROSE

LAVENDER

public static readonly Color LAVENDER

TAN

public static readonly Color TAN

LIGHT_BLUE

public static readonly Color LIGHT_BLUE

AQUA

public static readonly Color AQUA

LIME

public static readonly Color LIME

GOLD

public static readonly Color GOLD

LIGHT_ORANGE

public static readonly Color LIGHT_ORANGE

ORANGE

public static readonly Color ORANGE

BLUE_GREY

public static readonly Color BLUE_GREY

GREY_40_PERCENT

public static readonly Color GREY_40_PERCENT

DARK_TEAL

public static readonly Color DARK_TEAL

SEA_GREEN

public static readonly Color SEA_GREEN

DARK_GREEN

public static readonly Color DARK_GREEN

OLIVE_GREEN

public static readonly Color OLIVE_GREEN

BROWN

public static readonly Color BROWN

PLUM

public static readonly Color PLUM

INDIGO

public static readonly Color INDIGO

GREY_80_PERCENT

public static readonly Color GREY_80_PERCENT

AUTOMATIC

public static readonly Color AUTOMATIC

GRAY_80

public static readonly Color GRAY_80

GRAY_50

public static readonly Color GRAY_50

GRAY_25

public static readonly Color GRAY_25
Method Detail

getValue

public int getValue()
Gets the value of this color. This is the value that is written to the generated Excel file

Returns:
the binary value

getDescription

public System.String getDescription()
Gets the string description for display purposes

Returns:
the string description

getDefaultRed

public int getDefaultRed()
Deprecated. use getDefaultRGB instead

Gets the default red content of this color. Used when writing the default color palette

Returns:
the red content of this color

getDefaultGreen

public int getDefaultGreen()
Deprecated. use getDefaultRGB instead

Gets the default green content of this color. Used when writing the default color palette

Returns:
the green content of this color

getDefaultBlue

public int getDefaultBlue()
Deprecated. use getDefaultRGB instead

Gets the default blue content of this color. Used when writing the default color palette

Returns:
the blue content of this color

getDefaultRGB

public RGB getDefaultRGB()
Returns the default RGB of the color

Returns:
the default RGB

getInternalColor

public static Color getInternalColor(int val)
Gets the internal color from the value

Parameters:
val -
Returns:
the color with that value

getAllColors

public static Color[] getAllColors()
Returns all available colors - used when generating the default palette

Returns:
all available colors