API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.print.attribute. Size2DSyntax View Source
Author(s)
Alan Kaminsky
Since
Version
Serial
Hierarchy
 Object
      Size2DSyntax
Implements
 Serializable
 Cloneable
Subclasses
Description
publicabstract abstract class Size2DSyntax
  Class Size2DSyntax is an abstract base class providing the common implementation of all attributes denoting a size in two dimensions.
See also:   
Constructors
protected Size2DSyntax (float x, float y, int units)
  Construct a new two-dimensional size attribute from the given floating-point values.
protected Size2DSyntax (int x, int y, int units)
  Construct a new two-dimensional size attribute from the given integer values.
Methods
Hide/Show inherited methods
public boolean equals (Object object)
  Returns whether this two-dimensional size attribute is equivalent to the passed in object.
public float getSize (int units)
  Get this two-dimensional size attribute's dimensions in the given units as floating-point values.
public float getX (int units)
  Returns this two-dimensional size attribute's X dimension in the given units as a floating-point value.
protected int getXMicrometers ()
  Returns this two-dimensional size attribute's X dimension in units of micrometers (µm).
public float getY (int units)
  Returns this two-dimensional size attribute's Y dimension in the given units as a floating-point value.
protected int getYMicrometers ()
  Returns this two-dimensional size attribute's Y dimension in units of micrometers (µm).
public int hashCode ()
Returns a hash code value for this two-dimensional size attribute.
public String toString ()
  Returns a string version of this two-dimensional size attribute.
public String toString (int units, String unitsName)
  Returns a string version of this two-dimensional 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