if(printerData != null ) {
Printer printer = new Printer(printerData);
if(printer.startJob("Text")) {
GC gc = new GC(printer);
View view = (View) HandlerUtil.getActivePart(event);
SieveResult sr = view.getSieveData().getSeiveResult();
SingleSieve[] s = sr.getSieves();
if(printer.startPage()) {
gc.drawString("Total mass = " + Double.toString(sr.getTotal()) + " gr", 100, 100 );
gc.drawLine(85, 135, 600, 135);
gc.drawLine(85, 185, 600, 185);
gc.drawLine(85, s.length * 50 + 185, 600, s.length * 50 + 185);