Examples of containsPoint()


Examples of CH.ifa.draw.framework.Figure.containsPoint()

      {
        Figure child = fe.nextFigure();

        if (figureClass == null || figureClass.isInstance(child))
        {
          if (child.containsPoint(x, y))
          {
            return child;
          }
        }
      }
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.containsPoint()

  {
    FigureEnumeration figures = figures();
    while (figures.hasMoreElements())
    {
      Figure figure = figures.nextFigure();
      if (figure.containsPoint(x, y))
      {
        return figure;
      }
    }
    return null;
View Full Code Here

Examples of CH.ifa.draw.framework.Handle.containsPoint()

    while (k.hasMoreElements())
    {
      handle = (Handle) k.nextElement();

      if (handle.containsPoint(x, y))
        return handle;
    }

    return null;
  }
View Full Code Here

Examples of Hexel.generation.terrainGenerator.heightMaps.HeightMap.containsPoint()

        int ry = this.getHeight()/s/2;
        for (int x = -rx; x < rx; x++) {
          for (int y = -ry; y < ry; y++) {
            int hx = x+xshift;
            int hy = y+yshift;
            if (hm == null || !hm.containsPoint(hx, hy)){
              hm = tmg.getHeightMapAtXY(hx, hy, tmp, null);
            }
            int h = tmg.getHeight(hx, hy, tmp, hm);
            int wh = tmg.getWaterHeight(hx, hy, tmp);
            if (wh > h){
View Full Code Here

Examples of com.eteks.sweethome3d.model.Compass.containsPoint()

        return Arrays.asList(new Selectable [] {foundRoom});
      } else {
        Compass compass = this.home.getCompass();
        if ((!basePlanLocked
              || !isItemPartOfBasePlan(compass))
            && compass.containsPoint(x, y, textMargin)) {
          items.add(compass);
        }
        return items;
      }
    }
View Full Code Here

Examples of com.eteks.sweethome3d.model.HomePieceOfFurniture.containsPoint()

    for (int i = furniture.size() - 1; i >= 0; i--) {
      HomePieceOfFurniture piece = furniture.get(i);
      if ((!basePlanLocked
            || !isItemPartOfBasePlan(piece))
          && piece.isVisible()) {
        if (piece.containsPoint(x, y, margin)) {
          items.add(piece);
          if (foundPiece == null
              || piece.getElevation() > foundPiece.getElevation()) {
            foundPiece = piece;
          }
View Full Code Here

Examples of com.eteks.sweethome3d.model.ObserverCamera.containsPoint()

    float margin = PIXEL_MARGIN / getScale();
    float textMargin = PIXEL_MARGIN / 2 / getScale();
    ObserverCamera camera = this.home.getObserverCamera();
    if (camera != null
        && camera == this.home.getCamera()
        && camera.containsPoint(x, y, margin)) {
      items.add(camera);
      if (stopAtFirstItem) {
        return items;
      }
    }
View Full Code Here

Examples of com.eteks.sweethome3d.model.Room.containsPoint()

      Room foundRoom = null;
      for (int i = rooms.size() - 1; i >= 0; i--) {
        Room room = rooms.get(i);
        if (!basePlanLocked
            || !isItemPartOfBasePlan(room)) {
          if (room.containsPoint(x, y, margin)) {
            items.add(room);
             if (foundRoom == null
                 || room.isCeilingVisible() && !foundRoom.isCeilingVisible()) {
               foundRoom = room;
             }
View Full Code Here

Examples of gov.nasa.arc.mct.canvas.panel.Panel.containsPoint()

     * @return true if the point is in nested manifestation
     */
    boolean isPointinaPanel(Point p) {
        for (Entry<Integer, Panel> entry : renderedPanels.entrySet()) {
            Panel panel = entry.getValue();
            if (panel.containsPoint(p)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of gov.nasa.arc.mct.canvas.panel.Panel.containsPoint()

                                .getInfoProperty(ControlAreaFormattingConstants.PANEL_ORDER);
                Panel panel = renderedPanels.get(Integer.valueOf(panelOrder));
               
                if (panel != null) {
                   
                    if (panel.containsPoint(p)) {
                        View wrappedManifestation = panel.getWrappedManifestation();
                        if (wrappedManifestation instanceof CanvasManifestation) {
                            CanvasManifestation innerCanvasManifestation = (CanvasManifestation) wrappedManifestation;
                            Panel innerPanel = innerCanvasManifestation.findImmediatePanel(p);
                            if (innerPanel != null)
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.