public final class TLfnResolution extends Object implements Comparable<TLfnResolution>
A resolution is comparable according to the natural order:
Constructor and Description 

TLfnResolution(double aX,
double aY)
Constructs a new resolution from given X and Y components.

Modifier and Type  Method and Description 

int 
compareTo(TLfnResolution aOther)
Compares this resolution to another.

boolean 
equals(Object aObject) 
double 
getX()
The X component of the spatial resolution.

double 
getY()
The Y component of the spatial resolution.

int 
hashCode() 
String 
toString() 
public TLfnResolution(double aX, double aY)
The allowed values for X and Y components are [0, +Infinity]
.
This constructor throws when one of the components is NaN
or < 0
.
aX
 the X component, must be in the range [0, +Infinity]
aY
 the Y component, must be in the range [0, +Infinity]
public double getX()
public double getY()
public int compareTo(TLfnResolution aOther)
If two different resolutions have the same density, then the one with the greatest X component will be less than the other. For example, resolution 0.5 x 0.01 is less than 0.01 x 0.5.
compareTo
in interface Comparable<TLfnResolution>
aOther
 the resolution to compare this one to1
if this resolution is less than the other, 0
if is equal, or 1
if it is greater
than the other