Package java.awt

Examples of java.awt.Shape.intersects()


            }
            else if (orientation == PlotOrientation.VERTICAL) {
                shape = ShapeUtilities.createTranslatedShape(shape, transX1,
                        transY1);
            }
            if (shape.intersects(dataArea)) {
                if (getItemShapeFilled(series, item)) {
                    g2.fill(shape);
                }
                else {
                    g2.draw(shape);
View Full Code Here


                                oldOpImage.mapDestRect(dstRect, idx);
                            if(srcRect == null) {
                                gp = null;
                                break;
                            }
                            if(srcInvalidRegion.intersects(srcRect)) {
                                if(gp == null) {
                                    gp = new GeneralPath(dstRect);
                                } else {
                                    gp.append(dstRect, false);
                                }
View Full Code Here

                                oldPISP.mapDestRect(dstRect, idx);
                            if(srcRect == null) {
                                gp = null;
                                break;
                            }
                            if(srcInvalidRegion.intersects(srcRect)) {
                                if(gp == null) {
                                    gp = new GeneralPath(dstRect);
                                } else {
                                    gp.append(dstRect, false);
                                }
View Full Code Here

        MagnifyShapeTransformer mst = (MagnifyShapeTransformer)transformer;
        int w = icon.getIconWidth();
        int h = icon.getIconHeight();
        Rectangle2D r = new Rectangle2D.Double(x-w/2,y-h/2,w,h);
        Shape lens = mst.getLensShape();
        if(lens.intersects(r)) {
          // magnify the whole icon
          Rectangle2D s = mst.magnify(r).getBounds2D();
          if(lens.intersects(s)) {
            clip = mst.transform(clip);
            double sx = s.getWidth()/r.getWidth();
View Full Code Here

        Rectangle2D r = new Rectangle2D.Double(x-w/2,y-h/2,w,h);
        Shape lens = mst.getLensShape();
        if(lens.intersects(r)) {
          // magnify the whole icon
          Rectangle2D s = mst.magnify(r).getBounds2D();
          if(lens.intersects(s)) {
            clip = mst.transform(clip);
            double sx = s.getWidth()/r.getWidth();
            double sy = s.getHeight()/r.getHeight();

            AffineTransform old = delegate.getTransform();
View Full Code Here

                    if (edgeShape == null)
                      continue;

                    // because of the transform, the edgeShape is now a GeneralPath
                    // see if this edge is the closest of any that intersect
                    if(edgeShape.intersects(pickArea)) {
                        float cx=0;
                        float cy=0;
                        float[] f = new float[6];
                        PathIterator pi = new GeneralPath(edgeShape).getPathIterator(null);
                        if(pi.isDone()==false) {
View Full Code Here

/*      */
/*  671 */               if (srcRect == null) {
/*  672 */                 gp = null;
/*  673 */                 break;
/*      */               }
/*  675 */               if (srcInvalidRegion.intersects(srcRect)) {
/*  676 */                 if (gp == null)
/*  677 */                   gp = new GeneralPath(dstRect);
/*      */                 else
/*  679 */                   gp.append(dstRect, false);
/*      */               }
View Full Code Here

/*      */
/* 1154 */               if (srcRect == null) {
/* 1155 */                 gp = null;
/* 1156 */                 break;
/*      */               }
/* 1158 */               if (srcInvalidRegion.intersects(srcRect)) {
/* 1159 */                 if (gp == null)
/* 1160 */                   gp = new GeneralPath(dstRect);
/*      */                 else
/* 1162 */                   gp.append(dstRect, false);
/*      */               }
View Full Code Here

        }

        // FIXME: draw outliers

        // add an entity for the item...
        if (entities != null && box.intersects(dataArea)) {
            addEntity(entities, box, dataset, series, item, yyAverage, xx);
        }

    }
View Full Code Here

        if (outlierListCollection.isLowFarOut()) {
            drawLowFarOut(aRadius, g2, xx, minAxisValue);
        }

        // add an entity for the item...
        if (entities != null && box.intersects(dataArea)) {
            addEntity(entities, box, dataset, series, item, xx, yyAverage);
        }

    }
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.