Example usage for java.awt GraphicsConfiguration getNormalizingTransform

List of usage examples for java.awt GraphicsConfiguration getNormalizingTransform

Introduction

In this page you can find the example usage for java.awt GraphicsConfiguration getNormalizingTransform.

Prototype

public abstract AffineTransform getNormalizingTransform();

Source Link

Document

Returns an AffineTransform that can be concatenated with the default AffineTransform of a GraphicsConfiguration so that 72 units in user space equals 1 inch in device space.

Usage

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.getNormalizingTransform());
}