< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java

Print this page
rev 10598 : 8185767: Fix broken links in Javadocs


 210     public final double getProgress() {
 211         return progress == null ? 0.0 : progress.get();
 212     }
 213 
 214     public final ReadOnlyDoubleProperty progressProperty() {
 215         return progressPropertyImpl().getReadOnlyProperty();
 216     }
 217 
 218     private ReadOnlyDoubleWrapper progressPropertyImpl() {
 219         if (progress == null) {
 220             progress = new ReadOnlyDoubleWrapper(this, "progress");
 221         }
 222         return progress;
 223     }
 224     // PENDING_DOC_REVIEW
 225     /**
 226      * The width of the bounding box within which the source image is
 227      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 228      * intrinsic width of the image will be used.
 229      * <p/>
 230      * See {@link #preserveRatio} for information on interaction between image's
 231      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 232      * attributes.
 233      *
 234      * @defaultValue 0
 235      */
 236     private final double requestedWidth;
 237 
 238     /**
 239      * Gets the width of the bounding box within which the source image is
 240      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 241      * intrinsic width of the image will be used.
 242      * <p>
 243      * See {@link #preserveRatio} for information on interaction between image's
 244      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 245      * attributes.
 246      *
 247      * @return The requested width
 248      */
 249     public final double getRequestedWidth() {
 250         return requestedWidth;
 251     }
 252     // PENDING_DOC_REVIEW
 253     /**
 254      * The height of the bounding box within which the source image is
 255      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 256      * intrinsic height of the image will be used.
 257      * <p>
 258      * See {@link #preserveRatio} for information on interaction between image's
 259      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 260      * attributes.
 261      *
 262      * @defaultValue 0
 263      */
 264     private final double requestedHeight;
 265 
 266     /**
 267      * Gets the height of the bounding box within which the source image is
 268      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 269      * intrinsic height of the image will be used.
 270      * <p>
 271      * See {@link #preserveRatio} for information on interaction between image's
 272      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 273      * attributes.
 274      *
 275      * @return The requested height
 276      */
 277     public final double getRequestedHeight() {
 278         return requestedHeight;
 279     }
 280     // PENDING_DOC_REVIEW
 281     /**
 282      * The image width or {@code 0} if the image loading fails. While the image
 283      * is being loaded it is set to {@code 0}.
 284      */
 285     private DoublePropertyImpl width;
 286 
 287     public final double getWidth() {
 288         return width == null ? 0.0 : width.get();
 289     }
 290 
 291     public final ReadOnlyDoubleProperty widthProperty() {




 210     public final double getProgress() {
 211         return progress == null ? 0.0 : progress.get();
 212     }
 213 
 214     public final ReadOnlyDoubleProperty progressProperty() {
 215         return progressPropertyImpl().getReadOnlyProperty();
 216     }
 217 
 218     private ReadOnlyDoubleWrapper progressPropertyImpl() {
 219         if (progress == null) {
 220             progress = new ReadOnlyDoubleWrapper(this, "progress");
 221         }
 222         return progress;
 223     }
 224     // PENDING_DOC_REVIEW
 225     /**
 226      * The width of the bounding box within which the source image is
 227      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 228      * intrinsic width of the image will be used.
 229      * <p/>
 230      * See {@link #isPreserveRatio() preserveRatio} for information on interaction between image's
 231      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 232      * attributes.
 233      *
 234      * @defaultValue 0
 235      */
 236     private final double requestedWidth;
 237 
 238     /**
 239      * Gets the width of the bounding box within which the source image is
 240      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 241      * intrinsic width of the image will be used.
 242      * <p>
 243      * See {@link #isPreserveRatio() preserveRatio} for information on interaction between image's
 244      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 245      * attributes.
 246      *
 247      * @return The requested width
 248      */
 249     public final double getRequestedWidth() {
 250         return requestedWidth;
 251     }
 252     // PENDING_DOC_REVIEW
 253     /**
 254      * The height of the bounding box within which the source image is
 255      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 256      * intrinsic height of the image will be used.
 257      * <p>
 258      * See {@link #isPreserveRatio() preserveRatio} for information on interaction between image's
 259      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 260      * attributes.
 261      *
 262      * @defaultValue 0
 263      */
 264     private final double requestedHeight;
 265 
 266     /**
 267      * Gets the height of the bounding box within which the source image is
 268      * resized as necessary to fit. If set to a value {@code <= 0}, then the
 269      * intrinsic height of the image will be used.
 270      * <p>
 271      * See {@link #isPreserveRatio() preserveRatio} for information on interaction between image's
 272      * {@code requestedWidth}, {@code requestedHeight} and {@code preserveRatio}
 273      * attributes.
 274      *
 275      * @return The requested height
 276      */
 277     public final double getRequestedHeight() {
 278         return requestedHeight;
 279     }
 280     // PENDING_DOC_REVIEW
 281     /**
 282      * The image width or {@code 0} if the image loading fails. While the image
 283      * is being loaded it is set to {@code 0}.
 284      */
 285     private DoublePropertyImpl width;
 286 
 287     public final double getWidth() {
 288         return width == null ? 0.0 : width.get();
 289     }
 290 
 291     public final ReadOnlyDoubleProperty widthProperty() {


< prev index next >