|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shader
Defines an object which can modify an sRGB colour as defined by a scalar parameter.
Method Summary | |
---|---|
void |
adjustRgba(float[] rgba,
float value)
Modifies the elements of an sRGB colour definition array in place according to a supplied parameter. |
Icon |
createIcon(boolean horizontal,
int width,
int height,
int xpad,
int ypad)
Returns an icon which displays this shader in action. |
String |
getName()
Returns a name for this shader. |
boolean |
isAbsolute()
Indicates whether the shading performed by this shader is dependent on the input colour or not. |
Method Detail |
---|
void adjustRgba(float[] rgba, float value)
rgba
array has 4-elements giving
red, green blue, alpha values respetively, each element in the
range 0 to 1. The value
parameter is a value in the
range 0 to 1 which parameterises how the rgba
array is to be modified.
rgba
- 4-element (red,green,blue,alpha) arrayvalue
- adjustment parameter in the range 0..1boolean isAbsolute()
adjustRgba(float[], float)
depends on the input colourString getName()
Icon createIcon(boolean horizontal, int width, int height, int xpad, int ypad)
horizontal
- true for shading running horizontally,
false for verticallywidth
- total icon width in pixelsheight
- total icon height in pixelsxpad
- internal padding in the X directionypad
- internal padding in the Y direction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |