Creates an instance. @param webClient the client this belongs to
(final WebClient webClient)
| 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 |
nothing calls this directly
no test coverage detected