Package net.jaitec.applet1

Examples of net.jaitec.applet1.Ball.draw()


    }
      graphic.setColor(antes);
      // now draw each ball
      for(Iterator<Ball> i= balls.iterator(); i.hasNext(); ) { 
        Ball b = (Ball) i.next();
        b.draw(graphic);
        // data from each ball
        if(Config.DEBUG)
        {
          graphic.drawString("a="+(int) Math.toDegrees(b.getAngle()), b.getX(), b.getY());
          graphic.drawString("s="+b.getSpeed(), b.getX(), b.getY()+15);
View Full Code Here


    }
      graphic.setColor(antes);
      // now draw each ball
      for(Iterator<Ball> i= balls.iterator(); i.hasNext(); ) { 
        Ball b = (Ball) i.next();
        b.draw(graphic);
        // data from each ball
        if(Config.DEBUG)
        {
          graphic.drawString("a="+(int) Math.toDegrees(b.getAngle()), b.getX(), b.getY());
          graphic.drawString("s="+b.getSpeed(), b.getX(), b.getY()+15);
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.