Examples of Shape


Examples of org.openstreetmap.josm.data.imagery.Shape

                    newState = State.PROJECTIONS;
                }
                break;
            case BOUNDS:
                if ("shape".equals(qName)) {
                    shape = new Shape();
                    newState = State.SHAPE;
                }
                break;
            case SHAPE:
                if ("point".equals(qName)) {
View Full Code Here

Examples of org.pptx4j.pml.Shape

      List<Object> possiblyShapes = getJaxbElement().getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame();
           
      for (Object o : possiblyShapes) {
       
        if (o instanceof Shape) {
          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
            ShapeWrapper sw = new ShapeWrapper(sp, placeholder.getType().toString(),
                this);
            indexedPlaceHolders.put(sw.getPhType(), sw);
            log.debug("Indexed: " + sw.getPhType() + " in " + sw.getOwner().getPartName().toString() );
          }
View Full Code Here

Examples of org.sgx.yuigwt.yui.graphic.Shape

    Graphic g1 = Y.newGraphic(GraphicConfig.create().render(parent));
   
    //move the graphic to parent's position
    g1.x(parent.getX()).y(parent.getY());
   
    Shape rect1 = g1.addShape(ShapeConfig.createRect().
      width(200).height(120).x(100).y(50).
      fill(Fill.create().color("red").opacity(0.7))
    );
   
    Shape circle1 = g1.addShape(ShapeConfig.createCircle().
      x(100).y(50).radius(70).
      fill(Fill.create().color("blue").opacity(0.5))
    );
   
    Shape ellipse1 = g1.addShape(ShapeConfig.createEllipse().
      x(0).y(0).height(70).width(220).   
      fill(Fill.create().
        type(Fill.TYPE_LINEAR).
        rotation(271).stops(new FillStop[]{
          FillStop.create("#ff6666").opacity(0.8).offset(0),
          FillStop.create("#00ffff").opacity(0.8).offset(0.5),
          FillStop.create("#000000").opacity(0.6).offset(1)
        })
      )
    );
   
    //make the ellipse draggable
    Drag mydrag = Y.newDDDrag(DragConfig.create().node(ellipse1));
   
    //draw a path
    Shape diamond1 = g1.addShape(ShapeConfig.createPath().
      fill(Fill.create().color("blue").opacity(0.5))
    );
    diamond1.moveTo(60, 60);
    diamond1.lineTo(80, 40);
    diamond1.lineTo(100, 60);
    diamond1.lineTo(80, 80);
    diamond1.lineTo(60, 60);
    diamond1.end();
   
    //register a clicl listener
    Y.one(diamond1.node()).on("click", new EventCallback() {     
      @Override
      public void call(EventFacade e) {
        Window.alert("clicked");
      }
    });   
View Full Code Here

Examples of org.springframework.data.geo.Shape

  public void convertsBoxToDbObjectAndBackCorrectly() {

    Box box = new Box(new Point(1, 2), new Point(3, 4));

    DBObject dbo = GeoConverters.BoxToDbObjectConverter.INSTANCE.convert(box);
    Shape shape = GeoConverters.DbObjectToBoxConverter.INSTANCE.convert(dbo);

    assertThat(shape, is((org.springframework.data.geo.Shape) box));
  }
View Full Code Here

Examples of org.test.shape.Shape

  public void testFormalAndActualTypeInDifferentPackages(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    PolymorphicShapeService service = new PolymorphicShapeService();
    PolymorphicShapePortType port = service.getPolymorphicShapePort();
    Shape shapeType;

        TestLogger.logger.debug("Sending Request to draw Square");
    Square shape = new Square();
    shape.setXAxis(1);
    shape.setYAxis(1);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Shape

      public void onDragEnd(DragEndEvent event) {

        Widget widget = event.getContext().draggable;
        if (event.getContext().vetoException != null) {
          if (event.getContext().draggable instanceof Shape) {
            Shape draggable = (Shape) event.getContext().draggable;
            draggable.updateConnectors();
          }
        }
        if (widget instanceof Shape) {
          Shape shape = (Shape) event.getContext().draggable;
          if (!ctrlPressed) {
            fixShapePosition(shape);

            for (ConnectionPoint cp : shape.connectionPoints) {
              for (EndPoint ep : cp.gluedEndPoints) {
                // connector between two dragged shapes
                if (ep.connector.startEndPoint.gluedConnectionPoint != null
                    && ep.connector.endEndPoint.gluedConnectionPoint != null
                    && ep.connector.startEndPoint.gluedConnectionPoint.getParentWidget() != null
                    && ep.connector.endEndPoint.gluedConnectionPoint.getParentWidget() != null
                    && selectedWidgets.contains(ep.connector.startEndPoint.gluedConnectionPoint.getParentWidget())
                    && selectedWidgets.contains(ep.connector.endEndPoint.gluedConnectionPoint.getParentWidget())) {
                  ep.connector.moveOffsetFromStartPos(shape.getTranslationX(), shape.getTranslationY());
                } else {
                  ep.connector.updateCornerPoints();
                }
              }
            }

            fixLineSections(shape);
          } else {
            fixShapePosition(shape);
            for (Connector c : shape.getConnectedConnectors()) {
              if (c.startEndPoint.gluedConnectionPoint != null && c.endEndPoint.gluedConnectionPoint != null
                  && c.startEndPoint.gluedConnectionPoint.getParentWidget() != null
                  && c.endEndPoint.gluedConnectionPoint.getParentWidget() != null
                  && selectedWidgets.contains(c.startEndPoint.gluedConnectionPoint.getParentWidget())
                  && selectedWidgets.contains(c.endEndPoint.gluedConnectionPoint.getParentWidget())) {
                c.moveOffsetFromStartPos(shape.getTranslationX(), shape.getTranslationY());
              } else {
                c.fixEndSectionDirection(c.endEndPoint);
                c.fixEndSectionDirection(c.startEndPoint);
                c.fixLineSections(c.getCorners());
                c.drawSections();
View Full Code Here

Examples of shapes.common.Shape

      builder.endGroup();
      builder.setStroke(Color.RED);
      builder.setLocation(150, 50);
    builder.endGroup();
    builder.setLocation(50, 100);
    final Shape s1 = builder.getProduct();
   
    final Shape s2 = new Location(50, 100,
        new Group(
          new Circle(20),
          new Rectangle(100, 200),
          new Location(150, 50,
            new Stroke(Color.RED,
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.Shape

    final Flag useNonScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseNonScalingStrokes");
    final Flag useScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseScalingStrokes");
    final UINT32 offset = parseUINT32(parser, 0x00006, "DefineMorphShape2::Offset");
    final MorphFillStyleArray morphFillStyles = MorphFillStyleArrayParser.parse(parser, "DefineMorphShape::MorphFillStyleArray");
    final MorphLineStyleArray2 morphLineStyles = MorphLineStyleArray2Parser.parse(parser, "DefineMorphShape::MorphLineSyleArray");
    final Shape startEdges = ShapeParser.parse(parser, "DefineMorphShape2::StartEdges");
    final Shape endEdges = ShapeParser.parse(parser, "DefineMorphShape2::EndEdges");

    return new DefineMorphShape2Tag(header, characterId, startBounds, endBounds, startEdgeBounds, endEdgeBounds, reserved, useNonScalingStrokes, useScalingStrokes, offset, morphFillStyles, morphLineStyles, startEdges, endEdges);
  }
View Full Code Here

Examples of urban.shapes.Shape

   * @param expression an agent list that represents a shape
   * @param e an energy value
   */
  public ShapeStatement(String id, List<Agent> expression, Double e) {
    this.id = id;
    this.s = new Shape(expression);
    this.e = e;
  }
View Full Code Here

Examples of urban.urban.Shape

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.SHAPE:
      {
        Shape shape = (Shape)theEObject;
        T result = caseShape(shape);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.GENERATOR:
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.