private BufferedImage generateJobImage( JobMeta jobMeta ) throws Exception { float magnification = 1.0f; Point maximum = jobMeta.getMaximum(); maximum.multiply( magnification ); SwingGC gc = new SwingGC( null, maximum, 32, 0, 0 ); JobPainter jobPainter = new JobPainter( gc, jobMeta, maximum, null, null, null, null, null, new ArrayList<AreaOwner>(), new ArrayList<JobEntryCopy>(), 32, 1, 0, 0, true, "Arial", 10 ); jobPainter.setMagnification( magnification ); jobPainter.drawJob(); BufferedImage image = (BufferedImage) gc.getImage(); return image; }
iconsize, 1, 0, 0, true, "FreeSans", 10 ); painter.setMagnification( magnification );
gc, jobMeta, area, bar, bar, null, null, null, areaOwners, new ArrayList<JobEntryCopy>(), iconsize, 1, 0, 0, true, "FreeSans", 10 ); painter.setMagnification( 0.25f ); painter.drawJob(); BufferedImage bufferedImage = (BufferedImage) gc.getImage();
.getInstance().getNoteFont().getName(), PropsUI.getInstance().getNoteFont().getHeight() ); jobPainter.setMagnification( magnificationFactor ); jobPainter.setEntryLogMap( entryLogMap ); jobPainter.setStartHopEntry( startHopEntry );