< prev index next >

src/java.desktop/share/classes/java/awt/image/renderable/RenderContext.java

Print this page




 108      * @param usr2dev an AffineTransform.
 109      * @param hints a RenderingHints object containing rendering hints.
 110      */
 111     public RenderContext(AffineTransform usr2dev, RenderingHints hints) {
 112         this(usr2dev, null, hints);
 113     }
 114 
 115     /**
 116      * Constructs a RenderContext with a given transform and area of interest.
 117      * The area of interest is supplied as a Shape.
 118      * No rendering hints are used.
 119      *
 120      * @param usr2dev an AffineTransform.
 121      * @param aoi a Shape representing the area of interest.
 122      */
 123     public RenderContext(AffineTransform usr2dev, Shape aoi) {
 124         this(usr2dev, aoi, null);
 125     }
 126 
 127     /**
 128      * Gets the rendering hints of this <code>RenderContext</code>.
 129      * @return a <code>RenderingHints</code> object that represents
 130      * the rendering hints of this <code>RenderContext</code>.
 131      * @see #setRenderingHints(RenderingHints)
 132      */
 133     public RenderingHints getRenderingHints() {
 134         return hints;
 135     }
 136 
 137     /**
 138      * Sets the rendering hints of this <code>RenderContext</code>.
 139      * @param hints a <code>RenderingHints</code> object that represents
 140      * the rendering hints to assign to this <code>RenderContext</code>.
 141      * @see #getRenderingHints
 142      */
 143     public void setRenderingHints(RenderingHints hints) {
 144         this.hints = hints;
 145     }
 146 
 147     /**
 148      * Sets the current user-to-device AffineTransform contained
 149      * in the RenderContext to a given transform.
 150      *
 151      * @param newTransform the new AffineTransform.
 152      * @see #getTransform
 153      */
 154     public void setTransform(AffineTransform newTransform) {
 155         usr2dev = (AffineTransform)newTransform.clone();
 156     }
 157 
 158     /**
 159      * Modifies the current user-to-device transform by prepending another
 160      * transform.  In matrix notation the operation is:


 166      *        current usr2dev transform.
 167      * @since 1.3
 168      */
 169     public void preConcatenateTransform(AffineTransform modTransform) {
 170         this.preConcetenateTransform(modTransform);
 171     }
 172 
 173     /**
 174      * Modifies the current user-to-device transform by prepending another
 175      * transform.  In matrix notation the operation is:
 176      * <pre>
 177      * [this] = [modTransform] x [this]
 178      * </pre>
 179      * This method does the same thing as the preConcatenateTransform
 180      * method.  It is here for backward compatibility with previous releases
 181      * which misspelled the method name.
 182      *
 183      * @param modTransform the AffineTransform to prepend to the
 184      *        current usr2dev transform.
 185      * @deprecated     replaced by
 186      *                 <code>preConcatenateTransform(AffineTransform)</code>.
 187      */
 188     @Deprecated
 189     public void preConcetenateTransform(AffineTransform modTransform) {
 190         usr2dev.preConcatenate(modTransform);
 191     }
 192 
 193     /**
 194      * Modifies the current user-to-device transform by appending another
 195      * transform.  In matrix notation the operation is:
 196      * <pre>
 197      * [this] = [this] x [modTransform]
 198      * </pre>
 199      *
 200      * @param modTransform the AffineTransform to append to the
 201      *        current usr2dev transform.
 202      * @since 1.3
 203      */
 204     public void concatenateTransform(AffineTransform modTransform) {
 205         this.concetenateTransform(modTransform);
 206     }
 207 
 208     /**
 209      * Modifies the current user-to-device transform by appending another
 210      * transform.  In matrix notation the operation is:
 211      * <pre>
 212      * [this] = [this] x [modTransform]
 213      * </pre>
 214      * This method does the same thing as the concatenateTransform
 215      * method.  It is here for backward compatibility with previous releases
 216      * which misspelled the method name.
 217      *
 218      * @param modTransform the AffineTransform to append to the
 219      *        current usr2dev transform.
 220      * @deprecated     replaced by
 221      *                 <code>concatenateTransform(AffineTransform)</code>.
 222      */
 223     @Deprecated
 224     public void concetenateTransform(AffineTransform modTransform) {
 225         usr2dev.concatenate(modTransform);
 226     }
 227 
 228     /**
 229      * Gets the current user-to-device AffineTransform.
 230      *
 231      * @return a reference to the current AffineTransform.
 232      * @see #setTransform(AffineTransform)
 233      */
 234     public AffineTransform getTransform() {
 235         return (AffineTransform)usr2dev.clone();
 236     }
 237 
 238     /**
 239      * Sets the current area of interest.  The old area is discarded.
 240      *
 241      * @param newAoi The new area of interest.




 108      * @param usr2dev an AffineTransform.
 109      * @param hints a RenderingHints object containing rendering hints.
 110      */
 111     public RenderContext(AffineTransform usr2dev, RenderingHints hints) {
 112         this(usr2dev, null, hints);
 113     }
 114 
 115     /**
 116      * Constructs a RenderContext with a given transform and area of interest.
 117      * The area of interest is supplied as a Shape.
 118      * No rendering hints are used.
 119      *
 120      * @param usr2dev an AffineTransform.
 121      * @param aoi a Shape representing the area of interest.
 122      */
 123     public RenderContext(AffineTransform usr2dev, Shape aoi) {
 124         this(usr2dev, aoi, null);
 125     }
 126 
 127     /**
 128      * Gets the rendering hints of this {@code RenderContext}.
 129      * @return a {@code RenderingHints} object that represents
 130      * the rendering hints of this {@code RenderContext}.
 131      * @see #setRenderingHints(RenderingHints)
 132      */
 133     public RenderingHints getRenderingHints() {
 134         return hints;
 135     }
 136 
 137     /**
 138      * Sets the rendering hints of this {@code RenderContext}.
 139      * @param hints a {@code RenderingHints} object that represents
 140      * the rendering hints to assign to this {@code RenderContext}.
 141      * @see #getRenderingHints
 142      */
 143     public void setRenderingHints(RenderingHints hints) {
 144         this.hints = hints;
 145     }
 146 
 147     /**
 148      * Sets the current user-to-device AffineTransform contained
 149      * in the RenderContext to a given transform.
 150      *
 151      * @param newTransform the new AffineTransform.
 152      * @see #getTransform
 153      */
 154     public void setTransform(AffineTransform newTransform) {
 155         usr2dev = (AffineTransform)newTransform.clone();
 156     }
 157 
 158     /**
 159      * Modifies the current user-to-device transform by prepending another
 160      * transform.  In matrix notation the operation is:


 166      *        current usr2dev transform.
 167      * @since 1.3
 168      */
 169     public void preConcatenateTransform(AffineTransform modTransform) {
 170         this.preConcetenateTransform(modTransform);
 171     }
 172 
 173     /**
 174      * Modifies the current user-to-device transform by prepending another
 175      * transform.  In matrix notation the operation is:
 176      * <pre>
 177      * [this] = [modTransform] x [this]
 178      * </pre>
 179      * This method does the same thing as the preConcatenateTransform
 180      * method.  It is here for backward compatibility with previous releases
 181      * which misspelled the method name.
 182      *
 183      * @param modTransform the AffineTransform to prepend to the
 184      *        current usr2dev transform.
 185      * @deprecated     replaced by
 186      *                 {@code preConcatenateTransform(AffineTransform)}.
 187      */
 188     @Deprecated
 189     public void preConcetenateTransform(AffineTransform modTransform) {
 190         usr2dev.preConcatenate(modTransform);
 191     }
 192 
 193     /**
 194      * Modifies the current user-to-device transform by appending another
 195      * transform.  In matrix notation the operation is:
 196      * <pre>
 197      * [this] = [this] x [modTransform]
 198      * </pre>
 199      *
 200      * @param modTransform the AffineTransform to append to the
 201      *        current usr2dev transform.
 202      * @since 1.3
 203      */
 204     public void concatenateTransform(AffineTransform modTransform) {
 205         this.concetenateTransform(modTransform);
 206     }
 207 
 208     /**
 209      * Modifies the current user-to-device transform by appending another
 210      * transform.  In matrix notation the operation is:
 211      * <pre>
 212      * [this] = [this] x [modTransform]
 213      * </pre>
 214      * This method does the same thing as the concatenateTransform
 215      * method.  It is here for backward compatibility with previous releases
 216      * which misspelled the method name.
 217      *
 218      * @param modTransform the AffineTransform to append to the
 219      *        current usr2dev transform.
 220      * @deprecated     replaced by
 221      *                 {@code concatenateTransform(AffineTransform)}.
 222      */
 223     @Deprecated
 224     public void concetenateTransform(AffineTransform modTransform) {
 225         usr2dev.concatenate(modTransform);
 226     }
 227 
 228     /**
 229      * Gets the current user-to-device AffineTransform.
 230      *
 231      * @return a reference to the current AffineTransform.
 232      * @see #setTransform(AffineTransform)
 233      */
 234     public AffineTransform getTransform() {
 235         return (AffineTransform)usr2dev.clone();
 236     }
 237 
 238     /**
 239      * Sets the current area of interest.  The old area is discarded.
 240      *
 241      * @param newAoi The new area of interest.


< prev index next >