Package org.newdawn.slick.svg

Examples of org.newdawn.slick.svg.Figure


   
    NonGeometricData data = Util.getNonGeometricData(element);
    if (count > 3) {
      Shape shape = poly.transform(transform);
     
      diagram.addFigure(new Figure(Figure.POLYGON, shape, data, transform));
    }
  }
View Full Code Here


    data.addAttribute("width", ""+width);
    data.addAttribute("height", ""+height);
    data.addAttribute("x", ""+x);
    data.addAttribute("y", ""+y);
   
    diagram.addFigure(new Figure(Figure.RECTANGLE, shape, data, transform));
  }
View Full Code Here

   
    NonGeometricData data = Util.getNonGeometricData(element);
    if (count > 3) {
      Shape shape = poly.transform(transform);
     
      diagram.addFigure(new Figure(Figure.POLYGON, shape, data, transform));
    }
  }
View Full Code Here

    data.addAttribute("width", ""+width);
    data.addAttribute("height", ""+height);
    data.addAttribute("x", ""+x);
    data.addAttribute("y", ""+y);
   
    diagram.addFigure(new Figure(Figure.RECTANGLE, shape, data, transform));
  }
View Full Code Here

    data.addAttribute("x1",""+x1);
    data.addAttribute("x2",""+x2);
    data.addAttribute("y1",""+y1);
    data.addAttribute("y2",""+y2);
   
    diagram.addFigure(new Figure(Figure.LINE, line, data, transform));
  }
View Full Code Here

   
    NonGeometricData data = Util.getNonGeometricData(element);
    if (count > 3) {
      Shape shape = poly.transform(transform);
     
      diagram.addFigure(new Figure(Figure.POLYGON, shape, data, transform));
    }
  }
View Full Code Here

    data.addAttribute("width", ""+width);
    data.addAttribute("height", ""+height);
    data.addAttribute("x", ""+x);
    data.addAttribute("y", ""+y);
   
    diagram.addFigure(new Figure(Figure.RECTANGLE, shape, data, transform));
  }
View Full Code Here

    data.addAttribute("x1",""+x1);
    data.addAttribute("x2",""+x2);
    data.addAttribute("y1",""+y1);
    data.addAttribute("y2",""+y2);
   
    diagram.addFigure(new Figure(Figure.LINE, line, data, transform));
  }
View Full Code Here

    data.addAttribute("cx", ""+x);
    data.addAttribute("cy", ""+y);
    data.addAttribute("rx", ""+rx);
    data.addAttribute("ry", ""+ry);
   
    diagram.addFigure(new Figure(Figure.ELLIPSE, shape, data, transform));
  }
View Full Code Here

      Transform transform) throws ParsingException {

    String ref = element.getAttributeNS("http://www.w3.org/1999/xlink", "href");
    String href = Util.getAsReference(ref);
   
    Figure referenced = diagram.getFigureByID(href);
    if (referenced == null) {
      throw new ParsingException(element, "Unable to locate referenced element: "+href);
    }
   
    Transform local = Util.getTransform(element);
    Transform trans = local.concatenate(referenced.getTransform());
   
    NonGeometricData data = Util.getNonGeometricData(element);
    Shape shape = referenced.getShape().transform(trans);
    data.addAttribute(NonGeometricData.FILL, referenced.getData().getAttribute(NonGeometricData.FILL));
    data.addAttribute(NonGeometricData.STROKE, referenced.getData().getAttribute(NonGeometricData.STROKE));
    data.addAttribute(NonGeometricData.OPACITY, referenced.getData().getAttribute(NonGeometricData.OPACITY));
    data.addAttribute(NonGeometricData.STROKE_WIDTH, referenced.getData().getAttribute(NonGeometricData.STROKE_WIDTH));
   
    Figure figure = new Figure(referenced.getType(), shape, data, trans);
    diagram.addFigure(figure);
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.svg.Figure

Copyright © 2018 www.massapicom. 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.