public class SurfaceSize extends Object implements Comparable<SurfaceSize>
size in pixelsbits per pixel| Constructor and Description |
|---|
SurfaceSize(DimensionImmutable resolution,
int bitsPerPixel) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SurfaceSize ssz)
Compares
resolution 1st, if equal the bitsPerPixel. |
boolean |
equals(Object obj)
Checks whether two size objects are equal.
|
int |
getBitsPerPixel() |
DimensionImmutable |
getResolution()
Returns the resolution in pixel units
|
int |
hashCode() |
String |
toString() |
public SurfaceSize(DimensionImmutable resolution, int bitsPerPixel)
public final DimensionImmutable getResolution()
public final int getBitsPerPixel()
public int compareTo(SurfaceSize ssz)
Compares resolution 1st, if equal the bitsPerPixel.
compareTo in interface Comparable<SurfaceSize>public final boolean equals(Object obj)
SurfaceSize are equal if the two components
resolution and bitsPerPixel
are equal.Copyright 2010 JogAmp Community.