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 pixelsbits per pixel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SurfaceSize ssz) Comparesresolution1st, if equal the bitsPerPixel.final booleanChecks whether two size objects are equal.final intfinal DimensionImmutableReturns the resolution in pixel unitsfinal inthashCode()final StringtoString()
-
Constructor Details
-
SurfaceSize
-
-
Method Details
-
getResolution
Returns the resolution in pixel units -
getBitsPerPixel
public final int getBitsPerPixel() -
toString
-
compareTo
Compares
resolution1st, if equal the bitsPerPixel.- Specified by:
compareToin interfaceComparable<SurfaceSize>
-
equals
Checks whether two size objects are equal. Two instances ofSurfaceSizeare equal if the two componentsresolutionandbitsPerPixelare equal. -
hashCode
public final int hashCode()
-