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 pixelsbits 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 intcompareTo(SurfaceSize ssz)Comparesresolution1st, if equal the bitsPerPixel.booleanequals(Object obj)Checks whether two size objects are equal.intgetBitsPerPixel()DimensionImmutablegetResolution()Returns the resolution in pixel unitsinthashCode()StringtoString()
-
-
-
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
resolution1st, if equal the bitsPerPixel.- Specified by:
compareToin interfaceComparable<SurfaceSize>
-
equals
public final boolean equals(Object obj)
Checks whether two size objects are equal. Two instances ofSurfaceSizeare equal if the two componentsresolutionandbitsPerPixelare equal.
-
-