Package com.cburch.logisim.data

Examples of com.cburch.logisim.data.Location.translate()


            Location ret = getRandomBoundaryPoint(bds, rand);
            int w = getStrokeWidth();
            if (w > 1) {
                int dx = rand.nextInt(w) - w / 2;
                int dy = rand.nextInt(w) - w / 2;
                ret = ret.translate(dx, dy);
            }
            return ret;
        } else {
            return super.getRandomPoint(bds, rand);
        }
View Full Code Here


            dx += 10;
        }

        Location anchorLocation = clip.getAnchorLocation();
        if (anchorLocation != null && dx != 0) {
            anchorLocation = anchorLocation.translate(dx, dx);
        }

        canvas.getProject().doAction(new SelectionAction(canvas,
                getFromLocale("pasteClipboardAction"), null, add, add,
                anchorLocation, clip.getAnchorFacing()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.