< prev index next >

src/java.desktop/share/classes/java/awt/image/RescaleOp.java

Print this page

        

@@ -95,12 +95,12 @@
      * and offsets.  The length of the scaleFactor and offset arrays
      * must meet the restrictions stated in the class comments above.
      * The RenderingHints argument may be null.
      * @param scaleFactors the specified scale factors
      * @param offsets the specified offsets
-     * @param hints the specified <code>RenderingHints</code>, or
-     *        <code>null</code>
+     * @param hints the specified {@code RenderingHints}, or
+     *        {@code null}
      */
     public RescaleOp (float[] scaleFactors, float[] offsets,
                       RenderingHints hints) {
         length = scaleFactors.length;
         if (length > offsets.length) length = offsets.length;

@@ -120,12 +120,12 @@
      * all bands in a source Raster and to all color (but not alpha)
      * components in a BufferedImage.
      * The RenderingHints argument may be null.
      * @param scaleFactor the specified scale factor
      * @param offset the specified offset
-     * @param hints the specified <code>RenderingHints</code>, or
-     *        <code>null</code>
+     * @param hints the specified {@code RenderingHints}, or
+     *        {@code null}
      */
     public RescaleOp (float scaleFactor, float offset, RenderingHints hints) {
         length = 1;
         this.scaleFactors = new float[1];
         this.offsets      = new float[1];

@@ -137,12 +137,12 @@
     /**
      * Returns the scale factors in the given array. The array is also
      * returned for convenience.  If scaleFactors is null, a new array
      * will be allocated.
      * @param scaleFactors the array to contain the scale factors of
-     *        this <code>RescaleOp</code>
-     * @return the scale factors of this <code>RescaleOp</code>.
+     *        this {@code RescaleOp}
+     * @return the scale factors of this {@code RescaleOp}.
      */
     public final float[] getScaleFactors (float scaleFactors[]) {
         if (scaleFactors == null) {
             return this.scaleFactors.clone();
         }

@@ -155,12 +155,12 @@
     /**
      * Returns the offsets in the given array. The array is also returned
      * for convenience.  If offsets is null, a new array
      * will be allocated.
      * @param offsets the array to contain the offsets of
-     *        this <code>RescaleOp</code>
-     * @return the offsets of this <code>RescaleOp</code>.
+     *        this {@code RescaleOp}
+     * @return the offsets of this {@code RescaleOp}.
      */
     public final float[] getOffsets(float offsets[]) {
         if (offsets == null) {
             return this.offsets.clone();
         }

@@ -172,11 +172,11 @@
 
     /**
      * Returns the number of scaling factors and offsets used in this
      * RescaleOp.
      * @return the number of scaling factors and offsets of this
-     *         <code>RescaleOp</code>.
+     *         {@code RescaleOp}.
      */
     public final int getNumFactors() {
         return length;
     }
 

@@ -311,18 +311,18 @@
      * a BufferedImage will be created with the source ColorModel.
      * An IllegalArgumentException may be thrown if the number of
      * scaling factors/offsets in this object does not meet the
      * restrictions stated in the class comments above, or if the
      * source image has an IndexColorModel.
-     * @param src the <code>BufferedImage</code> to be filtered
+     * @param src the {@code BufferedImage} to be filtered
      * @param dst the destination for the filtering operation
-     *            or <code>null</code>
-     * @return the filtered <code>BufferedImage</code>.
-     * @throws IllegalArgumentException if the <code>ColorModel</code>
-     *         of <code>src</code> is an <code>IndexColorModel</code>,
+     *            or {@code null}
+     * @return the filtered {@code BufferedImage}.
+     * @throws IllegalArgumentException if the {@code ColorModel}
+     *         of {@code src} is an {@code IndexColorModel},
      *         or if the number of scaling factors and offsets in this
-     *         <code>RescaleOp</code> do not meet the requirements
+     *         {@code RescaleOp} do not meet the requirements
      *         stated in the class comments.
      */
     public final BufferedImage filter (BufferedImage src, BufferedImage dst) {
         ColorModel srcCM = src.getColorModel();
         ColorModel dstCM;

@@ -484,18 +484,18 @@
      * The source and destination must have the same number of bands.
      * Otherwise, an IllegalArgumentException is thrown.
      * Note that the number of scaling factors/offsets in this object must
      * meet the restrictions stated in the class comments above.
      * Otherwise, an IllegalArgumentException is thrown.
-     * @param src the <code>Raster</code> to be filtered
+     * @param src the {@code Raster} to be filtered
      * @param dst the destination for the filtering operation
-     *            or <code>null</code>
-     * @return the filtered <code>WritableRaster</code>.
-     * @throws IllegalArgumentException if <code>src</code> and
-     *         <code>dst</code> do not have the same number of bands,
+     *            or {@code null}
+     * @return the filtered {@code WritableRaster}.
+     * @throws IllegalArgumentException if {@code src} and
+     *         {@code dst} do not have the same number of bands,
      *         or if the number of scaling factors and offsets in this
-     *         <code>RescaleOp</code> do not meet the requirements
+     *         {@code RescaleOp} do not meet the requirements
      *         stated in the class comments.
      */
     public final WritableRaster filter (Raster src, WritableRaster dst)  {
         return filterRasterImpl(src, dst, length);
     }

@@ -631,12 +631,12 @@
 
     /**
      * Returns the bounding box of the rescaled destination Raster.  Since
      * this is not a geometric operation, the bounding box does not
      * change.
-     * @param src the rescaled destination <code>Raster</code>
-     * @return the bounds of the specified <code>Raster</code>.
+     * @param src the rescaled destination {@code Raster}
+     * @return the bounds of the specified {@code Raster}.
      */
     public final Rectangle2D getBounds2D (Raster src) {
         return src.getBounds();
     }
 

@@ -668,14 +668,14 @@
 
         return image;
     }
 
     /**
-     * Creates a zeroed-destination <code>Raster</code> with the correct
+     * Creates a zeroed-destination {@code Raster} with the correct
      * size and number of bands, given this source.
-     * @param src       the source <code>Raster</code>
-     * @return the zeroed-destination <code>Raster</code>.
+     * @param src       the source {@code Raster}
+     * @return the zeroed-destination {@code Raster}.
      */
     public WritableRaster createCompatibleDestRaster (Raster src) {
         return src.createCompatibleWritableRaster(src.getWidth(), src.getHeight());
     }
 

@@ -683,11 +683,11 @@
      * Returns the location of the destination point given a
      * point in the source.  If dstPt is non-null, it will
      * be used to hold the return value.  Since this is not a geometric
      * operation, the srcPt will equal the dstPt.
      * @param srcPt a point in the source image
-     * @param dstPt the destination point or <code>null</code>
+     * @param dstPt the destination point or {@code null}
      * @return the location of the destination point.
      */
     public final Point2D getPoint2D (Point2D srcPt, Point2D dstPt) {
         if (dstPt == null) {
             dstPt = new Point2D.Float();

@@ -696,11 +696,11 @@
         return dstPt;
     }
 
     /**
      * Returns the rendering hints for this op.
-     * @return the rendering hints of this <code>RescaleOp</code>.
+     * @return the rendering hints of this {@code RescaleOp}.
      */
     public final RenderingHints getRenderingHints() {
         return hints;
     }
 }
< prev index next >