Package org.newdawn.slick.svg

Examples of org.newdawn.slick.svg.NonGeometricData


    float ry = Util.getFloatAttribute(element,"ry");
   
    Ellipse ellipse = new Ellipse(x,y,rx,ry);
    Shape shape = ellipse.transform(transform);

    NonGeometricData data = Util.getNonGeometricData(element);
    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 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

      points = element.getAttribute("d");
    }
   
    StringTokenizer tokens = new StringTokenizer(points, ", ");
    Path path = processPoly(element, tokens);
    NonGeometricData data = Util.getNonGeometricData(element);
    if (path != null) {
      Shape shape = path.transform(transform);
     
      diagram.addFigure(new Figure(Figure.PATH, shape, data, transform));
    }
View Full Code Here

TOP

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

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.