Mercurial > hg > Applications > TreeVNC
view src/viewer_swing/java/com/glavsoft/viewer/FbRectangle.java @ 551:e912db2ab778
fix RetinaDisplay API for java9 and above
author | e165729 <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 29 Jan 2020 00:25:42 +0900 |
parents | 8d636adb292c |
children | b37ae3e512cc |
line wrap: on
line source
package com.glavsoft.viewer; import java.awt.Rectangle; /** * Created by one on 6/23/16. */ public class FbRectangle extends Rectangle { int retinaScale; int xfb; int yfb; int screenNumber; boolean isRetina; public FbRectangle(int x, int y, int width, int height, int screenNumber, int scale, boolean isRetina) { super(x, y, width, height); this.screenNumber = screenNumber; this.retinaScale = scale; this.isRetina = isRetina; this.xfb = x; this.yfb = y; } public int getRetinaScale() { return retinaScale; } public void setRetinaScale(int retinaScale) { this.retinaScale = retinaScale; } public int getXfb() { return xfb; } public void setXfb(int xfb) { this.xfb = xfb; } public int getYfb() { return yfb; } public void setYfb(int yfb) { this.yfb = yfb; } public int getScreenNumber() { return screenNumber; } public void setScreenNumber(int screenNumber) { this.screenNumber = screenNumber; } public boolean getIsRetina() { return this.isRetina; } @Override public String toString() { return "FRectangle(x="+x+",y="+y+",xFb="+xfb+",yFb="+yfb+",w="+width+",h="+height+")"; } }