Package com.jogamp.nativewindow.util
Class SurfaceSize
- java.lang.Object
-
- com.jogamp.nativewindow.util.SurfaceSize
-
- All Implemented Interfaces:
Comparable<SurfaceSize>
public class SurfaceSize extends Object implements Comparable<SurfaceSize>
Immutable SurfaceSize Class, consisting of it's read only components:
size in pixels
bits per pixel
-
-
Constructor Summary
Constructors Constructor Description SurfaceSize(DimensionImmutable resolution, int bitsPerPixel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SurfaceSize ssz)
Comparesresolution
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 unitsint
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SurfaceSize
public SurfaceSize(DimensionImmutable resolution, int bitsPerPixel)
-
-
Method Detail
-
getResolution
public final DimensionImmutable getResolution()
Returns the resolution in pixel units
-
getBitsPerPixel
public final int getBitsPerPixel()
-
compareTo
public int compareTo(SurfaceSize ssz)
Compares
resolution
1st, if equal the bitsPerPixel.- Specified by:
compareTo
in interfaceComparable<SurfaceSize>
-
equals
public final boolean equals(Object obj)
Checks whether two size objects are equal. Two instances ofSurfaceSize
are equal if the two componentsresolution
andbitsPerPixel
are equal.
-
-