diff -r 1f1cca0200eb modules/javafx.graphics/src/main/java/javafx/scene/canvas/GraphicsContext.java --- a/modules/javafx.graphics/src/main/java/javafx/scene/canvas/GraphicsContext.java Mon Nov 12 10:26:56 2018 +0100 +++ b/modules/javafx.graphics/src/main/java/javafx/scene/canvas/GraphicsContext.java Wed Nov 14 18:36:38 2018 +0530 @@ -127,7 +127,7 @@ * A 3x2 2D affine transformation matrix that controls how coordinates are * mapped onto the logical pixels of the canvas image. * - *
Method | - *Common Rendering Attributes | - *Fill Attributes | - *Stroke Attributes | - *Text Attributes | - *Path Attributes | + *Method | + *Common Rendering Attributes | + *Fill Attributes | + *Stroke Attributes | + *Text Attributes | + *Path Attributes | + *Image Attributes | *
---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic Shape Rendering | ||||||||||||
+ * | * {@link #fillRect(double, double, double, double) fillRect()}, * {@link #fillRoundRect(double, double, double, double, double, double) fillRoundRect()}, * {@link #fillOval(double, double, double, double) fillOval()}, * {@link #fillArc(double, double, double, double, double, double, javafx.scene.shape.ArcType) fillArc()} * | - *Yes | - *Yes | - *No | - *No | - *No | + *Yes | + *Yes | + *No | + *No | + *No | + *No | *
+ * | * {@link #strokeLine(double, double, double, double) strokeLine()}, * {@link #strokeRect(double, double, double, double) strokeRect()}, * {@link #strokeRoundRect(double, double, double, double, double, double) strokeRoundRect()}, * {@link #strokeOval(double, double, double, double) strokeOval()}, * {@link #strokeArc(double, double, double, double, double, double, javafx.scene.shape.ArcType) strokeArc()} * | - *Yes | - *No | - *Yes | - *No | - *No | + *Yes | + *No | + *Yes | + *No | + *No | + *No | *
+ * | * {@link #clearRect(double, double, double, double) clearRect()} * | - *Yes [1] | - *No | - *No | - *No | - *No | + *Yes [1] | + *No | + *No | + *No | + *No | + *No | *
+ * | * {@link #fillPolygon(double[], double[], int) fillPolygon()} * | - *Yes | - *Yes | - *No | - *No | - *Yes [2] | + *Yes | + *Yes | + *No | + *No | + *Yes [2] | + *No | *
+ * | * {@link #strokePolygon(double[], double[], int) strokePolygon()}, * {@link #strokePolyline(double[], double[], int) strokePolyline()} * | - *Yes | - *No | - *Yes | - *No | - *No | + *Yes | + *No | + *Yes | + *No | + *No | + *No | *
* [1] Only the Transform, Clip, and Effect apply to clearRect() @@ -332,33 +347,35 @@ * | ||||||||||||
Text Rendering | ||||||||||||
+ * | * {@link #fillText(java.lang.String, double, double) fillText()}, * {@link #fillText(java.lang.String, double, double, double) fillText(with maxWidth)} * | - *Yes | - *Yes | - *No | - *Yes [3] | - *No | + *Yes | + *Yes | + *No | + *Yes [3] | + *No | + *No | *
+ * | * {@link #strokeText(java.lang.String, double, double) strokeText()}, * {@link #strokeText(java.lang.String, double, double, double) strokeText(with maxWidth)} * | - *Yes | - *No | - *Yes | - *Yes [3] | - *No | + *Yes | + *No | + *Yes | + *Yes [3] | + *No | + *No | *
* [3] The Font Smoothing attribute only applies to filled text * | ||||||||||||
Path Rendering | ||||||||||||
+ * | * {@link #beginPath() beginPath()}, * {@link #moveTo(double, double) moveTo()}, * {@link #lineTo(double, double) lineTo()}, @@ -370,41 +387,45 @@ * {@link #closePath() closePath()}, * {@link #rect(double, double, double, double) rect()} * | - *Yes [4] | - *No | - *No | - *No | - *No | + *Yes [4] | + *No | + *No | + *No | + *No | + *No | *
+ * | * {@link #fill() fill()} * | - *Yes [4] | - *Yes | - *No | - *No | - *Yes | + *Yes [4] | + *Yes | + *No | + *No | + *Yes | + *No | *
+ * | * {@link #stroke() stroke()} * | - *Yes [4] | - *No | - *Yes | - *No | - *Yes [5] | + *Yes [4] | + *No | + *Yes | + *No | + *Yes [5] | + *No | *
+ * | * {@link #clip() clip()} * | - *No | - *No | - *No | - *No | - *Yes | + *No | + *No | + *No | + *No | + *Yes | + *No | *
* [4] Transform applied only during path construction @@ -412,26 +433,28 @@ * | ||||||||||||
Image Rendering | ||||||||||||
+ * | * {@link #drawImage(javafx.scene.image.Image, double, double) drawImage(all forms)} * | - *Yes | - *No | - *No | - *No | - *No | + *Yes | + *No | + *No | + *No | + *No | + *Yes | *
Miscellaneous | ||||||||||||
+ * | * {@link #applyEffect(javafx.scene.effect.Effect) applyEffect()}, * {@link #getPixelWriter() PixelWriter methods} * | - *No | - *No | - *No | - *No | - *No | + *No | + *No | + *No | + *No | + *No | + *No | *
* This method will be affected by any of the * global common + * or image * attributes as specified in the * Rendering Attributes Table. *
@@ -2614,6 +2668,7 @@ ** This method will be affected by any of the * global common + * or image * attributes as specified in the * Rendering Attributes Table. *
@@ -2635,6 +2690,7 @@ ** This method will be affected by any of the * global common + * or image * attributes as specified in the * Rendering Attributes Table. *