Package net.gridshield.nexsm.graphics

Examples of net.gridshield.nexsm.graphics.NexsmPaintableLine


        Point2D p = e.getPoint();
        if (checkModifiers(e) && isConsumer()) {
            if (Math.sqrt( line.getBounds2D().getWidth() + line.getBounds2D().getHeight() ) > 10) {
                Color c = JColorChooser.showDialog(vv, "Choose a foreground color", Color.GRAY);
                if (c != null) {
                    NexsmPaintableLine npb = new NexsmPaintableLine();
                    npb.setP1(vv.inverseTransform(down));
                    npb.setP2(vv.inverseTransform(p));
                    npb.setColor(c);
                    if (gm != null) {
                        gm.putRenderer(vv.getName(), npb);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of net.gridshield.nexsm.graphics.NexsmPaintableLine

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.