javax.media.nativewindow.util
Class SurfaceSize

java.lang.Object
  extended by javax.media.nativewindow.util.SurfaceSize
All Implemented Interfaces:
Cloneable

public class SurfaceSize
extends Object
implements Cloneable

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


Constructor Summary
SurfaceSize(DimensionReadOnly resolution, int bitsPerPixel)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
          Checks whether two size objects are equal.
 int getBitsPerPixel()
           
 DimensionReadOnly getResolution()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurfaceSize

public SurfaceSize(DimensionReadOnly resolution,
                   int bitsPerPixel)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getResolution

public final DimensionReadOnly getResolution()

getBitsPerPixel

public final int getBitsPerPixel()

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 SurfaceSize are equal if the two components resolution and bitsPerPixel are equal.

Overrides:
equals in class Object
Returns:
true if the two dimensions are equal; otherwise false.

hashCode

public final int hashCode()
Overrides:
hashCode in class Object


Copyright 2010 JogAmp Community.