All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webswing.toolkit.ge.WebScreenDevice Maven / Gradle / Ivy

There is a newer version: 20.2.4
Show newest version
package org.webswing.toolkit.ge;

import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;

import sun.awt.image.BufferedImageDevice;

@SuppressWarnings("restriction")
public class WebScreenDevice extends GraphicsDevice{

    BufferedImageDevice imageDevice;
    GraphicsConfiguration c;
    
    public WebScreenDevice(GraphicsDevice imageDevice,GraphicsConfiguration c) {
        this.imageDevice = (BufferedImageDevice) imageDevice;
        this.c=c;
    }

    @Override
    public int getType() {
        return 0;
    }

    @Override
    public String getIDstring() {
        return imageDevice.getIDstring();
    }

    @Override
    public GraphicsConfiguration[] getConfigurations() {
        return new GraphicsConfiguration[]{c};
    }

    @Override
    public GraphicsConfiguration getDefaultConfiguration() {
        return c;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy