Package java.awt.geom

Examples of java.awt.geom.AffineTransform.createTransformedShape()


            for (int i = 0; i < count; i++) {
                Shape childOutline = children[i].getOutline();
                if (childOutline != null) {
                    AffineTransform tr = children[i].getTransform();
                    if (tr != null) {
                        ((GeneralPath)outline).append(tr.createTransformedShape(childOutline), false);
                    } else {
                        ((GeneralPath)outline).append(childOutline, false);
                    }
                }
            }
View Full Code Here


        GraphicsNode node = (GraphicsNode) o;
        {
            Rectangle2D     rgn = node.getBounds();
            AffineTransform at  = node.getTransform();
            if ((rgn != null) && (at != null))
                rgn = at.createTransformedShape(rgn).getBounds2D();
            fireGraphicsNodeChangeStarted(rgn,rgn);
        }
        // Reparent the graphics node and tidy up the tree's state
        if (node.getParent() != null) {
            node.getParent().getChildren().remove(node);
View Full Code Here

        GraphicsNode node = (GraphicsNode) o;
        {
            Rectangle2D     rgn = node.getBounds();
            AffineTransform at  = node.getTransform();
            if ((rgn != null) && (at != null))
                rgn = at.createTransformedShape(rgn).getBounds2D();
            fireGraphicsNodeChangeStarted(rgn,rgn);
        }
        // Reparent the graphics node and tidy up the tree's state
        if (node.getParent() != null) {
            node.getParent().getChildren().remove(node);
View Full Code Here

        GraphicsNode node = (GraphicsNode) o;
        {
            Rectangle2D     rgn = node.getBounds();
            AffineTransform at  = node.getTransform();
            if ((rgn != null) && (at != null))
                rgn = at.createTransformedShape(rgn).getBounds2D();
            fireGraphicsNodeChangeStarted(rgn,rgn);
        }
        // Reparent the graphics node and tidy up the tree's state
        if (node.getParent() != null) {
            node.getParent().getChildren().remove(node);
View Full Code Here

                if (glyphTransform != null)
                    tr.concatenate(glyphTransform);
                tr.scale(scaleFactor, scaleFactor);

                tempLogicalBounds[i] = tr.createTransformedShape(glyphBounds);

                Point2D tp1 = new Point2D.Double();
                Point2D tp2 = new Point2D.Double();
                Point2D tp3 = new Point2D.Double();
                tr.transform(p1, tp1);
View Full Code Here

        GraphicsNode oldNode = children[index];
        {
            Rectangle2D     rgn = oldNode.getBounds();
            AffineTransform at  = oldNode.getTransform();
            if ((rgn != null) && (at != null))
                rgn = at.createTransformedShape(rgn).getBounds2D();
            fireGraphicsNodeChangeStarted(rgn,rgn);
        }
        // Remove the node at the specified index
        modCount++;
        int numMoved = count - index - 1;
View Full Code Here

     * of this GlyphVector, offset to x, y.
     */
    public Shape getOutline(float x, float y) {
        Shape outline = getOutline();
        AffineTransform tr = AffineTransform.getTranslateInstance(x,y);
        outline = tr.createTransformedShape(outline);
        return outline;
    }

    /**
     * Returns the visual bounds of this GlyphVector The visual bounds is the
View Full Code Here

        try {
            inv = renderingTransform.createInverse();
        } catch (NoninvertibleTransformException e) {
            throw new InternalError(e.getMessage());
        }
        Shape s = inv.createTransformedShape
            (new Rectangle(0, 0, d.width, d.height));

        // Rendering thread setup.
        gvtTreeRenderer = new GVTTreeRenderer(renderer, renderingTransform,
                                              doubleBufferedRendering,
View Full Code Here

            }

            //get the transform for the node
            AffineTransform at = getCTM();

            b = at.createTransformedShape(b);
           
            //return the bounding box of the outline
            return b.getBounds2D();

        }
View Full Code Here

        if (clip != null) {
            try {
                AffineTransform at = new AffineTransform(positionTransform);
                at.concatenate(viewingTransform);
                at = at.createInverse(); // clip in user space
                clip = at.createTransformedShape(clip);
                Filter filter = cgn.getGraphicsNodeRable(true);
                cgn.setClip(new ClipRable8Bit(filter, clip));
            } catch (NoninvertibleTransformException ex) {}
        }
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.