Examples of Shape


Examples of com.gwcworld.core.bean.Shape

     
      AreaJson areaJson = new AreaJson();
      areaJson.setName(area.getName());
      areaJson.setGridsize(area.getGridsize());
      areaJson.setImgBackground(area.getImgBackground());
      Shape shape = area.getShape();
      ShapeJson shapeJson = new ShapeJson();
      shapeJson.setColorRGBA(shape.getColorRGBA());
      shapeJson.setRotate(shape.getRotate());
      shapeJson.setScaleX(shape.getScaleX());
      shapeJson.setScaleY(shape.getScaleY());
      shapeJson.setShapeTypeId(shape.getType().getId());
      shapeJson.setTranslateX(shape.getTranslateX());
      shapeJson.setTranslateY(shape.getTranslateY());
      shapeJson.setValues(shape.getValues());
      areaJson.setShapeJson(shapeJson);
     
      List<Layer> layerList = layerService.getLayerListByArea(area);
      List<LayerJson> layerJsonList = new ArrayList<LayerJson>();
      for (Iterator<Layer> iterator2 = layerList.iterator(); iterator2.hasNext();) {
        Layer layer = iterator2.next();
        LayerJson layerJson = new LayerJson();
        layerJson.setName(layer.getName());
        layerJson.setImgBackground(layer.getImgBackground());
        layerJson.setVisible(layer.isVisible());
        layerJson.setzIndex(layer.getzIndex());
       
        List<AreaElement> areaElementList = areaElementService.getAreaElementListByLayer(layer);
        List<AreaElementJson> areaElementJsonList = new ArrayList<AreaElementJson>();
        for (Iterator<AreaElement> iterator3 = areaElementList.iterator(); iterator3.hasNext();) {
          AreaElement areaElement = iterator3.next();
          AreaElementJson areaElementJson = new AreaElementJson();
         
          areaElementJson.setAreaElementType(areaElement.getType().getId());
          areaElementJson.setRotate(areaElement.getRotate());
          areaElementJson.setScaleX(areaElement.getScaleX());
          areaElementJson.setScaleY(areaElement.getScaleY());
          areaElementJson.setSurfaceTot(areaElement.getSurfaceTot());
          areaElementJson.setTranslateX(areaElement.getTranslateX());
          areaElementJson.setTranslateY(areaElement.getTranslateY());
         
          areaElementJsonList.add(areaElementJson);
        }
        layerJson.setAreaElementList(areaElementJsonList);
       
        List<Shape> shapeList = layer.getShapes();
        List<ShapeJson> shapeJsonList = new ArrayList<ShapeJson>();
        for (Iterator<Shape> iterator4 = shapeList.iterator(); iterator4.hasNext();) {
          Shape layerShape = iterator4.next();
          ShapeJson layerShapeJson = new ShapeJson();
         
          layerShapeJson.setColorRGBA(layerShape.getColorRGBA());
          layerShapeJson.setRotate(layerShape.getRotate());
          layerShapeJson.setScaleX(layerShape.getScaleX());
          layerShapeJson.setScaleY(layerShape.getScaleY());
          layerShapeJson.setShapeTypeId(layerShape.getType().getId());
          layerShapeJson.setTranslateX(layerShape.getTranslateX());
          layerShapeJson.setTranslateY(layerShape.getTranslateY());
          layerShapeJson.setValues(layerShape.getValues());
         
          shapeJsonList.add(layerShapeJson);
        }
        layerJson.setShapeList(shapeJsonList);
       
        List<Stand> standList = standService.getStandListByLayer(layer);
        List<StandJson> standJsonList = new ArrayList<StandJson>();
        for (Iterator<Stand> iterator3 = standList.iterator(); iterator3.hasNext();) {
          Stand stand = iterator3.next();
          StandJson standJson = new StandJson();
          standJson.setId(stand.getId());
          standJson.setCode(stand.getCode());
          standJson.setDescription(stand.getDescription());
          if(stand.getExhibitor()!=null)
            standJson.setExhibitorId(stand.getExhibitor().getId());
          standJson.setLogo(stand.getLogo());
          standJson.setName(stand.getName());
          standJson.setOpenSides(stand.getOpenSides());
          Shape standShape = stand.getShape();
          ShapeJson standShapeJson = new ShapeJson();
          standShapeJson.setColorRGBA(standShape.getColorRGBA());
          standShapeJson.setRotate(standShape.getRotate());
          standShapeJson.setScaleX(standShape.getScaleX());
          standShapeJson.setScaleY(standShape.getScaleY());
          standShapeJson.setShapeTypeId(standShape.getType().getId());
          standShapeJson.setTranslateX(standShape.getTranslateX());
          standShapeJson.setTranslateY(standShape.getTranslateY());
          standShapeJson.setValues(standShape.getValues());
          standJson.setShape(standShapeJson);
          standJson.setStandStatusId(stand.getStatus().getId());
          standJson.setSurfaceEffective(stand.getSurfaceEffective());
          standJson.setSurfaceTot(stand.getSurfaceTot());
          standJson.setOrientation(stand.getOrientation());
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Shape

            int glyphIndex);

    public abstract FontRenderContext getFontRenderContext();

    public Shape getGlyphOutline(int glyphIndex, float x, float y) {
        Shape initialShape = getGlyphOutline(glyphIndex);
        AffineTransform trans = AffineTransform.getTranslateInstance(x, y);
        return trans.createTransformedShape(initialShape);
    }
View Full Code Here

Examples of com.spatial4j.core.shape.Shape

      src.setConfig(srcConfig);
      src.resetInputs();
      DocData docData = new DocData();
      for (int i = 0; i < maxQueries; i++) {
        docData = src.getNextDocData(docData);
        Shape shape = SpatialDocMaker.makeShapeFromString(strategy, docData.getName(), docData.getBody());
        if (shape != null) {
          shape = shapeConverter.convert(shape);
          queries.add(makeQueryFromShape(shape));
        } else {
          i--;//skip
View Full Code Here

Examples of de.filiadata.lucene.spider.generated.msoffice2000.word.Shape

      }

      // iterate through the shapes
      Shapes shapes = doc.getShapes();
      for (int i = 1; i <= shapes.getCount(); i++) {
        Shape shape = shapes.item(new Variant(i));
        appendShape(shape, content);
      }
     
      // iterate through the paragraphs and extract the headlines
      StringBuffer headlines = null;
View Full Code Here

Examples of dwlab.shapes.Shape

   *
   * @see #clone example
   */ 
  public Sprite lastCollidedSpriteOf( Layer layer ) {
    for ( Iterator<Shape> it = layer.children.descendingIterator(); it.hasNext(); ) {
      Shape shape = it.next();
      if( shape != this ) {
        Sprite collided = shape.layerLastSpriteCollision( this );
        if( collided != null ) return collided;
      }
    }
    return null;
  }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.shapes.Shape

   * @throws ColliderUnavailableException
   *         This exception will be thrown if no suitable collider can be found.
   */
  public Collider createCollider(PhysicsAgent2D<?> bodyA, PhysicsAgent2D<?> bodyB)
  throws ColliderUnavailableException {
    Shape shapeA = bodyA.getBodyShape();
    Shape shapeB = bodyB.getBodyShape();
   
    if ( shapeA instanceof Circle ) {
      return createColliderFor((Circle) shapeA, shapeB);
    } else if ( shapeA instanceof Box ) {
      return createColliderFor((Box) shapeA, shapeB);
View Full Code Here

Examples of flash.swf.types.Shape

        for (int i = 0; i < tag.glyphShapeTable.length; i++)
        {
          indent();
          out.println("<glyph>");
         
          Shape shape = tag.glyphShapeTable[i];
          indent++;
          printShapeWithTabs(shape);
          indent--;
         
          indent();
View Full Code Here

Examples of gov.nist.microanalysis.NISTMonte.MonteCarloSS.Shape

        mcss = new MonteCarloSS();
        mcss.setBeamEnergy(ToSI.keV(20.0));
        mcss.setElectronGun(new GaussianBeam(10e-9));

        Material mat = MaterialFactory.createPureElement(Element.Si);
        Shape shape =
                MultiPlaneShape.createSubstrate(new double[] { 0, 0, -1 },
                        new double[] { 0, 0, 0 });
        mcss.addSubRegion(mcss.getChamber(), mat, shape);

        listener = new TimeListener(mcss);
View Full Code Here

Examples of gwt.g2d.client.graphics.shapes.Shape

  public void initialize() {
    add(new Label("This demo does not work under IE."));
    Surface originalCanvas = new Surface(300, 300);
    Circle smallCircle = new Circle(150, 150, 140);
    Circle bigCircle = new Circle(150, 150, 150);
    Shape smallCircleShape = new ShapeBuilder().drawCircle(smallCircle).build();
    Shape bigCircleShape = new ShapeBuilder().drawCircle(bigCircle).build();
    Gradient radialGradient = new RadialGradient(new Circle(150, 150, 0), smallCircle)
        .addColorStop(0, KnownColor.RED)
        .addColorStop(1, KnownColor.GREEN);
    originalCanvas.setFillStyle(KnownColor.BLACK)
        .fillShape(bigCircleShape)
View Full Code Here

Examples of java.awt.Shape

                mouseOver = false;
              }
            }

            // calculate clipping intersection between global clip border and current cell rectangle
            Shape oldClip = grp.getClip();
            rec = rec.intersection((Rectangle)oldClip);

            // Paint the cell
            if (rec.width > 0 || rec.height > 0) {
              grp.setClip(rec);
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.