< prev index next >

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

Print this page

        

*** 52,62 **** * for a client to use the printable area. * <p> * The hardware's minimum margins is not just a property of the printer, * but may be a function of the media size, orientation, media type, and * any specified finishings. ! * <code>PrintService</code> provides the method to query the supported * values of an attribute in a suitable context : * See {@link javax.print.PrintService#getSupportedAttributeValues(Class,DocFlavor, AttributeSet) PrintService.getSupportedAttributeValues()} * <p> * The rectangular printable area is defined thus: * The (x,y) origin is positioned at the top-left of the paper in portrait --- 52,62 ---- * for a client to use the printable area. * <p> * The hardware's minimum margins is not just a property of the printer, * but may be a function of the media size, orientation, media type, and * any specified finishings. ! * {@code PrintService} provides the method to query the supported * values of an attribute in a suitable context : * See {@link javax.print.PrintService#getSupportedAttributeValues(Class,DocFlavor, AttributeSet) PrintService.getSupportedAttributeValues()} * <p> * The rectangular printable area is defined thus: * The (x,y) origin is positioned at the top-left of the paper in portrait
*** 234,253 **** * Returns whether this media margins 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 MediaPrintableArea. * <LI> * The origin and dimensions are the same. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this media margins * attribute, false otherwise. */ public boolean equals(Object object) { boolean ret = false; if (object instanceof MediaPrintableArea) { --- 234,253 ---- * Returns whether this media margins 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 MediaPrintableArea. * <LI> * The origin and dimensions are the same. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this media margins * attribute, false otherwise. */ public boolean equals(Object object) { boolean ret = false; if (object instanceof MediaPrintableArea) {
*** 276,286 **** /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class MediaPrintableArea, ! * the category name is <CODE>"media-printable-area"</CODE>. * <p>This is not an IPP V1.1 attribute. * * @return Attribute category name. */ public final String getName() { --- 276,286 ---- /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class MediaPrintableArea, ! * the category name is {@code "media-printable-area"}. * <p>This is not an IPP V1.1 attribute. * * @return Attribute category name. */ public final String getName() {
*** 293,303 **** * * @param units * Unit conversion factor, e.g. {@link #INCH INCH} or * {@link #MM MM}. * @param unitsName ! * Units name string, e.g. <CODE>"in"</CODE> or <CODE>"mm"</CODE>. If * null, no units name is appended to the result. * * @return String version of this two-dimensional size attribute. * * @exception IllegalArgumentException --- 293,303 ---- * * @param units * Unit conversion factor, e.g. {@link #INCH INCH} or * {@link #MM MM}. * @param unitsName ! * Units name string, e.g. {@code "in"} or {@code "mm"}. If * null, no units name is appended to the result. * * @return String version of this two-dimensional size attribute. * * @exception IllegalArgumentException
< prev index next >