Package com.jogamp.newt
Class MonitorMode.SizeAndRRate
java.lang.Object
com.jogamp.newt.MonitorMode.SizeAndRRate
- All Implemented Interfaces:
Comparable<MonitorMode.SizeAndRRate>
- Enclosing class:
- MonitorMode
public static class MonitorMode.SizeAndRRate
extends Object
implements Comparable<MonitorMode.SizeAndRRate>
Immutable surfaceSize, flags and refreshRate Class, consisting of it's read only components:
- nativeId
SurfaceSize
surface memory sizeflags
refresh rate
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
Mode bitfield flags, i.e.final int
final float
Vertical refresh ratefinal SurfaceSize
Non rotated surface size in pixel units -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
Tests equality of twoMonitorMode.SizeAndRRate
objects by evaluating equality of it's components:
surfaceSize
refreshRate
flags
static final StringBuilder
flags2String
(int flags) final int
hashCode()
Returns a combined hash code of it's elements:
surfaceSize
flags
refreshRate
final String
toString()
-
Field Details
-
surfaceSize
Non rotated surface size in pixel units -
flags
public final int flagsMode bitfield flags, i.e.MonitorMode.FLAG_DOUBLESCAN
,MonitorMode.FLAG_INTERLACE
, .. -
refreshRate
public final float refreshRateVertical refresh rate -
hashCode
public final int hashCode
-
-
Constructor Details
-
SizeAndRRate
-
-
Method Details
-
flags2String
-
toString
-
compareTo
Compares
surfaceSize
1st, thenflags
, thenrefreshRate
.Flags are compared as follows:
NONE > DOUBLESCAN > INTERLACE
Refresh rate differences of < 0.01 are considered equal (epsilon).
- Specified by:
compareTo
in interfaceComparable<MonitorMode.SizeAndRRate>
-
equals
Tests equality of twoMonitorMode.SizeAndRRate
objects by evaluating equality of it's components:
surfaceSize
refreshRate
flags
-
hashCode
public final int hashCode()Returns a combined hash code of it's elements:
surfaceSize
flags
refreshRate
-