API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.print.attribute.standard. MediaPrintableArea View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      MediaPrintableArea
Implements
 DocAttribute
 PrintRequestAttribute
 PrintJobAttribute
Subclasses
Description
publicfinal class MediaPrintableArea
  Class MediaPrintableArea is a printing attribute used to distinguish the printable and non-printable areas of media.
See also:   
Constructors
public MediaPrintableArea (float x, float y, float w, float h, int units)
  Constructs a MediaPrintableArea object from floating point values.
public MediaPrintableArea (int x, int y, int w, int h, int units)
  Constructs a MediaPrintableArea object from integer values.
Methods
Hide/Show inherited methods
public boolean equals (Object object)
  Returns whether this media margins attribute is equivalent to the passed in object.
publicfinal Class<Attribute> getCategory ()
  Get the printing attribute class which is to be used as the "category" for this printing attribute value.
public float getHeight (int units)
  Get the height of the printable area in the specified units.
publicfinal String getName ()
  Get the name of the category of which this attribute value is an instance.
public float getPrintableArea (int units)
  Get the printable area as an array of 4 values in the order x, y, w, h.
public float getWidth (int units)
  Get the width of the printable area in the specified units.
public float getX (int units)
  Get the x location of the origin of the printable area in the specified units.
public float getY (int units)
  Get the y location of the origin of the printable area in the specified units.
public int hashCode ()
Returns a hash code value for this attribute.
public String toString ()
Returns a string version of this rectangular size attribute in mm.
public String toString (int units, String unitsName)
  Returns a string version of this rectangular size attribute in the given units.
Fields
Hide/Show inherited fields
publicfinalstatic int INCH = "25400"
  Value to indicate units of inches (in).
publicfinalstatic int MM = "1000"
  Value to indicate units of millimeters (mm).
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar