MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / print

Method print

ij/src/main/java/ij/plugin/frame/Editor.java:727–738  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

725 }
726
727 void print () {
728 PrintJob pjob = Toolkit.getDefaultToolkit().getPrintJob(this, "Cool Stuff", p);
729 if (pjob != null) {
730 Graphics pg = pjob.getGraphics( );
731 if (pg != null) {
732 String s = ta.getText();
733 printString(pjob, pg, s);
734 pg.dispose( );
735 }
736 pjob.end( );
737 }
738 }
739
740 void printString (PrintJob pjob, Graphics pg, String s) {
741 int pageNum = 1;

Callers 2

actionPerformedMethod · 0.95
print_thread_infoMethod · 0.45

Calls 5

printStringMethod · 0.95
getGraphicsMethod · 0.80
endMethod · 0.65
getTextMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected