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.SerializableScreen.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAvailHeight()intgetAvailLeft()intgetAvailTop()intgetAvailWidth()intgetBufferDepth()intgetColorDepth()intgetDeviceXDPI()intgetDeviceYDPI()intgetHeight()intgetLeft()intgetLogicalXDPI()intgetLogicalYDPI()intgetPixelDepth()intgetSystemXDPI()intgetSystemYDPI()intgetTop()intgetWidth()booleanisFontSmoothingEnabled()voidsetAvailHeight(int availHeight)Sets theavailHeightproperty.voidsetAvailLeft(int availLeft)Sets theavailLeftproperty.voidsetAvailTop(int availTop)Sets theavailTopproperty.voidsetAvailWidth(int availWidth)Sets theavailWidthproperty.voidsetBufferDepth(int bufferDepth)Sets thebufferDepthproperty.voidsetColorDepth(int colorDepth)Sets thecolorDepthproperty.voidsetDeviceXDPI(int deviceXDPI)Sets thedeviceXDPIproperty.voidsetDeviceYDPI(int deviceYDPI)Sets thedeviceYDPIproperty.voidsetFontSmoothingEnabled(boolean fontSmoothingEnabled)Sets thefontSmoothingEnabledproperty.voidsetHeight(int height)Sets theheightproperty.voidsetLeft(int left)Sets theleftproperty.voidsetLogicalXDPI(int logicalXDPI)Sets thelogicalXDPIproperty.voidsetLogicalYDPI(int logicalYDPI)Sets thelogicalYDPIproperty.voidsetPixelDepth(int pixelDepth)Sets thepixelDepthproperty.voidsetSystemXDPI(int systemXDPI)Sets thesystemXDPIproperty.voidsetSystemYDPI(int systemYDPI)Sets thesystemYDPIproperty.voidsetTop(int top)Sets thetopproperty.voidsetWidth(int width)Sets thewidthproperty.
-
-
-
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
availHeightproperty
-
setAvailHeight
public void setAvailHeight(int availHeight)
Sets theavailHeightproperty.- Parameters:
availHeight- theavailHeightproperty
-
getAvailLeft
public int getAvailLeft()
- Returns:
- the
availLeftproperty
-
setAvailLeft
public void setAvailLeft(int availLeft)
Sets theavailLeftproperty.- Parameters:
availLeft- theavailLeftproperty
-
getAvailTop
public int getAvailTop()
- Returns:
- the
availTopproperty
-
setAvailTop
public void setAvailTop(int availTop)
Sets theavailTopproperty.- Parameters:
availTop- theavailTopproperty
-
getAvailWidth
public int getAvailWidth()
- Returns:
- the
availWidthproperty
-
setAvailWidth
public void setAvailWidth(int availWidth)
Sets theavailWidthproperty.- Parameters:
availWidth- theavailWidthproperty
-
getBufferDepth
public int getBufferDepth()
- Returns:
- the
bufferDepthproperty
-
setBufferDepth
public void setBufferDepth(int bufferDepth)
Sets thebufferDepthproperty.- Parameters:
bufferDepth- thebufferDepthproperty
-
getColorDepth
public int getColorDepth()
- Returns:
- the
colorDepthproperty
-
setColorDepth
public void setColorDepth(int colorDepth)
Sets thecolorDepthproperty.- Parameters:
colorDepth- thecolorDepthproperty
-
getDeviceXDPI
public int getDeviceXDPI()
- Returns:
- the
deviceXDPIproperty
-
setDeviceXDPI
public void setDeviceXDPI(int deviceXDPI)
Sets thedeviceXDPIproperty.- Parameters:
deviceXDPI- thedeviceXDPIproperty
-
getDeviceYDPI
public int getDeviceYDPI()
- Returns:
- the
deviceYDPIproperty
-
setDeviceYDPI
public void setDeviceYDPI(int deviceYDPI)
Sets thedeviceYDPIproperty.- Parameters:
deviceYDPI- thedeviceYDPIproperty
-
isFontSmoothingEnabled
public boolean isFontSmoothingEnabled()
- Returns:
- the
fontSmoothingEnabledproperty
-
setFontSmoothingEnabled
public void setFontSmoothingEnabled(boolean fontSmoothingEnabled)
Sets thefontSmoothingEnabledproperty.- Parameters:
fontSmoothingEnabled- thefontSmoothingEnabledproperty
-
getHeight
public int getHeight()
- Returns:
- the
heightproperty
-
setHeight
public void setHeight(int height)
Sets theheightproperty.- Parameters:
height- theheightproperty
-
getLeft
public int getLeft()
- Returns:
- the
leftproperty
-
setLeft
public void setLeft(int left)
Sets theleftproperty.- Parameters:
left- theleftproperty
-
getLogicalXDPI
public int getLogicalXDPI()
- Returns:
- the
logicalXDPIproperty
-
setLogicalXDPI
public void setLogicalXDPI(int logicalXDPI)
Sets thelogicalXDPIproperty.- Parameters:
logicalXDPI- thelogicalXDPIproperty
-
getLogicalYDPI
public int getLogicalYDPI()
- Returns:
- the
logicalYDPIproperty
-
setLogicalYDPI
public void setLogicalYDPI(int logicalYDPI)
Sets thelogicalYDPIproperty.- Parameters:
logicalYDPI- thelogicalYDPIproperty
-
getPixelDepth
public int getPixelDepth()
- Returns:
- the
pixelDepthproperty
-
setPixelDepth
public void setPixelDepth(int pixelDepth)
Sets thepixelDepthproperty.- Parameters:
pixelDepth- thepixelDepthproperty
-
getSystemXDPI
public int getSystemXDPI()
- Returns:
- the
systemXDPIproperty
-
setSystemXDPI
public void setSystemXDPI(int systemXDPI)
Sets thesystemXDPIproperty.- Parameters:
systemXDPI- thesystemXDPIproperty
-
getSystemYDPI
public int getSystemYDPI()
- Returns:
- the
systemYDPIproperty
-
setSystemYDPI
public void setSystemYDPI(int systemYDPI)
Sets thesystemYDPIproperty.- Parameters:
systemYDPI- thesystemYDPIproperty
-
getTop
public int getTop()
- Returns:
- the
topproperty
-
setTop
public void setTop(int top)
Sets thetopproperty.- Parameters:
top- thetopproperty
-
getWidth
public int getWidth()
- Returns:
- the
widthproperty
-
setWidth
public void setWidth(int width)
Sets thewidthproperty.- Parameters:
width- thewidthproperty
-
-