|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FillCallback
Interface for fill call-back routines.
Field Summary | |
---|---|
static int |
MASK_ALPHA
Use alpha-channel modulation. |
static int |
MASK_BIT
Use bit-mask modulation. |
static int |
MASK_COLOR
Use color modulation. |
static int |
MASK_PARAMETRIC
Use parametric (relative) coordinates. |
Method Summary | |
---|---|
double |
getAlpha(double t,
double u,
boolean cyclic)
Returns alpha-channel information about the given point. |
double |
getAlpha(int i,
int j,
int width,
int height,
boolean cyclic)
Returns alpha-channel information about the given point. |
boolean |
getBit(double t,
double u,
boolean cyclic)
Returns boolean information about the given point. |
boolean |
getBit(int i,
int j,
int width,
int height,
boolean cyclic)
Returns boolean information about the given point. |
void |
getColor(double[] color,
double t,
double u,
boolean cyclic)
Returns color information (RGB) about the given point. |
void |
getColor(double[] color,
int i,
int j,
int width,
int height,
boolean cyclic)
Returns color information (RGB) about the given point. |
int |
getFeatures()
Tells which features are used by this fill-modulation function. |
Field Detail |
---|
static final int MASK_BIT
static final int MASK_ALPHA
static final int MASK_COLOR
static final int MASK_PARAMETRIC
Method Detail |
---|
int getFeatures()
boolean getBit(int i, int j, int width, int height, boolean cyclic)
i
- Point's horizontal index (from 0 to width-1).j
- Point's vertical index (from 0 to height-1).width
- Total pattern width.height
- Total pattern height.cyclic
- Is that pattern cyclic?.
boolean getBit(double t, double u, boolean cyclic)
t
- Point's relative horizontal coordinate (from 0.0 to 1.0).u
- Point's relative vertical coordinate (from 0.0 to 1.0).cyclic
- Is that pattern cyclic?.
double getAlpha(int i, int j, int width, int height, boolean cyclic)
i
- Point's horizontal index (from 0 to width-1).j
- Point's vertical index (from 0 to height-1).width
- Total pattern width.height
- Total pattern height.cyclic
- Is that pattern cyclic?.
double getAlpha(double t, double u, boolean cyclic)
t
- Point's relative horizontal coordinate (from 0.0 to 1.0).u
- Point's relative vertical coordinate (from 0.0 to 1.0).cyclic
- Is that pattern cyclic?.
void getColor(double[] color, int i, int j, int width, int height, boolean cyclic)
color
- RGB color of the point.i
- Point's horizontal index (from 0 to width-1).j
- Point's vertical index (from 0 to height-1).width
- Total pattern width.height
- Total pattern height.cyclic
- Is that pattern cyclic?.void getColor(double[] color, double t, double u, boolean cyclic)
color
- RGB color of the point.t
- Point's relative horizontal coordinate (from 0.0 to 1.0).u
- Point's relative vertical coordinate (from 0.0 to 1.0).cyclic
- Is that pattern cyclic?.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |