|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PainterSource
Factory for creating and transforming avatar painters.
A PainterSource
defines methods for use by
AvatarPolicy
and DragPolicy
that
Painter
instances
PainterSource.Transform
instances
Instances of PainterSource
can be supplied by the facet builder via
viewer facets.
Nested Class Summary | |
---|---|
static interface |
PainterSource.Transform
Marks an immutable transform. |
Field Summary | |
---|---|
static int |
HAIRLINE
|
static int |
NO_PATTERN
|
Method Summary | |
---|---|
void |
applyTransforms(PainterSource.Transform[] transforms,
boolean concatenate,
Painter... painters)
Apply transforms to painters. |
Painter |
backgroundLines(Line[] lines,
Shade shade)
Create non-pickable painter of the lines passed. |
Painter |
bar(double x,
double y,
double length,
double width,
Shade fill,
boolean pickable)
|
Painter |
bundle(Painter[] painters,
java.lang.Object... values)
|
Painter |
line(Line line,
Shade shade,
int style,
boolean pickable)
Create a possibly-pickable line painter. |
Painter |
mastered(PainterMaster master)
|
Painter |
pointMark(Point at,
Shade fill,
boolean pickable)
Create a (maybe pickable) painter to mark a position. |
Painter |
rectangle(double x,
double y,
double width,
double height,
Shade pen)
|
Painter |
stretchMark(double height,
double length,
double width,
Shade fill)
|
double |
textLength(java.lang.String text,
java.lang.String face,
int size,
boolean bold,
boolean italic)
|
Painter |
textLineAt(java.lang.String text,
java.lang.String face,
int points,
Shade shade,
double x,
double y)
|
Painter |
textOutline(java.lang.String text,
java.lang.String face,
int points,
boolean bold,
boolean italic,
Shade fill,
Shade pen)
|
Painter |
textTooltip(java.lang.String text,
double x,
double y)
|
PainterSource.Transform |
transformAt(double x,
double y)
|
PainterSource.Transform |
transformScale(double xy)
|
PainterSource.Transform |
transformTurn(double radians,
double atX,
double atY)
|
Painter |
turnMark(double size,
double width,
Shade fill)
|
Field Detail |
---|
static final int NO_PATTERN
static final int HAIRLINE
Method Detail |
---|
Painter textTooltip(java.lang.String text, double x, double y)
Painter textLineAt(java.lang.String text, java.lang.String face, int points, Shade shade, double x, double y)
Painter textOutline(java.lang.String text, java.lang.String face, int points, boolean bold, boolean italic, Shade fill, Shade pen)
double textLength(java.lang.String text, java.lang.String face, int size, boolean bold, boolean italic)
Painter rectangle(double x, double y, double width, double height, Shade pen)
Painter bar(double x, double y, double length, double width, Shade fill, boolean pickable)
Painter stretchMark(double height, double length, double width, Shade fill)
Painter turnMark(double size, double width, Shade fill)
Painter pointMark(Point at, Shade fill, boolean pickable)
The appearance of the painter is defined by the implementation.
at
- the positionfill
- for the paintingpickable
- should the mark be pickable?Painter line(Line line, Shade shade, int style, boolean pickable)
line
- to be paintedshade
- for the paintingstyle
- defines the pattern or strokepickable
- defines line behaviourPainter mastered(PainterMaster master)
Painter backgroundLines(Line[] lines, Shade shade)
lines
- will be painted at minimum widthshade
- for the paintingPainter bundle(Painter[] painters, java.lang.Object... values)
PainterSource.Transform transformTurn(double radians, double atX, double atY)
PainterSource.Transform transformScale(double xy)
PainterSource.Transform transformAt(double x, double y)
void applyTransforms(PainterSource.Transform[] transforms, boolean concatenate, Painter... painters)
transforms
- should be applied to each member of painters
painters
- to be transformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |