MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / Screen

Method Screen

src/main/java/org/htmlunit/Screen.java:42–53  ·  view source on GitHub ↗

Creates an instance. @param webClient the client this belongs to

(final WebClient webClient)

Source from the content-addressed store, hash-verified

40 * @param webClient the client this belongs to
41 */
42 public Screen(final WebClient webClient) {
43 super();
44 screenHeight_ = webClient.getOptions().getScreenHeight();
45 screenWidth_ = webClient.getOptions().getScreenWidth();
46
47 if (webClient.getBrowserVersion().hasFeature(COLOR_DEPHT_32)) {
48 colorDepth_ = 32;
49 }
50 else {
51 colorDepth_ = 24;
52 }
53 }
54
55 /**
56 * @return the {@code availHeight} property

Callers

nothing calls this directly

Calls 5

getScreenHeightMethod · 0.80
getScreenWidthMethod · 0.80
getOptionsMethod · 0.45
hasFeatureMethod · 0.45
getBrowserVersionMethod · 0.45

Tested by

no test coverage detected