Package org.locationtech.udig.printing.model.impl

Examples of org.locationtech.udig.printing.model.impl.RectangleEllipseBoxPrinter


    }

    public void perform() {

        Shell parentShell = Display.getCurrent().getActiveShell();
        RectangleEllipseBoxPrinter boxPrinter = getPrinter();
        SimpleStyleDialog dialog = new SimpleStyleDialog(parentShell, boxPrinter);
        dialog.setBlockOnOpen(true);

        int result = dialog.open();

        if (result == Window.OK) {

            boxPrinter.setLineWidth(dialog.getLineWidth());
            boxPrinter.setLineAlpha(dialog.getLineAlpha());
            boxPrinter.setLineColor(dialog.getLineColor());
            boxPrinter.setFillAlpha(dialog.getFillAlpha());
            boxPrinter.setFillColor(dialog.getFillColor());
            boxPrinter.setType(dialog.getType());
        } else {
            return;
        }

        boxPrinter.setDirty(true);

    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.printing.model.impl.RectangleEllipseBoxPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.