Package org.htmlunit
Class Screen
- java.lang.Object
-
- org.htmlunit.Screen
-
- All Implemented Interfaces:
java.io.Serializable
public class Screen extends java.lang.Object implements java.io.Serializable
Screen
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
screenHeight_
private int
screenWidth_
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAvailHeight()
int
getAvailLeft()
int
getAvailTop()
int
getAvailWidth()
int
getColorDepth()
int
getDeviceXDPI()
int
getDeviceYDPI()
int
getHeight()
int
getLeft()
int
getPixelDepth()
int
getTop()
int
getWidth()
void
setAvailHeight(int availHeight)
Sets theavailHeight
property.void
setAvailLeft(int availLeft)
Sets theavailLeft
property.void
setAvailTop(int availTop)
Sets theavailTop
property.void
setAvailWidth(int availWidth)
Sets theavailWidth
property.void
setColorDepth(int colorDepth)
Sets thecolorDepth
property.void
setDeviceXDPI(int deviceXDPI)
Sets thedeviceXDPI
property.void
setDeviceYDPI(int deviceYDPI)
Sets thedeviceYDPI
property.void
setHeight(int height)
Sets theheight
property.void
setLeft(int left)
Sets theleft
property.void
setPixelDepth(int pixelDepth)
Sets thepixelDepth
property.void
setTop(int top)
Sets thetop
property.void
setWidth(int width)
Sets thewidth
property.
-
-
-
Constructor Detail
-
Screen
public Screen(WebClient webClient)
Creates an instance.- Parameters:
webClient
- the client this belongs to
-
-
Method Detail
-
getAvailHeight
public int getAvailHeight()
- Returns:
- the
availHeight
property
-
setAvailHeight
public void setAvailHeight(int availHeight)
Sets theavailHeight
property.- Parameters:
availHeight
- theavailHeight
property
-
getAvailLeft
public int getAvailLeft()
- Returns:
- the
availLeft
property
-
setAvailLeft
public void setAvailLeft(int availLeft)
Sets theavailLeft
property.- Parameters:
availLeft
- theavailLeft
property
-
getAvailTop
public int getAvailTop()
- Returns:
- the
availTop
property
-
setAvailTop
public void setAvailTop(int availTop)
Sets theavailTop
property.- Parameters:
availTop
- theavailTop
property
-
getAvailWidth
public int getAvailWidth()
- Returns:
- the
availWidth
property
-
setAvailWidth
public void setAvailWidth(int availWidth)
Sets theavailWidth
property.- Parameters:
availWidth
- theavailWidth
property
-
getColorDepth
public int getColorDepth()
- Returns:
- the
colorDepth
property
-
setColorDepth
public void setColorDepth(int colorDepth)
Sets thecolorDepth
property.- Parameters:
colorDepth
- thecolorDepth
property
-
getDeviceXDPI
public int getDeviceXDPI()
- Returns:
- the
deviceXDPI
property
-
setDeviceXDPI
public void setDeviceXDPI(int deviceXDPI)
Sets thedeviceXDPI
property.- Parameters:
deviceXDPI
- thedeviceXDPI
property
-
getDeviceYDPI
public int getDeviceYDPI()
- Returns:
- the
deviceYDPI
property
-
setDeviceYDPI
public void setDeviceYDPI(int deviceYDPI)
Sets thedeviceYDPI
property.- Parameters:
deviceYDPI
- thedeviceYDPI
property
-
getHeight
public int getHeight()
- Returns:
- the
height
property
-
setHeight
public void setHeight(int height)
Sets theheight
property.- Parameters:
height
- theheight
property
-
getLeft
public int getLeft()
- Returns:
- the
left
property
-
setLeft
public void setLeft(int left)
Sets theleft
property.- Parameters:
left
- theleft
property
-
getPixelDepth
public int getPixelDepth()
- Returns:
- the
pixelDepth
property
-
setPixelDepth
public void setPixelDepth(int pixelDepth)
Sets thepixelDepth
property.- Parameters:
pixelDepth
- thepixelDepth
property
-
getTop
public int getTop()
- Returns:
- the
top
property
-
setTop
public void setTop(int top)
Sets thetop
property.- Parameters:
top
- thetop
property
-
getWidth
public int getWidth()
- Returns:
- the
width
property
-
setWidth
public void setWidth(int width)
Sets thewidth
property.- Parameters:
width
- thewidth
property
-
-