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