Java Reference
In-Depth Information
void setStroke(Paint p)
Paint getStroke()
void setLineWidth(double lw)
double getLineWidth()
void setLineCap(StrokeLineCap cap)
StrokeLineCap getLineCap()
void setLineJoin(StrokeLineJoin join)
StrokeLineJoin getLineJoin()
void setMiterLimit(double ml)
double getMiterLimit()
void setFont(Font f)
Font getFont()
void setTextAlign(TextAlignment align)
TextAlignment getTextAlign()
void setTextBaseline(VPos baseline)
VPos getTextBaseline()
void setFillRule(FillRule fillRule)
FillRule getFillRule()
void setEffect(Effect e)
Effect getEffect(Effect e)
void applyEffect(Effect e)
The various setters and getters alter the characteristics of the GraphicsContext . They affect the coordinate
transformation, global alpha, global blend mode, fill paint, stroke paint, line width, line cap, line join, miter limit, font,
text alignment, text baseline, fill rule, and effect that will be used when the next rendering method call is issued. The
save() method will push the current settings of these characteristics onto a stack. The restore() method will pop the
saved settings back onto the GraphicsContext .
The following methods put graphics artifacts on the Canvas :
void fillText(String text, double x, double y)
void strokeText(String text, double x, double y)
void fillText(String text, double x, double y, double maxWidth)
void strokeText(String text, double x, double y, double maxWidth)
void beginPath()
void moveTo(double x0, double y0)
void lineTo(double x1, double y1)
void quadraticCurveTo(double xc, double yc, double x1, double y1)
 
Search WWH ::




Custom Search