com.jogamp.newt.util
Class MonitorMode

java.lang.Object
  extended by com.jogamp.newt.util.MonitorMode

public class MonitorMode
extends Object

Immutable MonitorMode Class, consisting of it's read only components:


Constructor Summary
MonitorMode(SurfaceSize surfaceSize, DimensionImmutable screenSizeMM, int refreshRate)
           
 
Method Summary
 boolean equals(Object obj)
          Checks whether two size objects are equal.
 int getRefreshRate()
           
 DimensionImmutable 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,
                   DimensionImmutable screenSizeMM,
                   int refreshRate)
Method Detail

getSurfaceSize

public final SurfaceSize getSurfaceSize()

getScreenSizeMM

public final DimensionImmutable 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.