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; }
List<AreaOwner> areaOwners = new ArrayList<AreaOwner>(); JobPainter painter = new JobPainter( gc, jobMeta, area, bar, bar, null, null, null, areaOwners, new ArrayList<JobEntryCopy>(), iconsize, 1, 0, 0, true, "FreeSans", 10 );
List<AreaOwner> areaOwners = new ArrayList<AreaOwner>(); JobPainter painter = new JobPainter( gc, jobMeta, area, bar, bar, null, null, null, areaOwners, new ArrayList<JobEntryCopy>(), iconsize, 1, 0, 0, true, "FreeSans", 10 );
new JobPainter( gc, jobMeta, new Point( x, y ), new SwtScrollBar( hori ), new SwtScrollBar( vert ), hop_candidate, drop_candidate, selectionRegion, areaOwners, mouseOverEntries, PropsUI.getInstance().getIconSize(),