Package net.edzard.kinetic

Examples of net.edzard.kinetic.Group


   * Check if we can access the children of a group
   */
  public void testGetChildren() { 
       
    // Create a group
    final Group group = Kinetic.createGroup();
   
    final Circle c1 = Kinetic.createCircle(origin1, radius);
    c1.setName(name1);
    group.add(c1);
   
    final Circle c2 = Kinetic.createCircle(origin2, radius);
    c2.setName(name2);
    group.add(c2);
   
    layer.add(group);
    stage.draw();
   
    // Check children
    List<Node> children = group.getChildren();
    assertEquals("Wrong name", name1, children.get(0).getName());
    assertEquals("Wrong name", name2, children.get(1).getName());
 
View Full Code Here

TOP

Related Classes of net.edzard.kinetic.Group

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.