Package | Description |
---|---|
com.hfg.graphics | |
com.hfg.html |
The HTML classes in this package can be used to construct HTML or XHTML in an object-oriented fashion.
|
com.hfg.html.attribute |
Modifier and Type | Field and Description |
---|---|
static HTMLColor |
ContrastingColorPalette.AMETHYST
(240, 163, 255)
|
static HTMLColor |
SimpleColorPalette.AQUA
|
static HTMLColor |
ContrastingColorPalette.BLUE
( 0, 117, 220)
|
static HTMLColor |
ContrastingColorPalette.CARAMEL
(153, 63, 0)
|
static HTMLColor |
SimpleColorPalette.CHARTREUSE
|
static HTMLColor |
SimpleColorPalette.CHOCOLATE
|
static HTMLColor |
SimpleColorPalette.CORNFLOWER_BLUE
|
static HTMLColor |
ContrastingColorPalette.DAMSOM
( 76, 0, 92)
|
static HTMLColor |
SimpleColorPalette.DARK_CYAN
|
static HTMLColor |
SimpleColorPalette.DARK_ORANGE
|
static HTMLColor |
SimpleColorPalette.DARK_SALMON
|
static HTMLColor |
SimpleColorPalette.DARK_SLATE_GRAY
|
static HTMLColor |
SimpleColorPalette.DODGER_BLUE
|
static HTMLColor |
ContrastingColorPalette.EBONY
( 25, 25, 25)
|
static HTMLColor |
ContrastingColorPalette.FOREST
( 0, 92, 49)
|
static HTMLColor |
SimpleColorPalette.FOREST_GREEN
|
static HTMLColor |
SimpleColorPalette.FUCHSIA
|
static HTMLColor |
SimpleColorPalette.GOLD
|
static HTMLColor |
ContrastingColorPalette.GREEN
( 43, 206, 72)
|
static HTMLColor |
SimpleColorPalette.GREY
|
static HTMLColor |
ContrastingColorPalette.HONEYDEW
(255, 204, 153)
|
static HTMLColor |
SimpleColorPalette.HOT_PINK
|
static HTMLColor |
ContrastingColorPalette.IRON
(128, 128, 128)
|
static HTMLColor |
ContrastingColorPalette.JADE
(148, 255, 181)
|
static HTMLColor |
ContrastingColorPalette.KHAKI
(143, 124, 0)
|
static HTMLColor |
SimpleColorPalette.LIGHT_CORAL
|
static HTMLColor |
SimpleColorPalette.LIGHT_GRAY
|
static HTMLColor |
ContrastingColorPalette.LIME
(157, 204, 0)
|
static HTMLColor |
ContrastingColorPalette.MALLOW
(194, 0, 136)
|
static HTMLColor |
ContrastingColorPalette.NAVY
( 0, 51, 128)
|
static HTMLColor |
SimpleColorPalette.NAVY
|
static HTMLColor |
SimpleColorPalette.OLIVE_DRAB
|
static HTMLColor |
SimpleColorPalette.ORANGE_RED
|
static HTMLColor |
ContrastingColorPalette.ORPIMENT
(255, 164, 5)
|
static HTMLColor |
ContrastingColorPalette.PINK
(255, 168, 187)
|
static HTMLColor |
ContrastingColorPalette.QUAGMIRE
( 66, 102, 0)
|
static HTMLColor |
ContrastingColorPalette.RED
(255, 0, 16)
|
static HTMLColor |
SimpleColorPalette.RED
|
static HTMLColor |
SimpleColorPalette.SADDLE_BROWN
|
static HTMLColor |
ContrastingColorPalette.SKY
( 94, 241, 242)
|
static HTMLColor |
SimpleColorPalette.SLATE_BLUE
|
static HTMLColor |
SimpleColorPalette.SPRING_GREEN
|
static HTMLColor |
ContrastingColorPalette.TURQUOISE
( 0, 153, 143)
|
static HTMLColor |
ContrastingColorPalette.URANIUM
(224, 255, 102)
|
static HTMLColor |
ContrastingColorPalette.VIOLET
(116, 10, 255)
|
static HTMLColor |
ContrastingColorPalette.WINE
(153, 0, 0)
|
static HTMLColor |
ContrastingColorPalette.XANTHIN
(255, 255, 128)
|
static HTMLColor |
ContrastingColorPalette.YELLOW
(255, 255, 0)
|
static HTMLColor |
SimpleColorPalette.YELLOW
|
static HTMLColor |
SimpleColorPalette.YELLOW_GREEN
|
static HTMLColor |
ContrastingColorPalette.ZINNIA
(255, 80, 5)
|
Modifier and Type | Method and Description |
---|---|
HTMLColor |
ColorPalette.nextColor() |
HTMLColor |
ColorPaletteImpl.nextColor()
Returns the next color from the palette or loops back to the beginning color if all colors have been used.
|
Modifier and Type | Method and Description |
---|---|
List<HTMLColor> |
ColorScale.getColors() |
List<HTMLColor> |
ColorPalette.getColorValues() |
List<HTMLColor> |
ColorPaletteImpl.getColorValues() |
Constructor and Description |
---|
ColorPaletteImpl(Collection<? extends HTMLColor> inColors) |
Modifier and Type | Method and Description |
---|---|
Body |
Body.setBackgroundColor(HTMLColor inValue)
Sets the background color for the page.
|
Table |
Table.setBackgroundColor(HTMLColor inValue)
Sets the background color for the table.
|
Td |
Td.setBackgroundColor(HTMLColor inValue)
Sets the background color for the table cell.
|
Th |
Th.setBackgroundColor(HTMLColor inValue)
Sets the background color for the header cell.
|
Tr |
Tr.setBackgroundColor(HTMLColor inValue)
Sets the background color for the table row.
|
Modifier and Type | Field and Description |
---|---|
static HTMLColor |
HTMLColor.ALICE_BLUE
(240, 248, 255)
|
static HTMLColor |
HTMLColor.ANTIQUE_WHITE
(250, 235, 215)
|
static HTMLColor |
HTMLColor.AQUA
(0, 255, 255)
|
static HTMLColor |
HTMLColor.AQUAMARINE
(127, 255, 212)
|
static HTMLColor |
HTMLColor.AZURE
(240, 255, 255)
|
static HTMLColor |
HTMLColor.BEIGE
(245, 245, 220)
|
static HTMLColor |
HTMLColor.BISQUE
(255, 228, 196)
|
static HTMLColor |
HTMLColor.BLACK
( 0, 0, 0)
|
static HTMLColor |
HTMLColor.BLANCHED_ALMOND
(255, 235, 205)
|
static HTMLColor |
HTMLColor.BLUE
( 0, 0, 255)
|
static HTMLColor |
HTMLColor.BLUE_VIOLET
(138, 43, 226)
|
static HTMLColor |
HTMLColor.BROWN
(165, 42, 42)
|
static HTMLColor |
HTMLColor.BURLYWOOD
(222, 184, 135)
|
static HTMLColor |
HTMLColor.CADET_BLUE
( 95, 158, 160)
|
static HTMLColor |
HTMLColor.CHARTREUSE
(127, 255, 0)
|
static HTMLColor |
HTMLColor.CHOCOLATE
(210, 105, 30)
|
static HTMLColor |
HTMLColor.CORAL
(255, 127, 80)
|
static HTMLColor |
HTMLColor.CORNFLOWER_BLUE
(100, 149, 237)
|
static HTMLColor |
HTMLColor.CORNSILK
(255, 248, 220)
|
static HTMLColor |
HTMLColor.CYAN
( 0, 255, 255)
|
static HTMLColor |
HTMLColor.DARK_BLUE
( 0, 0, 139)
|
static HTMLColor |
HTMLColor.DARK_CYAN
( 0, 139, 139)
|
static HTMLColor |
HTMLColor.DARK_GOLDENROD
(184, 134, 11)
|
static HTMLColor |
HTMLColor.DARK_GREEN
( 0, 100, 0)
|
static HTMLColor |
HTMLColor.DARK_KHAKI
(189, 183, 107)
|
static HTMLColor |
HTMLColor.DARK_MAGENTA
(139, 0, 139)
|
static HTMLColor |
HTMLColor.DARK_OLIVE_GREEN
( 85, 107, 47)
|
static HTMLColor |
HTMLColor.DARK_ORANGE
(255, 140, 0)
|
static HTMLColor |
HTMLColor.DARK_ORCHID
(153, 50, 204)
|
static HTMLColor |
HTMLColor.DARK_RED
(139, 0, 0)
|
static HTMLColor |
HTMLColor.DARK_SALMON
(233, 150, 122)
|
static HTMLColor |
HTMLColor.DARK_SEA_GREEN
(143, 188, 143)
|
static HTMLColor |
HTMLColor.DARK_SLATE_BLUE
( 72, 61, 139)
|
static HTMLColor |
HTMLColor.DARK_SLATE_GRAY
( 47, 79, 79)
|
static HTMLColor |
HTMLColor.DARK_TURQUOISE
( 0, 206, 209)
|
static HTMLColor |
HTMLColor.DARK_VIOLET
(148, 0, 211)
|
static HTMLColor |
HTMLColor.DEEP_PINK
(255, 20, 147)
|
static HTMLColor |
HTMLColor.DEEP_SKY_BLUE
( 0, 191, 255)
|
static HTMLColor |
HTMLColor.DIM_GRAY
(105, 105, 105)
|
static HTMLColor |
HTMLColor.DODGER_BLUE
( 30, 144, 255)
|
static HTMLColor |
HTMLColor.FIREBRICK
(178, 34, 34)
|
static HTMLColor |
HTMLColor.FLORAL_WHITE
(255, 250, 240)
|
static HTMLColor |
HTMLColor.FOREST_GREEN
( 34, 139, 34)
|
static HTMLColor |
HTMLColor.FUCHSIA
(255, 0, 255)
|
static HTMLColor |
HTMLColor.GAINSBORO
(220, 220, 220)
|
static HTMLColor |
HTMLColor.GHOST_WHITE
(248, 248, 255)
|
static HTMLColor |
HTMLColor.GOLD
(255, 215, 0)
|
static HTMLColor |
HTMLColor.GOLDENROD
(218, 165, 32)
|
static HTMLColor |
HTMLColor.GREEN
( 0, 255, 0)
|
static HTMLColor |
HTMLColor.GREEN_YELLOW
(173, 255, 47)
|
static HTMLColor |
HTMLColor.GREY
(190, 190, 190)
|
static HTMLColor |
HTMLColor.HONEYDEW
(240, 255, 240)
|
static HTMLColor |
HTMLColor.HOT_PINK
(255, 105, 180)
|
static HTMLColor |
HTMLColor.INDIAN_RED
(205, 92, 92)
|
static HTMLColor |
HTMLColor.IVORY
(255, 255, 240)
|
static HTMLColor |
HTMLColor.LAVENDER
(230, 230, 250)
|
static HTMLColor |
HTMLColor.LAVENDER_BLUSH
(255, 240, 245)
|
static HTMLColor |
HTMLColor.LAWN_GREEN
(124, 252, 0)
|
static HTMLColor |
HTMLColor.LEMON_CHIFFON
(255, 250, 205)
|
static HTMLColor |
HTMLColor.LIGHT_BLUE
(173, 216, 230)
|
static HTMLColor |
HTMLColor.LIGHT_CORAL
(240, 128, 128)
|
static HTMLColor |
HTMLColor.LIGHT_CYAN
(224, 255, 255)
|
static HTMLColor |
HTMLColor.LIGHT_GOLDENROD
(238, 221, 130)
|
static HTMLColor |
HTMLColor.LIGHT_GRAY
(211, 211, 211)
|
static HTMLColor |
HTMLColor.LIGHT_GREEN
(144, 238, 144)
|
static HTMLColor |
HTMLColor.LIGHT_PINK
(255, 182, 193)
|
static HTMLColor |
HTMLColor.LIGHT_SALMON
(255, 160, 122)
|
static HTMLColor |
HTMLColor.LIGHT_SEA_GREEN
( 32, 178, 170)
|
static HTMLColor |
HTMLColor.LIGHT_SKY_BLUE
(135, 206, 250)
|
static HTMLColor |
HTMLColor.LIGHT_SLATE_BLUE
(132, 112, 255)
|
static HTMLColor |
HTMLColor.LIGHT_SLATE_GRAY
(119, 136, 153)
|
static HTMLColor |
HTMLColor.LIGHT_STEEL_BLUE
(176, 196, 222)
|
static HTMLColor |
HTMLColor.LIGHT_YELLOW
(255, 255, 224)
|
static HTMLColor |
HTMLColor.LIME_GREEN
( 50, 205, 50)
|
static HTMLColor |
HTMLColor.LINEN
(250, 240, 230)
|
static HTMLColor |
HTMLColor.LT_GOLDENROD_YELLOW
(250, 250, 210)
|
static HTMLColor |
HTMLColor.MAGENTA
(255, 0, 255)
|
static HTMLColor |
HTMLColor.MAROON
(176, 48, 96)
|
static HTMLColor |
HTMLColor.MED_SPRING_GREEN
( 0, 250, 154)
|
static HTMLColor |
HTMLColor.MEDIUM_AQUAMARINE
(102, 205, 170)
|
static HTMLColor |
HTMLColor.MEDIUM_BLUE
( 0, 0, 205)
|
static HTMLColor |
HTMLColor.MEDIUM_ORCHID
(186, 85, 211)
|
static HTMLColor |
HTMLColor.MEDIUM_PURPLE
(147, 112, 219)
|
static HTMLColor |
HTMLColor.MEDIUM_SEA_GREEN
( 60, 179, 113)
|
static HTMLColor |
HTMLColor.MEDIUM_SLATE_BLUE
(123, 104, 238)
|
static HTMLColor |
HTMLColor.MEDIUM_TURQUOISE
( 72, 209, 204)
|
static HTMLColor |
HTMLColor.MEDIUM_VIOLET_RED
(199, 21, 133)
|
static HTMLColor |
HTMLColor.MIDNIGHT_BLUE
( 25, 25, 112)
|
static HTMLColor |
HTMLColor.MINT_CREAM
(245, 255, 250)
|
static HTMLColor |
HTMLColor.MISTY_ROSE
(255, 228, 225)
|
static HTMLColor |
HTMLColor.MOCCASIN
(255, 228, 181)
|
static HTMLColor |
HTMLColor.NAVAJO_WHITE
(255, 222, 173)
|
static HTMLColor |
HTMLColor.NAVY
( 0, 0, 125)
|
static HTMLColor |
HTMLColor.OLD_LACE
(253, 245, 230)
|
static HTMLColor |
HTMLColor.OLIVE_DRAB
(107, 142, 35)
|
static HTMLColor |
HTMLColor.ORANGE
(255, 165, 0)
|
static HTMLColor |
HTMLColor.ORANGE_RED
(255, 69, 0)
|
static HTMLColor |
HTMLColor.ORCHID
(218, 112, 214)
|
static HTMLColor |
HTMLColor.PALE_GOLDENROD
(238, 232, 170)
|
static HTMLColor |
HTMLColor.PALE_GREEN
(152, 251, 152)
|
static HTMLColor |
HTMLColor.PALE_TURQUOISE
(175, 238, 238)
|
static HTMLColor |
HTMLColor.PALE_VIOLET_RED
(219, 112, 147)
|
static HTMLColor |
HTMLColor.PAPAYA_WHIP
(255, 239, 213)
|
static HTMLColor |
HTMLColor.PEACH_PUFF
(255, 218, 185)
|
static HTMLColor |
HTMLColor.PERU
(205, 133, 63)
|
static HTMLColor |
HTMLColor.PINK
(255, 192, 203)
|
static HTMLColor |
HTMLColor.PLUM
(221, 160, 221)
|
static HTMLColor |
HTMLColor.POWDER_BLUE
(176, 224, 230)
|
static HTMLColor |
HTMLColor.PURPLE
(160, 32, 240)
|
static HTMLColor |
HTMLColor.RED
(255, 0, 0)
|
static HTMLColor |
HTMLColor.ROSY_BROWN
(188, 143, 143)
|
static HTMLColor |
HTMLColor.ROYAL_BLUE
( 65, 105, 225)
|
static HTMLColor |
HTMLColor.SADDLE_BROWN
(139, 69, 19)
|
static HTMLColor |
HTMLColor.SALMON
(250, 128, 114)
|
static HTMLColor |
HTMLColor.SANDY_BROWN
(244, 164, 96)
|
static HTMLColor |
HTMLColor.SEA_GREEN
( 46, 139, 87)
|
static HTMLColor |
HTMLColor.SEASHELL
(255, 245, 238)
|
static HTMLColor |
HTMLColor.SIENNA
(160, 82, 45)
|
static HTMLColor |
HTMLColor.SKY_BLUE
(135, 206, 235)
|
static HTMLColor |
HTMLColor.SLATE_BLUE
(106, 90, 205)
|
static HTMLColor |
HTMLColor.SLATE_GRAY
(112, 128, 144)
|
static HTMLColor |
HTMLColor.SNOW
(255, 250, 250)
|
static HTMLColor |
HTMLColor.SPRING_GREEN
( 0, 255, 127)
|
static HTMLColor |
HTMLColor.STEEL_BLUE
( 70, 130, 180)
|
static HTMLColor |
HTMLColor.TAN
(210, 180, 140)
|
static HTMLColor |
HTMLColor.THISTLE
(216, 191, 216)
|
static HTMLColor |
HTMLColor.TOMATO
(255, 99, 71)
|
static HTMLColor |
HTMLColor.TURQUOISE
( 64, 224, 208)
|
static HTMLColor |
HTMLColor.VIOLET
(238, 130, 238)
|
static HTMLColor |
HTMLColor.VIOLET_RED
(208, 32, 144)
|
static HTMLColor |
HTMLColor.WHEAT
(245, 222, 179)
|
static HTMLColor |
HTMLColor.WHITE
(255, 255, 255)
|
static HTMLColor |
HTMLColor.WHITE_SMOKE
(245, 245, 245)
|
static HTMLColor |
HTMLColor.YELLOW
(255, 255, 0)
|
static HTMLColor |
HTMLColor.YELLOW_GREEN
(154, 205, 50)
|
Modifier and Type | Method and Description |
---|---|
HTMLColor |
HTMLColor.getContrastingColor()
Returns BLACK or WHITE depending on which has the higher contrast.
|
static HTMLColor |
HTMLColor.getContrastingColor(Color inColor)
Returns BLACK or WHITE depending on which has the higher contrast.
|
static HTMLColor |
HTMLColor.valueOf(Color inColor)
Turns a Color value into an HTMLColor object.
|
static HTMLColor |
HTMLColor.valueOf(String inColorString)
Turns a string value like 'blue' or a hexadecimal value into an HTMLColor object.
|
Modifier and Type | Method and Description |
---|---|
static Collection<HTMLColor> |
HTMLColor.values()
Returns 134 standard named HTML colors.
|
jataylor@hairyfatguy.com