2004.04.29


com.jdc.app.user
Class Display

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SerializableObject
              |
              +--com.jdc.app.user.Display
All Implemented Interfaces:
DisplayDimensions, Serializable

public class Display
extends SerializableObject
implements DisplayDimensions

Display contains all available information regarding the user's display, i.e. screen. This display information is typically obtained by executing the JavaScript code in BrowserSensing.js (include script file). This is analogous to the screen object in JavaScript but the term Display is used here because screen is passe.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Display()
          Constructs a new Display object.
 
Method Summary
 int getColorDepth()
          Returns the display color depth.
 int getHeight()
          Returns the display height.
 int getNumberOfColors()
          Returns the number of display colors available.
 String getResolution()
          Returns the display resolution.
 int getWidth()
          Returns the display width.
 Window getWindow()
          Returns the display window object.
 void setColorDepth(String colorDepth)
          Sets the display color depth.
 void setHeight(String height)
          Sets the display height.
 void setNumberOfColors(String numberOfColors)
          Sets the number of display colors.
 void setWidth(String width)
          Sets the display width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Display

public Display()
Constructs a new Display object.

Method Detail

getColorDepth

public int getColorDepth()
Returns the display color depth.

Returns:
int

getHeight

public int getHeight()
Returns the display height.

Specified by:
getHeight in interface DisplayDimensions
Returns:
int

getNumberOfColors

public int getNumberOfColors()
Returns the number of display colors available.

Returns:
int

getResolution

public String getResolution()
Returns the display resolution.

Specified by:
getResolution in interface DisplayDimensions
Returns:
String

getWidth

public int getWidth()
Returns the display width.

Specified by:
getWidth in interface DisplayDimensions
Returns:
int

getWindow

public Window getWindow()
Returns the display window object.

Returns:
Window

setColorDepth

public void setColorDepth(String colorDepth)
Sets the display color depth.


setHeight

public void setHeight(String height)
Sets the display height.


setNumberOfColors

public void setNumberOfColors(String numberOfColors)
Sets the number of display colors.


setWidth

public void setWidth(String width)
Sets the display width.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.