Package java.awt

Examples of java.awt.Rectangle.intersectsLine()


     */
    public boolean contains(int x, int y) {
        Point p = getLocation();
        Rectangle r = new Rectangle(x + p.x - 3, y + p.y - 3, 6, 6);
        for (int i = 0; i < (pathx.length - 1); i++) {
            if (r
                    .intersectsLine(pathx[i], pathy[i], pathx[i + 1],
                            pathy[i + 1]))
                return true;
        }
        return false;
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.