com.gargoylesoftware.htmlunit.javascript.host
Class Screen

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Screen
All Implemented Interfaces:
Serializable, Cloneable, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class Screen
extends SimpleScriptable

A JavaScript object for a Screen. Combines properties from both Mozilla's DOM and IE's DOM.

Version:
$Revision: 7931 $
Author:
Mike Bowler, Daniel Gredler, Chris Erskine
See Also:
MSDN documentation, Mozilla documentation, Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Screen()
          Creates an instance.
 
Method Summary
 int getAvailHeight()
          Returns the availHeight property.
 int getAvailLeft()
          Returns the availLeft property.
 int getAvailTop()
          Returns the availTop property.
 int getAvailWidth()
          Returns the availWidth property.
 int getBufferDepth()
          Returns the bufferDepth property.
 int getColorDepth()
          Returns the colorDepth property.
 int getDeviceXDPI()
          Returns the deviceXDPI property.
 int getDeviceYDPI()
          Returns the deviceYDPI property.
 boolean getFontSmoothingEnabled()
          Returns the fontSmoothingEnabled property.
 int getHeight()
          Returns the height property.
 int getLeft()
          Returns the left property.
 int getLogicalXDPI()
          Returns the logicalXDPI property.
 int getLogicalYDPI()
          Returns the logicalYDPI property.
 int getPixelDepth()
          Returns the pixelDepth property.
 int getTop()
          Returns the top property.
 int getUpdateInterval()
          Returns the updateInterval property.
 int getWidth()
          Returns the width property.
 void setBufferDepth(int bufferDepth)
          Sets the bufferDepth property.
 void setLeft(int left)
          Sets the left property.
 void setTop(int top)
          Sets the top property.
 void setUpdateInterval(int updateInterval)
          Sets the updateInterval property.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScope
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Screen

public Screen()
Creates an instance. JavaScript objects must have a default constructor.

Method Detail

getAvailHeight

public int getAvailHeight()
Returns the availHeight property.

Returns:
the availHeight property

getAvailLeft

public int getAvailLeft()
Returns the availLeft property.

Returns:
the availLeft property

getAvailTop

public int getAvailTop()
Returns the availTop property.

Returns:
the availTop property

getAvailWidth

public int getAvailWidth()
Returns the availWidth property.

Returns:
the availWidth property

getBufferDepth

public int getBufferDepth()
Returns the bufferDepth property.

Returns:
the bufferDepth property

setBufferDepth

public void setBufferDepth(int bufferDepth)
Sets the bufferDepth property.

Parameters:
bufferDepth - the bufferDepth property

getColorDepth

public int getColorDepth()
Returns the colorDepth property.

Returns:
the colorDepth property

getDeviceXDPI

public int getDeviceXDPI()
Returns the deviceXDPI property.

Returns:
the deviceXDPI property

getDeviceYDPI

public int getDeviceYDPI()
Returns the deviceYDPI property.

Returns:
the deviceYDPI property

getFontSmoothingEnabled

public boolean getFontSmoothingEnabled()
Returns the fontSmoothingEnabled property.

Returns:
the fontSmoothingEnabled property

getHeight

public int getHeight()
Returns the height property.

Returns:
the height property

getLeft

public int getLeft()
Returns the left property.

Returns:
the left property

setLeft

public void setLeft(int left)
Sets the left property.

Parameters:
left - the left property

getLogicalXDPI

public int getLogicalXDPI()
Returns the logicalXDPI property.

Returns:
the logicalXDPI property

getLogicalYDPI

public int getLogicalYDPI()
Returns the logicalYDPI property.

Returns:
the logicalYDPI property

getPixelDepth

public int getPixelDepth()
Returns the pixelDepth property.

Returns:
the pixelDepth property

getTop

public int getTop()
Returns the top property.

Returns:
the top property

setTop

public void setTop(int top)
Sets the top property.

Parameters:
top - the top property

getUpdateInterval

public int getUpdateInterval()
Returns the updateInterval property.

Returns:
the updateInterval property

setUpdateInterval

public void setUpdateInterval(int updateInterval)
Sets the updateInterval property.

Parameters:
updateInterval - the updateInterval property

getWidth

public int getWidth()
Returns the width property.

Returns:
the width property


Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.