30package com.jogamp.nativewindow.util;
41 final int bitsPerPixel;
44 if(
null==resolution || bitsPerPixel<=0) {
45 throw new IllegalArgumentException(
"resolution must be set and bitsPerPixel greater 0");
47 this.resolution=resolution;
48 this.bitsPerPixel=bitsPerPixel;
62 return "[ "+resolution+
" pixels x "+bitsPerPixel+
" bpp ]";
78 if(bitsPerPixel > xbpp) {
80 }
else if(bitsPerPixel < xbpp) {
95 public final boolean equals(
final Object obj) {
96 if(
this == obj) {
return true; }
Immutable SurfaceSize Class, consisting of it's read only components:
final boolean equals(final Object obj)
Checks whether two size objects are equal.
final DimensionImmutable getResolution()
Returns the resolution in pixel units.
SurfaceSize(final DimensionImmutable resolution, final int bitsPerPixel)
final int getBitsPerPixel()
int compareTo(final SurfaceSize ssz)
Immutable Dimension Interface, consisting of it's read only components:
boolean equals(Object obj)
Checks whether two dimensions objects are equal.
int compareTo(final DimensionImmutable d)