< prev index next >
modules/graphics/src/main/java/javafx/scene/paint/ImagePattern.java
Print this page
@@ -37,11 +37,11 @@
* shape. If the shape extends out of the anchor rectangle, the image is tiled.
* </p>
*
* <p>If the {@code proportional} variable is set to true (the default)
* then the anchor rectangle should be specified relative to the unit
- * square (0.0->1.0) and will be stretched across the shape.
+ * square (0.0->1.0) and will be stretched across the shape.
* If the {@code proportional} variable is set to false, then the anchor
* rectangle should be specified in the local coordinate system of the shape
* and the image will be stretched to fit the anchor rectangle. The anchor
* rectangle will not be stretched across the shape.</p>
*
@@ -226,11 +226,11 @@
* values are used for all other parameters.
*
* @param image the image to be used as the paint.
* @throws NullPointerException if the image is null.
* @throws IllegalArgumentException if image is not done loading,
- * that is if progress is < 1.
+ * that is if progress is < 1.
*/
public ImagePattern(@NamedArg("image") Image image) {
if (image == null) {
throw new NullPointerException("Image must be non-null.");
} else if (image.getProgress() < 1.0) {
@@ -249,11 +249,11 @@
* @param height the height of the anchor rectangle.
* @param proportional whether the coordinates are proportional
* to the shape which ImagePattern fills
* @throws NullPointerException if the image is null.
* @throws IllegalArgumentException if image is not done loading,
- * that is if progress is < 1.
+ * that is if progress is < 1.
*/
public ImagePattern(@NamedArg("image") Image image, @NamedArg("x") double x, @NamedArg("y") double y, @NamedArg("width") double width,
@NamedArg("height") double height, @NamedArg("proportional") boolean proportional) {
if (image == null) {
< prev index next >