|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jogamp.newt.MonitorMode.SizeAndRRate
public static class MonitorMode.SizeAndRRate
Immutable surfaceSize, flags and refreshRate Class, consisting of it's read only components:
SurfaceSize surface memory sizeflagsrefresh rate
| Field Summary | |
|---|---|
int |
flags
Mode bitfield flags, i.e. |
int |
hashCode
|
float |
refreshRate
Vertical refresh rate |
SurfaceSize |
surfaceSize
Non rotated surface size |
| Constructor Summary | |
|---|---|
MonitorMode.SizeAndRRate(SurfaceSize surfaceSize,
float refreshRate,
int flags)
|
|
| Method Summary | |
|---|---|
int |
compareTo(MonitorMode.SizeAndRRate sszr)
Compares surfaceSize 1st, then flags, then refreshRate. |
boolean |
equals(Object obj)
Tests equality of two MonitorMode.SizeAndRRate objects
by evaluating equality of it's components:surfaceSize
refreshRate
flags
|
static StringBuilder |
flags2String(int flags)
|
int |
hashCode()
Returns a combined hash code of it's elements: surfaceSize
flags
refreshRate
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final SurfaceSize surfaceSize
public final int flags
MonitorMode.FLAG_DOUBLESCAN, MonitorMode.FLAG_INTERLACE, ..
public final float refreshRate
public final int hashCode
| Constructor Detail |
|---|
public MonitorMode.SizeAndRRate(SurfaceSize surfaceSize,
float refreshRate,
int flags)
| Method Detail |
|---|
public static final StringBuilder flags2String(int flags)
public final String toString()
toString in class Objectpublic int compareTo(MonitorMode.SizeAndRRate sszr)
Compares surfaceSize 1st, then flags, then refreshRate.
Flags are compared as follows:
NONE > DOUBLESCAN > INTERLACE
Refresh rate differences of < 0.01 are considered equal (epsilon).
compareTo in interface Comparable<MonitorMode.SizeAndRRate>public final boolean equals(Object obj)
MonitorMode.SizeAndRRate objects
by evaluating equality of it's components:surfaceSizerefreshRateflags
equals in class Objectpublic final int hashCode()
surfaceSizeflagsrefreshRate
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||