Package turtle

Class TurtleGUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class TurtleGUI
extends JFrame
Displays turtle graphics in a window on the screen.

PS0 instructions: do NOT change this class.

See Also:
Serialized Form
  • Constructor Details

    • TurtleGUI

      public TurtleGUI​(List<Action> actionList, int canvasWidth, int canvasHeight)
      Construct a new turtle graphics window.
      Parameters:
      actionList - sequence of actions to render
      canvasWidth - canvas width in pixels
      canvasHeight - canvas height in pixels