Examples of PaintedPath


Examples of diva.util.java2d.PaintedPath

        polygon.lineTo(70, 80);
        polygon.lineTo(70, 20);
        graphic.add(new PaintedShape(polygon, Color.red, 1.0f));

        Line2D line1 = new Line2D.Double(10, 50, 30, 50);
        graphic.add(new PaintedPath(line1));

        Line2D line2 = new Line2D.Double(70, 50, 90, 50);
        graphic.add(new PaintedPath(line2));

        // Create the icon
        BasicRectangle background = new BasicRectangle(0, 0, 100, 100,
                Color.green.brighter().brighter());
        IconFigure _icon1 = new IconFigure(background, graphic);
View Full Code Here

Examples of diva.util.java2d.PaintedPath

                }

                s = poly;
            }

            PaintedPath pp = new PaintedPath(s);
            processPaintedPathAttributes(pp, attributes);
            return pp;
        } else if (type.equals("text")) {
            PaintedString string = new PaintedString(content);
            processPaintedStringAttributes(string, attributes);
View Full Code Here

Examples of diva.util.java2d.PaintedPath

                }

                s = poly;
            }

            PaintedPath pp = new PaintedPath(s);
            processPaintedPathAttributes(pp, attributes);
            return pp;
        }

        return null;
View Full Code Here

Examples of diva.util.java2d.PaintedPath

            polygon.lineTo(70, 80);
            polygon.lineTo(70, 20);
            graphic.add(new PaintedShape(polygon, Color.red, 1.0f));

            Line2D line1 = new Line2D.Double(10, 50, 30, 50);
            graphic.add(new PaintedPath(line1));

            Line2D line2 = new Line2D.Double(70, 50, 90, 50);
            graphic.add(new PaintedPath(line2));

            // Create the icon
            BasicRectangle background = new BasicRectangle(0, 0, 100, 100,
                    Color.green);
            IconFigure icon = new IconFigure(background, graphic);
View Full Code Here

Examples of diva.util.java2d.PaintedPath

            y1 = _getDouble(attributes, "y1", 0);
            x2 = _getDouble(attributes, "x2", 0);
            y2 = _getDouble(attributes, "y2", 0);

            Line2D line = new Line2D.Double(x1, y1, x2, y2);
            PaintedPath pp = new PaintedPath(line);
            processPaintedPathAttributes(pp, attributes);
            return pp;
        } else if (type.equals("polyline")) {
            double[] coords = parseCoordString((String) attributes
                    .get("points"));
            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]);
            }

            PaintedPath pp = new PaintedPath(poly);
            processPaintedPathAttributes(pp, attributes);
            return pp;
        } else if (type.equals("polygon")) {
            double[] coords = parseCoordString((String) attributes
                    .get("points"));
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.