Examples of Shape


Examples of java.awt.Shape

                    return;
                }
            }

            if (isMouseButton2(e)) {
                Shape selectedShape = _elementContainer.getSelection().getSelectedShapeAt(_selX,_selY);
                if (selectedShape instanceof ContextualDrawingProvider && getContextualDrawing()==null) {
                    setContextualDrawing(((ContextualDrawingProvider)selectedShape).getContextualDrawing(_elementContainer.getSelection()));
                    getContextualDrawing().consumeMouseEvent(e);
                }
          
View Full Code Here

Examples of java.awt.Shape

             if (_translatingPoint){
                 res = (ss instanceof ConnectionPathSelection) && ((ConnectionPathSelection)ss).isOneEndSelected();

             } else if (_translatingShapes){
                 Shape s = ss.element;
                 res = (s instanceof Connection) || (s instanceof GatedComponent) ;
             }
         }      
         return res;
     }
View Full Code Here

Examples of java.awt.Shape

                if (gate != null){
                    _currentTrackedGates.add(new TrackedGate(connection, isFirstEndSelected, gate));
                }

            }  else if (_translatingShapes){
                Shape s = ss.element;

                // For each  connection ends, look up for a gate
                if (ss instanceof ConnectionPathSelection){
                    Connection connection = ((ConnectionPathSelection)ss).getConnection();
                    Path connectionPath = connection.getPath();
View Full Code Here

Examples of java.awt.Shape

        return res;
    }
   
    private GatedComponent getGateComponentAt(Point p){
        GatedComponent res = null;
        Shape shape = _elementContainer.getSelection().getShapeAt(p.x, p.y);
        if (shape != null && shape instanceof GatedComponent){
            res = ((GatedComponent)shape);
        }
        return res;
    }
View Full Code Here

Examples of javafx.scene.shape.Shape

     * Creates the bolt that hold the indicator in place
     *
     * @return the indicator bolt
     */
    protected Shape createIndicatorBolt() {
    final Shape indicatorBolt = new Circle(centerX, centerY, dialCenterOuterRadius);
//      createSproket(centerX, centerY, 24, dialCenterOuterRadius / 1.1d,
//        dialCenterOuterRadius, angleStart, dialCenterFillProperty);
    indicatorBolt.setCache(true);
    indicatorBolt.setCacheHint(CacheHint.SPEED);
    Bindings.bindBidirectional(indicatorBolt.fillProperty(), dialCenterFillProperty);
    Bindings.bindBidirectional(indicatorBolt.opacityProperty(), dialCenterOpacityProperty);
    return indicatorBolt;
    }
View Full Code Here

Examples of lineage2.commons.geometry.Shape

            }
            zoneDat.set("PKrestart_points", PKrestartPoints);
          }
          else if ((isShape = "rectangle".equalsIgnoreCase(n.getName())) || "banned_rectangle".equalsIgnoreCase(n.getName()))
          {
            Shape shape = parseRectangle(n);
            if (territory == null)
            {
              territory = new Territory();
              zoneDat.set("territory", territory);
            }
            if (isShape)
            {
              territory.add(shape);
            }
            else
            {
              territory.addBanned(shape);
            }
          }
          else if ((isShape = "circle".equalsIgnoreCase(n.getName())) || "banned_cicrcle".equalsIgnoreCase(n.getName()))
          {
            Shape shape = parseCircle(n);
            if (territory == null)
            {
              territory = new Territory();
              zoneDat.set("territory", territory);
            }
            if (isShape)
            {
              territory.add(shape);
            }
            else
            {
              territory.addBanned(shape);
            }
          }
          else if ((isShape = "polygon".equalsIgnoreCase(n.getName())) || "banned_polygon".equalsIgnoreCase(n.getName()))
          {
            Polygon shape = parsePolygon(n);
            if (!shape.validate())
            {
              error("ZoneParser: invalid territory data : " + shape + ", zone: " + zoneDat.getString("name") + "!");
            }
            if (territory == null)
            {
View Full Code Here

Examples of net.phys2d.raw.shapes.Shape

      return BasicEntity.NULL;
    }
  }
 
  public org.newdawn.slick.geom.Shape shapeForBody(Body body) {
    Shape shape = body.getShape();
    if(shape instanceof Box) {
      Box box  = (Box) shape;
      ROVector2f[] points = box.getPoints(new Vector2f(0.0f, 0.0f), 0.0f);
      Polygon poly = new Polygon();
      for(ROVector2f point: points) {
View Full Code Here

Examples of net.sf.arianne.marboard.client.entity.shape.Shape

   *
   * @param boardState state of the board
   * @param event MouseEvent
   */
  public void handleMouseEvent(BoardState boardState, MouseEvent event) {
    Shape shape = this.board.pickShape(event.getX(), event.getY());
    if (shape != null) {
      logger.info(shape.getRPObject());
    }
  }
View Full Code Here

Examples of net.sf.arianne.marboard.server.entity.shape.Shape

    MarboardZone zone = new MarboardZone("initial_zone");
    super.addRPZone(zone);

    for (int i = 0; i < 20; i++) {
      Shape shape = new Dot(Color.BLACK.getRGB(), i, i * 25 + 25, i * 25 + 25, i);
      zone.add(shape);
    }

    Shape shape = new Dot(Color.RED.getRGB(), 10, 50, 25, 30);
    zone.add(shape);
  }
View Full Code Here

Examples of nu.fw.jeti.plugins.drawing.shapes.Shape

    transVector = vector;
  }

  public void execute(PicturesContent shapesBoard) {
    for (long shapeId : shapeIdList) {
      Shape s = allShapes.get(shapeId);
      if (s != null) {
        s.changeCoordinates(transVector);
      }
    }
    shapesBoard.pictureChanged();
  }
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.