ch.aplu.turtle
Class TurtleArea

java.lang.Object
  extended by ch.aplu.turtle.TurtleArea
All Implemented Interfaces:
TurtleContainer

public class TurtleArea
extends java.lang.Object
implements TurtleContainer

This class is used for a Turtle applet. It contains a Playground where the Turtles live.


Constructor Summary
TurtleArea(javax.swing.JApplet jApplet)
          Create an applet window with given applet container.
TurtleArea(javax.swing.JApplet jApplet, java.awt.Color bkColor)
          Create an applet window with given applet container and background color.
TurtleArea(javax.swing.JApplet jApplet, int width, int height)
          Create an applet window with given applet container, width and height.
TurtleArea(javax.swing.JApplet jApplet, int width, int height, java.awt.Color bkColor)
          Create an applet window with given applet container, width, height and background color.
 
Method Summary
 Playground getPlayground()
          Returns the playground of this AppletFrame.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurtleArea

public TurtleArea(javax.swing.JApplet jApplet)
Create an applet window with given applet container.


TurtleArea

public TurtleArea(javax.swing.JApplet jApplet,
                  java.awt.Color bkColor)
Create an applet window with given applet container and background color.


TurtleArea

public TurtleArea(javax.swing.JApplet jApplet,
                  int width,
                  int height)
Create an applet window with given applet container, width and height.


TurtleArea

public TurtleArea(javax.swing.JApplet jApplet,
                  int width,
                  int height,
                  java.awt.Color bkColor)
Create an applet window with given applet container, width, height and background color.

Method Detail

getPlayground

public Playground getPlayground()
Returns the playground of this AppletFrame.

Specified by:
getPlayground in interface TurtleContainer