com.jogamp.newt.util
Class MonitorMode
java.lang.Object
com.jogamp.newt.util.MonitorMode
- All Implemented Interfaces:
- Cloneable
public class MonitorMode
- extends Object
- implements Cloneable
Immutable MonitorMode Class, consisting of it's read only components:
MonitorMode
public MonitorMode(SurfaceSize surfaceSize,
DimensionReadOnly screenSizeMM,
int refreshRate)
clone
public Object clone()
- Overrides:
clone
in class Object
getSurfaceSize
public final SurfaceSize getSurfaceSize()
getScreenSizeMM
public final DimensionReadOnly getScreenSizeMM()
getRefreshRate
public final int getRefreshRate()
toString
public final String toString()
- Overrides:
toString
in class Object
equals
public final boolean equals(Object obj)
- Checks whether two size objects are equal. Two instances
of
MonitorMode
are equal if the three components
surfaceSize
and refreshRate
are equal. screenSizeMM
is kept out intentional to reduce the requirements for finding the current mode.
- Overrides:
equals
in class Object
- Returns:
true
if the two dimensions are equal;
otherwise false
.
hashCode
public final int hashCode()
- returns a hash code over
surfaceSize
and refreshRate
.
screenSizeMM
is kept out intentional to reduce the requirements for finding the current mode.
- Overrides:
hashCode
in class Object
Copyright 2010 JogAmp Community.