< prev index next >

src/java.desktop/share/classes/java/awt/PrintJob.java

Print this page

 68      * @return the page resolution
 69      */
 70     public abstract int getPageResolution();
 71 
 72     /**
 73      * Returns true if the last page will be printed first.
 74      *
 75      * @return {@code true} if the last page will be printed first;
 76      *         otherwise {@code false}
 77      */
 78     public abstract boolean lastPageFirst();
 79 
 80     /**
 81      * Ends the print job and does any necessary cleanup.
 82      */
 83     public abstract void end();
 84 
 85     /**
 86      * Ends this print job once it is no longer referenced.
 87      *
 88      * @deprecated The {@code finalize} method has been deprecated.
 89      *     Subclasses that override {@code finalize} in order to perform cleanup
 90      *     should be modified to use alternative cleanup mechanisms and
 91      *     to remove the overriding {@code finalize} method.
 92      *     When overriding the {@code finalize} method, its implementation must explicitly
 93      *     ensure that {@code super.finalize()} is invoked as described in {@link Object#finalize}.
 94      *     See the specification for {@link Object#finalize()} for further
 95      *     information about migration options.
 96      * @see #end
 97      */
 98     @Deprecated(since="9")

 99     public void finalize() {
100         end();
101     }
102 
103 }

 68      * @return the page resolution
 69      */
 70     public abstract int getPageResolution();
 71 
 72     /**
 73      * Returns true if the last page will be printed first.
 74      *
 75      * @return {@code true} if the last page will be printed first;
 76      *         otherwise {@code false}
 77      */
 78     public abstract boolean lastPageFirst();
 79 
 80     /**
 81      * Ends the print job and does any necessary cleanup.
 82      */
 83     public abstract void end();
 84 
 85     /**
 86      * Ends this print job once it is no longer referenced.
 87      *
 88      * @deprecated Finalization has been deprecated for removal.  See
 89      * {@link java.lang.Object#finalize} for background information and details
 90      * about migration options.
 91      *




 92      * @see #end
 93      */
 94     @Deprecated(since="9", forRemoval=true)
 95     @SuppressWarnings("removal")
 96     public void finalize() {
 97         end();
 98     }
 99 
100 }
< prev index next >