List of usage examples for java.awt GraphicsConfiguration getDefaultTransform
public abstract AffineTransform getDefaultTransform();
From source file:Main.java
public static void main(String[] argv) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gs = ge.getDefaultScreenDevice(); GraphicsConfiguration gc = gs.getDefaultConfiguration(); System.out.println(gc.getDefaultTransform()); }
From source file:Main.java
public static void main(String[] args) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice defaultScreen = ge.getDefaultScreenDevice(); GraphicsConfiguration[] configurations = defaultScreen.getConfigurations(); System.out.println("Default screen device: " + defaultScreen.getIDstring()); for (int i = 0; i < configurations.length; i++) { System.out.println(" Configuration " + (i + 1)); GraphicsConfiguration c = configurations[i]; System.out.println(" " + c.getColorModel()); System.out.println(" " + c.getBounds()); System.out.println(" " + c.getBufferCapabilities()); System.out.println(" " + c.getDefaultTransform()); System.out.println(" " + c.getDevice()); }// www .j a va 2s . co m }