view src/viewer_swing/java/com/glavsoft/viewer/FbRectangle.java @ 466:8d636adb292c

fix getFbRectangles
author kono
date Wed, 13 Jul 2016 15:48:17 +0900
parents 4ea47640942a
children e912db2ab778
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;

    public FbRectangle(int x, int y, int width, int height, int screenNumber, int scale) {
        super(x, y, width, height);
        this.screenNumber = screenNumber;
        this.retinaScale = scale;
        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;
    }

    @Override
    public String toString() {
        return "FRectangle(x="+x+",y="+y+",xFb="+xfb+",yFb="+yfb+",w="+width+",h="+height+")";
    }
}