public static class MonitorMode.SizeAndRRate extends Object implements Comparable<MonitorMode.SizeAndRRate>
SurfaceSize surface memory sizeflagsrefresh rate| Modifier and Type | Field and Description |
|---|---|
int |
flags
Mode bitfield flags, i.e.
|
int |
hashCode |
float |
refreshRate
Vertical refresh rate
|
SurfaceSize |
surfaceSize
Non rotated surface size in pixel units
|
| Constructor and Description |
|---|
MonitorMode.SizeAndRRate(SurfaceSize surfaceSize,
float refreshRate,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MonitorMode.SizeAndRRate sszr)
|
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() |
public final SurfaceSize surfaceSize
public final int flags
MonitorMode.FLAG_DOUBLESCAN, MonitorMode.FLAG_INTERLACE, ..public final float refreshRate
public final int hashCode
public MonitorMode.SizeAndRRate(SurfaceSize surfaceSize, float refreshRate, int flags)
public static final StringBuilder flags2String(int flags)
public 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:surfaceSizerefreshRateflagsCopyright 2010 JogAmp Community.