|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StrokeCallback
Interface for stroke 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. |
static int |
MASK_WIDTH
Use line width modulation. |
Method Summary | |
---|---|
double |
getAlpha(double t,
boolean cyclic)
Returns alpha-channel information about the given point on the stroke. |
double |
getAlpha(int i,
int length,
boolean cyclic)
Returns alpha-channel information about the given point on the stroke. |
boolean |
getBit(double t,
boolean cyclic)
Returns boolean information about the given point on the stroke. |
boolean |
getBit(int i,
int length,
boolean cyclic)
Returns boolean information about the given point on the stroke. |
void |
getColor(double[] color,
double t,
boolean cyclic)
Returns color information (RGB) about the given point on the stroke. |
void |
getColor(double[] color,
int i,
int length,
boolean cyclic)
Returns color information (RGB) about the given point on the stroke. |
int |
getFeatures()
Tells which features are used by this stroke-modulation function. |
double |
getWidth(double t,
boolean cyclic)
Returns width of the given point on the stroke. |
double |
getWidth(int i,
int length,
boolean cyclic)
Returns width of the given point on the stroke. |
Field Detail |
---|
static final int MASK_BIT
static final int MASK_ALPHA
static final int MASK_COLOR
static final int MASK_WIDTH
static final int MASK_PARAMETRIC
Method Detail |
---|
int getFeatures()
boolean getBit(int i, int length, boolean cyclic)
i
- Point's index (from 0 to length-1).length
- Total stroke length.cyclic
- Is that stroke cyclic?.
boolean getBit(double t, boolean cyclic)
t
- Point's relative coordinate (from 0.0 to 1.0).cyclic
- Is that stroke cyclic?.
double getAlpha(int i, int length, boolean cyclic)
i
- Point's index (from 0 to length-1).length
- Total stroke length.cyclic
- Is that stroke cyclic?.
double getAlpha(double t, boolean cyclic)
t
- Point's relative coordinate (from 0.0 to 1.0).cyclic
- Is that stroke cyclic?.
void getColor(double[] color, int i, int length, boolean cyclic)
color
- RGB color of the point.i
- Point's index (from 0 to length-1).length
- Total stroke length.cyclic
- Is that stroke cyclic?.void getColor(double[] color, double t, boolean cyclic)
color
- RGB color of the point.t
- Point's relative coordinate (from 0.0 to 1.0).cyclic
- Is that stroke cyclic?.double getWidth(int i, int length, boolean cyclic)
i
- Point's index (from 0 to length-1).length
- Total stroke length.cyclic
- Is that stroke cyclic?.
double getWidth(double t, boolean cyclic)
t
- Point's relative coordinate (from 0.0 to 1.0).cyclic
- Is that stroke cyclic?.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |