Package diva.util.java2d

Examples of diva.util.java2d.Polyline2D.lineTo()


        _shape = new BasicFigure(path, Color.red);
        layer.add(_shape);

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
View Full Code Here


        layer.add(_shape);

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
        _line = new BasicFigure(poly);
View Full Code Here

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
        _line = new BasicFigure(poly);
        layer.add(_line);
View Full Code Here

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
        _line = new BasicFigure(poly);
        layer.add(_line);
    }
View Full Code Here

        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
        _line = new BasicFigure(poly);
        layer.add(_line);
    }
View Full Code Here

        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
        _line = new BasicFigure(poly);
        layer.add(_line);
    }

    /** Create the interaction on the figures. We make a different
View Full Code Here

            } else {
                Polyline2D poly = new Polyline2D.Double();
                poly.moveTo(coords[0], coords[1]);

                for (int i = 2; i < coords.length; i += 2) {
                    poly.lineTo(coords[i], coords[i + 1]);
                }

                s = poly;
            }
View Full Code Here

            } else {
                Polyline2D poly = new Polyline2D.Double();
                poly.moveTo(coords[0], coords[1]);

                for (int i = 2; i < coords.length; i += 2) {
                    poly.lineTo(coords[i], coords[i + 1]);
                }

                s = poly;
            }
View Full Code Here

        } else {
            throw new RuntimeException("unknown dir");
        }

        Polyline2D route = _route(point, dir, tail, tailDir);
        route.lineTo(head.getX(), head.getY());

        //System.out.println("route = " + route);
        return route;
    }
View Full Code Here

     */
    public void createPolyline() {
        FigureLayer layer = graphicsPane.getForegroundLayer();
        Polyline2D path = new Polyline2D.Double();
        path.moveTo(240, 120);
        path.lineTo(280, 140);
        path.lineTo(240, 160);
        path.lineTo(280, 180);
        path.lineTo(240, 200);
        path.lineTo(280, 220);
        path.lineTo(240, 240);
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.