Examples of ShapeFactory


Examples of ag.ion.bion.officelayer.internal.draw.shapes.ShapeFactory

  }

  @Override
  public IShapeFactory getShapeFactory() {
    if (shapeFactory == null)
      shapeFactory = new ShapeFactory(this);
    return shapeFactory;
  }
View Full Code Here

Examples of org.jpedal.render.ShapeFactory

    int offset=0;
    if(pageoffsets!=null)
      offset=pageoffsets[pageNumber];

    ShapeFactory shape = new org.jpedal.render.output.javafx.JavaFXShape(cmd,offset,shapeCount, scaling, currentShape, gs, new AffineTransform(), midPoint, cropBox, currentColor, dpCount, pageRotation, pageData, pageNumber, includeClip);
    shape.setShapeNumber(shapeCount);
    shapeCount++;

    //Stores the content of the shapes that gets outputed in the javafx file
    String shapeContent = (String) shape.getContent();

    //    if(!shape.isEmpty() && shapeContent.contains("MoveTo")) {
    if(!shape.isEmpty()) {
      writeCustom(SCRIPT, shape.getContent());

      System.out.println(currentShape.getBounds());
      System.out.println(shapeContent);


      //update current color
      currentColor = shape.getShapeColor();
    }
  }
View Full Code Here

Examples of org.jpedal.render.ShapeFactory

        int offset=0;
        if(pageoffsets!=null)
            offset=pageoffsets[pageNumber];

    ShapeFactory shape = new org.jpedal.render.output.javafx.JavaFXShape(cmd,offset,shapeCount, scaling, currentShape, gs, new AffineTransform(), midPoint, cropBox, currentColor, dpCount, pageRotation, pageData, pageNumber, includeClip);
    shape.setShapeNumber(shapeCount);
    shapeCount++;

    if(!shape.isEmpty()) {
      writeCustom(SCRIPT, shape.getContent());

      //catch shapes with negative coords
      //            if(currentShape.getBounds().x < 0)
//                System.out.println(shape.getContent());
     
      //update current color
      currentColor = shape.getShapeColor();
    }
  }
View Full Code Here

Examples of org.locationtech.udig.tools.edit.behaviour.CreateShapeBehaviour.ShapeFactory

    @Test
    public void testIsValid() throws Exception {
        TestHandler handler=new TestHandler();
       
        CreateShapeBehaviour behav=new CreateShapeBehaviour(new ShapeFactory(){
            @Override
            public GeneralPath create( int width, int height ) {
                GeneralPath path=new GeneralPath();
                path.append(new Rectangle(width, height), false);
                return path;
View Full Code Here

Examples of org.locationtech.udig.tools.edit.behaviour.CreateShapeBehaviour.ShapeFactory

        PrimitiveShape shell = editBlackboard.getGeoms().get(0).getShell();
        editBlackboard.addPoint(100,100,shell);
        shell.getEditGeom().setShapeType(ShapeType.POINT);
        editBlackboard.newGeom("newone", null); //$NON-NLS-1$
       
        CreateShapeBehaviour behav=new CreateShapeBehaviour(new ShapeFactory(){
            @Override
            public GeneralPath create( int width, int height ) {
                GeneralPath path=new GeneralPath();
                path.append(new Rectangle(width, height), false);
                return path;
View Full Code Here

Examples of org.locationtech.udig.tools.edit.behaviour.CreateShapeBehaviour.ShapeFactory

    @Test
    public void testDonut() throws Exception {
        TestHandler handler=new TestHandler();
       
        CreateShapeBehaviour behav=new CreateShapeBehaviour(new ShapeFactory(){
            @Override
            public GeneralPath create( int width, int height ) {
               
                Rectangle2D shell =new Rectangle2D.Float(0,0,width,height);
                float i = ((float)width)/4;
View Full Code Here

Examples of org.locationtech.udig.tools.edit.behaviour.CreateShapeBehaviour.ShapeFactory

* @since 1.1.0
*/
public class EllipseTool extends RectangleTool {
    @Override
    protected ShapeFactory getShapeFactory() {
        ShapeFactory ret = new CreateShapeBehaviour.ShapeFactory() {

            @Override
            public GeneralPath create(int width, int height) {
                GeneralPath path=new GeneralPath();
                path.append(new Ellipse2D.Float(-width, -height,2*width, 2*height), false);
                return path;
            }
           
        };
        ret.setMiddleAsOrigin(true);
        return ret;

    }
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.