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
SurfaceSizesurface memory sizeflagsrefresh rate
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intMode bitfield flags, i.e.final intfinal floatVertical refresh ratefinal SurfaceSizeNon rotated surface size in pixel units -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanTests equality of twoMonitorMode.SizeAndRRateobjects by evaluating equality of it's components:
surfaceSizerefreshRateflagsstatic final StringBuilderflags2String(int flags) final inthashCode()Returns a combined hash code of it's elements:
surfaceSizeflagsrefreshRatefinal StringtoString()
-
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
surfaceSize1st, thenflags, thenrefreshRate.Flags are compared as follows:
NONE > DOUBLESCAN > INTERLACE
Refresh rate differences of < 0.01 are considered equal (epsilon).
- Specified by:
compareToin interfaceComparable<MonitorMode.SizeAndRRate>
-
equals
Tests equality of twoMonitorMode.SizeAndRRateobjects by evaluating equality of it's components:
surfaceSizerefreshRateflags
-
hashCode
public final int hashCode()Returns a combined hash code of it's elements:
surfaceSizeflagsrefreshRate
-