public static class IltColorModifier.Shade extends IltColorModifier
IltColorModifier.MultiColor, IltColorModifier.Shade
Standard
Constructor and Description |
---|
Shade()
Creates a new color modifier.
|
Shade(float percent) |
Modifier and Type | Method and Description |
---|---|
float |
getPercent()
Returns the percentage used to produce a transparent color shade effect.
|
int |
modify(int b,
int f,
IltColorModifierContext c)
This method is invoked for each animated pixel of the gauge or chart.
|
void |
setPercent(float percent)
Sets the percentage used to produce a transparent color shade effect.
|
Blue, Color, compose, Green, Red, UseForegroundColor
public Shade(float percent)
public Shade()
public final void setPercent(float percent)
percent
- The percentage used to produce a transparent color shade
effect.public final float getPercent()
public int modify(int b, int f, IltColorModifierContext c)
IltColorModifier
ColorModel
for a particular device or for all images. It is merely used as a
common color model format.
This method is supposed to be overridden to implement the appropriate color modification.
modify
in class IltColorModifier
b
- The background color of the chart for this pixel.f
- The foreground color of the chart for this pixel.c
- The context for this pixel.ColorModel.getRGBdefault()
,
IltColorModifierContext
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.