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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAvailHeight()
int
getAvailLeft()
int
getAvailTop()
int
getAvailWidth()
int
getBufferDepth()
int
getColorDepth()
int
getDeviceXDPI()
int
getDeviceYDPI()
int
getHeight()
int
getLeft()
int
getLogicalXDPI()
int
getLogicalYDPI()
int
getPixelDepth()
int
getSystemXDPI()
int
getSystemYDPI()
int
getTop()
int
getWidth()
boolean
isFontSmoothingEnabled()
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
setBufferDepth(int bufferDepth)
Sets thebufferDepth
property.void
setColorDepth(int colorDepth)
Sets thecolorDepth
property.void
setDeviceXDPI(int deviceXDPI)
Sets thedeviceXDPI
property.void
setDeviceYDPI(int deviceYDPI)
Sets thedeviceYDPI
property.void
setFontSmoothingEnabled(boolean fontSmoothingEnabled)
Sets thefontSmoothingEnabled
property.void
setHeight(int height)
Sets theheight
property.void
setLeft(int left)
Sets theleft
property.void
setLogicalXDPI(int logicalXDPI)
Sets thelogicalXDPI
property.void
setLogicalYDPI(int logicalYDPI)
Sets thelogicalYDPI
property.void
setPixelDepth(int pixelDepth)
Sets thepixelDepth
property.void
setSystemXDPI(int systemXDPI)
Sets thesystemXDPI
property.void
setSystemYDPI(int systemYDPI)
Sets thesystemYDPI
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
-
getBufferDepth
public int getBufferDepth()
- Returns:
- the
bufferDepth
property
-
setBufferDepth
public void setBufferDepth(int bufferDepth)
Sets thebufferDepth
property.- Parameters:
bufferDepth
- thebufferDepth
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
-
isFontSmoothingEnabled
public boolean isFontSmoothingEnabled()
- Returns:
- the
fontSmoothingEnabled
property
-
setFontSmoothingEnabled
public void setFontSmoothingEnabled(boolean fontSmoothingEnabled)
Sets thefontSmoothingEnabled
property.- Parameters:
fontSmoothingEnabled
- thefontSmoothingEnabled
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
-
getLogicalXDPI
public int getLogicalXDPI()
- Returns:
- the
logicalXDPI
property
-
setLogicalXDPI
public void setLogicalXDPI(int logicalXDPI)
Sets thelogicalXDPI
property.- Parameters:
logicalXDPI
- thelogicalXDPI
property
-
getLogicalYDPI
public int getLogicalYDPI()
- Returns:
- the
logicalYDPI
property
-
setLogicalYDPI
public void setLogicalYDPI(int logicalYDPI)
Sets thelogicalYDPI
property.- Parameters:
logicalYDPI
- thelogicalYDPI
property
-
getPixelDepth
public int getPixelDepth()
- Returns:
- the
pixelDepth
property
-
setPixelDepth
public void setPixelDepth(int pixelDepth)
Sets thepixelDepth
property.- Parameters:
pixelDepth
- thepixelDepth
property
-
getSystemXDPI
public int getSystemXDPI()
- Returns:
- the
systemXDPI
property
-
setSystemXDPI
public void setSystemXDPI(int systemXDPI)
Sets thesystemXDPI
property.- Parameters:
systemXDPI
- thesystemXDPI
property
-
getSystemYDPI
public int getSystemYDPI()
- Returns:
- the
systemYDPI
property
-
setSystemYDPI
public void setSystemYDPI(int systemYDPI)
Sets thesystemYDPI
property.- Parameters:
systemYDPI
- thesystemYDPI
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
-
-