com.jogamp.newt.util
Class MonitorMode

java.lang.Object
  extended by 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:


Constructor Summary
MonitorMode(SurfaceSize surfaceSize, DimensionReadOnly screenSizeMM, int refreshRate)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
          Checks whether two size objects are equal.
 int getRefreshRate()
           
 DimensionReadOnly getScreenSizeMM()
           
 SurfaceSize getSurfaceSize()
           
 int hashCode()
          returns a hash code over surfaceSize and refreshRate.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorMode

public MonitorMode(SurfaceSize surfaceSize,
                   DimensionReadOnly screenSizeMM,
                   int refreshRate)
Method Detail

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.