API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. DisplayMode View Source
Author(s)
Michael Martak
Since
1.4
Version
Serial
Hierarchy
 Object
      DisplayMode
Implements
Subclasses
Description
publicfinal class DisplayMode
  The DisplayMode class encapsulates the bit depth, height, width, and refresh rate of a GraphicsDevice.
Constructors
public DisplayMode (int width, int height, int bitDepth, int refreshRate)
  Create a new display mode object with the supplied parameters.
Methods
Hide/Show inherited methods
public boolean equals (DisplayMode dm)
  Returns whether the two display modes are equal.
public boolean equals (Object dm)
  Indicates whether some other object is "equal to" this one.
public int getBitDepth ()
  Returns the bit depth of the display, in bits per pixel.
public int getHeight ()
  Returns the height of the display, in pixels.
public int getRefreshRate ()
  Returns the refresh rate of the display, in hertz.
public int getWidth ()
  Returns the width of the display, in pixels.
public int hashCode ()
  Returns a hash code value for the object.
Fields
Hide/Show inherited fields
publicfinalstatic int BIT_DEPTH_MULTI = "-1"
  Value of the bit depth if multiple bit depths are supported in this display mode.
publicfinalstatic int REFRESH_RATE_UNKNOWN = "0"
  Value of the refresh rate if not known.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar