Package java.awt.geom

Examples of java.awt.geom.Rectangle2D.intersect()


        Rectangle2D aoi = rc.getAreaOfInterest().getBounds2D();
        aoi.setRect(aoi.getX() - scale/2,
                    aoi.getY() - scale/2,
                    aoi.getWidth() + scale,
                    aoi.getHeight() + scale);
        aoi.intersect(displaced.getBounds2D(), aoi, aoi);

        RenderContext srcRc
            = new RenderContext(srcAt,
                                aoi,
                                rh);
View Full Code Here


        default:
            throw new Error(); // can't be reached
        }

        Rectangle2D region = new Rectangle2D.Double(x, y, w, h);
        region.intersect(region, filterRegion, region);
        return region;
    }

    /////////////////////////////////////////////////////////////////////////
    // region convenient methods
View Full Code Here

        default:
            throw new Error(); // can't be reached
        }

        Rectangle2D region = new Rectangle2D.Double(x, y, w, h);
        region.intersect(region, filterRegion, region);
        return region;
    }

    /////////////////////////////////////////////////////////////////////////
    // region convenient methods
View Full Code Here

    (filter.getBounds2D()).getBounds2D();
        }
        // Factor in the clipping area, if any
        if (tBounds != null) {
            if (clip != null) {
                tBounds.intersect
        (tBounds,
         t.createTransformedShape(clip.getClipPath()).getBounds2D(),
         tBounds);
            }
View Full Code Here

         tBounds);
            }

            // Factor in the mask, if any
            if(mask != null) {
                tBounds.intersect
        (tBounds,
         t.createTransformedShape(mask.getBounds2D()).getBounds2D(),
         tBounds);
            }
        }
View Full Code Here

        Shape aoi = rc.getAreaOfInterest();
        if (aoi == null)
            aoi = getBounds2D();

        Rectangle2D aoiR = aoi.getBounds2D();
        aoiR.intersect(aoiR, getBounds2D(), aoiR);

        AffineTransform at = rc.getTransform();
        Rectangle devRect = at.createTransformedShape(aoiR).getBounds();

        if(devRect.width == 0 || devRect.height == 0){
View Full Code Here

        Shape aoi = rc.getAreaOfInterest();
        if (aoi == null)
            aoi = getBounds2D();

        Rectangle2D aoiR = aoi.getBounds2D();
        aoiR.intersect(aoiR, getBounds2D(), aoiR);

        AffineTransform at = rc.getTransform();
        Rectangle devRect = at.createTransformedShape(aoiR).getBounds();

        if(devRect.width == 0 || devRect.height == 0){
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.