Package java.awt

Examples of java.awt.Graphics2D.hit()


    public boolean hit(Rectangle rect,
                       Shape s,
                       boolean onStroke) {
        Graphics2D g2d = getBogusGraphics2D();

        boolean hitTarget = g2d.hit(rect, s, onStroke);

        g2d.dispose();

        return hitTarget;
    }
View Full Code Here


    public boolean hit(Rectangle rect,
                       Shape s,
                       boolean onStroke) {
        Graphics2D g2d = getBogusGraphics2D(true);

        boolean hitTarget = g2d.hit(rect, s, onStroke);

        g2d.dispose();

        return hitTarget;
    }
View Full Code Here

        if (rect.intersectsLine(p0.getX(), p0.getY(), p1.getX(), p1
            .getY()))
          return true;
      } else {
        Graphics2D g2 = (Graphics2D) graph.getGraphics();
        if (g2.hit(rect, view.getShape(), true))
          return true;
      }
      Rectangle2D r = getLabelBounds(graph, view);
      if (r != null && r.intersects(rect))
        return true;
View Full Code Here

    public boolean hit(Rectangle rect,
                       Shape s,
                       boolean onStroke) {
        Graphics2D g2d = getBogusGraphics2D();

        boolean hitTarget = g2d.hit(rect, s, onStroke);

        g2d.dispose();

        return hitTarget;
    }
View Full Code Here

    public boolean hit(Rectangle rect,
                       Shape s,
                       boolean onStroke) {
        Graphics2D g2d = getBogusGraphics2D(true);

        boolean hitTarget = g2d.hit(rect, s, onStroke);

        g2d.dispose();

        return hitTarget;
    }
View Full Code Here

/*      */
/*      */   public boolean hit(Rectangle rect, Shape s, boolean onStroke)
/*      */   {
/*  951 */     Graphics2D g2d = getBogusGraphics2D(true);
/*      */
/*  953 */     boolean hitTarget = g2d.hit(rect, s, onStroke);
/*      */
/*  955 */     g2d.dispose();
/*      */
/*  957 */     return hitTarget;
/*      */   }
View Full Code Here

/*      */
/*      */   public boolean hit(Rectangle rect, Shape s, boolean onStroke)
/*      */   {
/*  797 */     Graphics2D g2d = getBogusGraphics2D();
/*      */
/*  799 */     boolean hitTarget = g2d.hit(rect, s, onStroke);
/*      */
/*  801 */     g2d.dispose();
/*      */
/*  803 */     return hitTarget;
/*      */   }
View Full Code Here

        Point2D p1 = edgeView.getPoint(1);
        if (rect.intersectsLine(p0.getX(), p0.getY(), p1.getX(), p1
            .getY()))
          return true;
      } else if(g2 != null) {
        if (g2.hit(rect, view.getShape(), true))
          return true;
      }
      Rectangle2D r = getLabelBounds(graph, view);
      if (r != null && r.intersects(rect))
      {
View Full Code Here

          if (applyTransform) {
              angle = getLabelAngle(lab);
              g2.rotate(angle, cx, cy);
          }

          hits = g2.hit(rect, tmp, false);
            } finally {
          g2.setTransform(tx);
            }
        }
View Full Code Here

        if (rect.intersectsLine(p0.getX(), p0.getY(), p1.getX(), p1
            .getY()))
          return true;
      } else {
        Graphics2D g2 = (Graphics2D) graph.getGraphics();
        if (g2.hit(rect, view.getShape(), true))
          return true;
      }
      Rectangle2D r = getLabelBounds(graph, view);
      if (r != null && r.intersects(rect))
        return true;
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.