/** * Sets the height of the screen emulation resolution. * * @param height the height of the screen * @return self-reference */ public Builder setHeight(int height) { setResolution(new Dimension(config.getResolution().getWidth(), height)); return this; }
/** * Sets the width of the screen emulation resolution. * * @param width the width of the screen * @return self-reference */ public Builder setWidth(int width) { setResolution(new Dimension(width, config.getResolution().getHeight())); return this; }