Example usage for javax.print.attribute.standard MediaPrintableArea MM

List of usage examples for javax.print.attribute.standard MediaPrintableArea MM

Introduction

In this page you can find the example usage for javax.print.attribute.standard MediaPrintableArea MM.

Prototype

int MM

To view the source code for javax.print.attribute.standard MediaPrintableArea MM.

Click Source Link

Document

Value to indicate units of millimeters (mm).

Usage

From source file:net.sourceforge.fenixedu.util.report.ReportsUtils.java

static private PrintRequestAttributeSet createPrintRequestAttributeSet(int width, int height) {
    final PrintRequestAttributeSet result = new HashPrintRequestAttributeSet();

    result.add(MediaSizeName.ISO_A4);
    result.add(OrientationRequested.PORTRAIT);
    result.add(new MediaPrintableArea(0, 0, width, height, MediaPrintableArea.MM));

    return result;
}