|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecteu.hansolo.gradients.BiLinearGradientPaint.BiLinearGradientPaintContext
private final class BiLinearGradientPaint.BiLinearGradientPaintContext
| Constructor Summary | |
BiLinearGradientPaint.BiLinearGradientPaintContext()
|
|
| Method Summary | |
|---|---|
private Color
|
bilinearInterpolateColor(Color COLOR_00, Color COLOR_10, Color COLOR_01, Color COLOR_11, float FRACTION_X, float FRACTION_Y)
Returns the color calculated by a bilinear interpolation by the two fractions in x and y direction. |
void
|
dispose()
|
ColorModel
|
getColorModel()
|
Raster
|
getRaster(int X, int Y, int TILE_WIDTH, int TILE_HEIGHT)
|
private Color
|
interpolateColor(Color COLOR1, Color COLOR2, float fraction)
Returns the interpolated color that you get if you multiply the delta between color2 and color1 with the given fraction (for each channel). |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
public BiLinearGradientPaint.BiLinearGradientPaintContext()
| Method Detail |
|---|
private Color bilinearInterpolateColor(Color COLOR_00, Color COLOR_10, Color COLOR_01, Color COLOR_11, float FRACTION_X, float FRACTION_Y)
COLOR_00 - The color on the lower left corner of the squareCOLOR_10 - The color on the lower right corner of the squareCOLOR_01 - The color on the upper left corner of the squareCOLOR_11 - The color on the upper right corner of the squareFRACTION_X - The fraction of the point in x direction (between COLOR_00 and COLOR_10 or COLOR_01 and COLOR_11) range: 0.0f .. 1.0fFRACTION_Y - The fraction of the point in y direction (between COLOR_00 and COLOR_01 or COLOR_10 and COLOR_11) range: 0.0f .. 1.0f
@Override public void dispose()
@Override public ColorModel getColorModel()
@Override public Raster getRaster(int X, int Y, int TILE_WIDTH, int TILE_HEIGHT)
private Color interpolateColor(Color COLOR1, Color COLOR2, float fraction)
COLOR1 - The first color as integer in the hex format 0xALPHA RED GREEN BLUE, e.g. 0xFF00FF00 for a pure greenCOLOR2 - The second color as integer in the hex format 0xALPHA RED GREEN BLUE e.g. 0xFFFF0000 for a pure redfraction - The fraction between those two colors that we would like to get e.g. 0.5f will result in the color 0xFF808000
Groovy Documentation