public class IlvColor extends IlvColorUtil
IlvColor
class extends IlvColorUtil
to provide predefined color palettes for charts.Modifier and Type | Field and Description |
---|---|
static Color |
aquamarine
The color aquamarine.
|
static Color |
blueViolet
The color blue violet.
|
static Color |
brown
The color brown.
|
static Color |
cadetBlue
The color cadet blue.
|
static Color |
coral
The color coral.
|
static Color |
cornflowerBlue
The color cornflower.
|
static Color |
darkGreen
The color dark green.
|
static Color |
darkOliveGreen
The color dark olive green.
|
static Color |
darkOrchid
The color dark orchid.
|
static Color |
darkSlateBlue
The color dark slate blue.
|
static Color |
darkSlateGray
The color dark slate gray.
|
static Color |
darkTurquoise
The color dark turquoise.
|
static Color |
dimGray
The color dim gray,
|
static int |
DOWN_DIAGONAL_GRADIENT
Type for downward diagonal gradient.
|
static Color |
firebrick
The color firebrick.
|
static Color |
forestGreen
The color forest green.
|
static Color |
gold
The color gold.
|
static Color |
goldenrod
The color goldenrod.
|
static Color |
gray
The color gray.
|
static Color |
greenYellow
The color green yellow.
|
static int |
HORIZONTAL_GRADIENT
Type for horizontal gradient.
|
static Color |
indianRed
The color indian red.
|
static Color |
lightBlue
The color light blue.
|
static Color |
lightGray
The color light gray.
|
static Color |
lightSteelBlue
The color light steel blue.
|
static Color |
limeGreen
The color lime green.
|
static Color |
magenta
The color magenta.
|
static Color |
mediumAquamarine
The color medium aquamarine.
|
static Color |
mediumBlue
The color medium blue.
|
static Color |
mediumOrchid
The color medium orchid.
|
static Color |
mediumSeaGreen
The color medium sea green.
|
static Color |
mediumSlateBlue
The color medium slate blue.
|
static Color |
mediumSpringGreen
The color medium spring green.
|
static Color |
mediumTurquoise
The color medium turquoise.
|
static Color |
mediumVioletRed
The color medium violet red.
|
static Color |
navy
The color navy.
|
static Color |
navyBlue
The color navy blue.
|
static Color |
oliveDrab
The color olive drab.
|
static Color |
orange
The color orange.
|
static Color |
orangeRed
The color orange red.
|
static Color |
orchid
The color orchid.
|
static Color |
paleGreen
The color pale green.
|
static Color |
pink
The color pink.
|
static Color |
plum
The color plum.
|
static Color |
salmon
The color salmon.
|
static Color |
seaGreen
The color sea green.
|
static Color |
sienna
The color sienna.
|
static Color |
skyBlue
The color sky blue.
|
static Color |
slateBlue
The color slate blue.
|
static Color |
springGreen
The color spring green.
|
static Color |
steelBlue
The color steel blue.
|
static Color |
thistle
The color thistle.
|
static Color |
turquoise
The color turquoise.
|
static int |
UP_DIAGONAL_GRADIENT
Type for upward diagonal gradient.
|
static int |
VERTICAL_GRADIENT
Type for vertical gradient.
|
static Color |
violet
The color violet.
|
static Color |
violetRed
The color violet red.
|
static Color |
wheat
The color wheat.
|
static Color |
yellow
The color yellow.
|
static Color |
yellowGreen
The color yellow green.
|
Modifier and Type | Method and Description |
---|---|
static Color[] |
generateColors(int size)
Creates an array of colors.
|
static Color |
getDefaultColor(int idx)
Returns the default color at the specified index.
|
static List<Color> |
getDefaultColors()
Returns the list of default colors.
|
static IlvLinearGradientPaint |
getGradient(int type,
Color color)
Returns a gradient according to the specified color and type.
|
static IlvLinearGradientPaint |
getGradient(int type,
Color[] colors)
Returns a gradient according to the specified colors and type.
|
static IlvRadialGradientPaint |
getSphereGradient(Color sphereColor,
Color lightColor)
Returns a gradient that emulates a 3-D lighting effect on a sphere.
|
addColor, brighter, darker, getBrightness, getColor, getColorMap, getHue, getLuminance, getRandomColor, getSaturation, isJavaNamesFirst, setAlpha, setBrightness, setHue, setJavaNamesFirst, setSaturation, slightlyBrighter, slightlyDarker, toColor, toHumanReadableString, toString
public static final int HORIZONTAL_GRADIENT
getGradient(int, Color[])
,
Constant Field Valuespublic static final int VERTICAL_GRADIENT
getGradient(int, Color[])
,
Constant Field Valuespublic static final int UP_DIAGONAL_GRADIENT
getGradient(int, Color[])
,
Constant Field Valuespublic static final int DOWN_DIAGONAL_GRADIENT
getGradient(int, Color[])
,
Constant Field Valuespublic static final Color aquamarine
public static final Color blueViolet
public static final Color brown
public static final Color cadetBlue
public static final Color coral
public static final Color cornflowerBlue
public static final Color darkGreen
public static final Color darkOliveGreen
public static final Color darkOrchid
public static final Color darkSlateBlue
public static final Color darkSlateGray
public static final Color darkTurquoise
public static final Color dimGray
public static final Color firebrick
public static final Color forestGreen
public static final Color gold
public static final Color goldenrod
public static final Color gray
public static final Color greenYellow
public static final Color indianRed
public static final Color lightBlue
public static final Color lightGray
public static final Color lightSteelBlue
public static final Color limeGreen
public static final Color magenta
public static final Color mediumAquamarine
public static final Color mediumBlue
public static final Color mediumOrchid
public static final Color mediumSeaGreen
public static final Color mediumSlateBlue
public static final Color mediumSpringGreen
public static final Color mediumTurquoise
public static final Color mediumVioletRed
public static final Color navy
public static final Color navyBlue
public static final Color oliveDrab
public static final Color orange
public static final Color orangeRed
public static final Color orchid
public static final Color paleGreen
public static final Color pink
public static final Color plum
public static final Color salmon
public static final Color seaGreen
public static final Color sienna
public static final Color skyBlue
public static final Color slateBlue
public static final Color springGreen
public static final Color steelBlue
public static final Color thistle
public static final Color turquoise
public static final Color violet
public static final Color violetRed
public static final Color wheat
public static final Color yellow
public static final Color yellowGreen
public static List<Color> getDefaultColors()
IlvChartRenderer.getDefaultColors()
public static Color getDefaultColor(int idx)
getDefaultColors()
public static Color[] generateColors(int size)
IlvColorUtil.getRandomColor()
,
getDefaultColors()
public static IlvLinearGradientPaint getGradient(int type, Color color)
type
- The gradient type: HORIZONTAL_GRADIENT
,
VERTICAL_GRADIENT
, UP_DIAGONAL_GRADIENT
or
DOWN_DIAGONAL_GRADIENT
.color
- The considered color. The gradient is built using several
colors derived from this color.IllegalArgumentException
- If color
is null
.getGradient(int, Color[])
public static IlvLinearGradientPaint getGradient(int type, Color[] colors)
type
- The gradient type: HORIZONTAL_GRADIENT
,
VERTICAL_GRADIENT
, UP_DIAGONAL_GRADIENT
or
DOWN_DIAGONAL_GRADIENT
.colors
- The gradient colors.IllegalArgumentException
- If colors
is null
.public static IlvRadialGradientPaint getSphereGradient(Color sphereColor, Color lightColor)
sphereColor
- The original color of the sphere.lightColor
- The light color.IllegalArgumentException
- If one of the color argument is null
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.