< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/PrinterResolution.java

Print this page

        

*** 59,71 **** * the client's requirements. * In some cases this may be more simply achieved by specifying a * PrintQuality attribute which often controls resolution. * <P> * <B>IPP Compatibility:</B> The information needed to construct an IPP ! * <CODE>"printer-resolution"</CODE> attribute can be obtained by calling * methods on the PrinterResolution object. The category name returned by ! * <CODE>getName()</CODE> gives the IPP attribute name. * * @author David Mendenhall * @author Alan Kaminsky */ public final class PrinterResolution extends ResolutionSyntax --- 59,71 ---- * the client's requirements. * In some cases this may be more simply achieved by specifying a * PrintQuality attribute which often controls resolution. * <P> * <B>IPP Compatibility:</B> The information needed to construct an IPP ! * {@code "printer-resolution"} attribute can be obtained by calling * methods on the PrinterResolution object. The category name returned by ! * {@code getName()} gives the IPP attribute name. * * @author David Mendenhall * @author Alan Kaminsky */ public final class PrinterResolution extends ResolutionSyntax
*** 79,90 **** * @param crossFeedResolution * Cross feed direction resolution. * @param feedResolution * Feed direction resolution. * @param units ! * Unit conversion factor, e.g. <code>ResolutionSyntax.DPI</CODE> ! * or <code>ResolutionSyntax.DPCM</CODE>. * * @exception IllegalArgumentException * (unchecked exception) Thrown if {@code crossFeedResolution < 1} or * {@code feedResolution < 1} or {@code units < 1}. */ --- 79,90 ---- * @param crossFeedResolution * Cross feed direction resolution. * @param feedResolution * Feed direction resolution. * @param units ! * Unit conversion factor, e.g. {@code ResolutionSyntax.DPI} ! * or {@code ResolutionSyntax.DPCM}. * * @exception IllegalArgumentException * (unchecked exception) Thrown if {@code crossFeedResolution < 1} or * {@code feedResolution < 1} or {@code units < 1}. */
*** 97,120 **** * Returns whether this printer resolution attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * <CODE>object</CODE> is not null. * <LI> ! * <CODE>object</CODE> is an instance of class PrinterResolution. * <LI> * This attribute's cross feed direction resolution is equal to ! * <CODE>object</CODE>'s cross feed direction resolution. * <LI> * This attribute's feed direction resolution is equal to ! * <CODE>object</CODE>'s feed direction resolution. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this printer * resolution attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals (object) && object instanceof PrinterResolution); --- 97,120 ---- * Returns whether this printer resolution attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions * must be true: * <OL TYPE=1> * <LI> ! * {@code object} is not null. * <LI> ! * {@code object} is an instance of class PrinterResolution. * <LI> * This attribute's cross feed direction resolution is equal to ! * {@code object}'s cross feed direction resolution. * <LI> * This attribute's feed direction resolution is equal to ! * {@code object}'s feed direction resolution. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this printer * resolution attribute, false otherwise. */ public boolean equals(Object object) { return (super.equals (object) && object instanceof PrinterResolution);
*** 136,146 **** /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class PrinterResolution, the ! * category name is <CODE>"printer-resolution"</CODE>. * * @return Attribute category name. */ public final String getName() { return "printer-resolution"; --- 136,146 ---- /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class PrinterResolution, the ! * category name is {@code "printer-resolution"}. * * @return Attribute category name. */ public final String getName() { return "printer-resolution";
< prev index next >