Example usage for java.awt.print PrinterException getClass

List of usage examples for java.awt.print PrinterException getClass

Introduction

In this page you can find the example usage for java.awt.print PrinterException getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:de.dfki.owlsmx.gui.ResultVisualization.java

public void PrintGraphics2DToPS(String path) throws IOException {
    try {/*from  w ww . j a  v  a 2  s  . c  o  m*/
        //TODO implement saving to PS
        GUIState.displayWarning("Incomplete feature",
                "This feature is still under heavy development and can not yet be used");
        print2DtoPS printer = new print2DtoPS(path, chartPanel, graphPrintHeight, graphPrintHeight);
        printer.print(this.createRPPanel().getGraphics(), new PageFormat(), 0);
    } catch (PrinterException pe) {
        GUIState.displayWarning(pe.getClass().toString(), "Couldn't create PS file!\n" + pe.getMessage());
    }
}