Package edu.umd.cs.piccolo.nodes

Examples of edu.umd.cs.piccolo.nodes.PPath


    BufferedImage img = loggedScreenRegion.capture();
    ImageRenderer ir = new LogImageRenderer(img){

      @Override
      protected void addContent(PLayer layer) {
        PPath c = PPath.createEllipse(0, 0, 10,10);
        c.setPaint(Color.red);
        c.setOffset(location.getX() - loggedScreenRegion.getBounds().getX() - 5, location.getY() - loggedScreenRegion.getBounds().getY() - 5);
        layer.addChild(c);
       
        addTextLabel(layer, actionName,location.getX() - loggedScreenRegion.getBounds().x - 20, location.getY() - loggedScreenRegion.getBounds().y - 40);
        addNodeWithShadow(layer, c);
      }     
View Full Code Here


      t.setOffset(x,y);
      addNodeWithShadow(parent, t);   
    }

    void addRectangle(PNode parent, int x, int y, int width, int height, Color color){
      PPath r = PPath.createRectangle(x, y, width, height);
      r.setStrokePaint(color);
      r.setStroke(new BasicStroke(2f));
      r.setPaint(null)
     
      addNodeWithShadow(parent, r);
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.piccolo.nodes.PPath

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.