Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
D
E
G
H
I
J
M
N
P
R
S
T
W
A
addTurtleListener(TurtleListener)
- Method in class jturtle.
JTurtle
Add a listener.
D
doSteps()
- Method in class jturtle.
TurtleField
Make the turtle take some steps.
draw(Graphics)
- Method in class jturtle.
JTurtle
Draw the turtle, pass in a Graphics2D object.
draw()
- Method in class jturtle.
TurtleField.BufferedPanel
draw()
- Method in class jturtle.
TurtleField.DrawingPanel
E
endPoint
- Variable in class jturtle.
JTurtleMove
G
getBounds(Rectangle)
- Method in class jturtle.
JTurtle
Mirrors the functionality of JComponent/Component.
getHeading()
- Method in class jturtle.
JTurtle
Returns the naive view of heading, 0 degrees = north
getLine()
- Method in class jturtle.
JTurtleMove
Gets the (line) shape for this move
getMoveHistory()
- Method in class jturtle.
JTurtle
Returns the List of Moves the turtle has taken thus far
getMoveSize()
- Method in class jturtle.
TurtleField
Returns step size as currently selected.
getPoint()
- Method in class jturtle.
JTurtle
Returns the turtle's point (should be centroid)
getTurtle()
- Method in class jturtle.
TurtleField
H
HEIGHT
- Static variable in class jturtle.
JTurtle
I
ImageRenderer
- Class in
jturtle
ImageRenderer(Image)
- Constructor for class jturtle.
ImageRenderer
init()
- Method in class jturtle.
TurtleField
J
jturtle
- package jturtle
JTurtle
- Class in
jturtle
This class is a simple SLogo turtle model for illustrating rudimentary MVC for turtles and simple Graphics2D concepts
JTurtle()
- Constructor for class jturtle.
JTurtle
Create a turtle using the default (triangle) image.
JTurtle(Image)
- Constructor for class jturtle.
JTurtle
JTurtle(Renderer)
- Constructor for class jturtle.
JTurtle
JTurtleMove
- Class in
jturtle
JTurtleMove(Point2D, Point2D, boolean)
- Constructor for class jturtle.
JTurtleMove
Constructor for a move
M
main(String[])
- Static method in class jturtle.
TurtleField
makeDashBoard(JPanel)
- Method in class jturtle.
TurtleField
Where turtle info is displayed
makeImage(String, Component)
- Method in class jturtle.
TurtleField
makeSlider(JPanel)
- Method in class jturtle.
TurtleField
make a slider to set the turtle's heading
makeTextBox(JPanel)
- Method in class jturtle.
TurtleField
makeTextField()
- Method in class jturtle.
TurtleField
move(int)
- Method in class jturtle.
JTurtle
Moves the turtle forward.
myAngle
- Variable in class jturtle.
TurtleField
myBoundingBox
- Variable in class jturtle.
TurtleField.BufferedPanel
myDisplay
- Variable in class jturtle.
TurtleField
myFont
- Variable in class jturtle.
TurtleField
myHeading
- Variable in class jturtle.
JTurtle
myImage
- Variable in class jturtle.
ImageRenderer
myListeners
- Variable in class jturtle.
JTurtle
myMoveHistory
- Variable in class jturtle.
JTurtle
myNextPoint
- Variable in class jturtle.
JTurtle
myPenDown
- Variable in class jturtle.
JTurtle
myPoint
- Variable in class jturtle.
JTurtle
myRenderer
- Variable in class jturtle.
JTurtle
myShape
- Variable in class jturtle.
PolyRenderer
myStepSize
- Variable in class jturtle.
TurtleField
myTurtle
- Variable in class jturtle.
TurtleField
myXPoint
- Variable in class jturtle.
TurtleField
myYPoint
- Variable in class jturtle.
TurtleField
N
notifyListeners()
- Method in class jturtle.
JTurtle
Ask all registered listeners to process this turtle
P
paint(Graphics2D)
- Method in class jturtle.
ImageRenderer
paint(Graphics2D)
- Method in class jturtle.
PolyRenderer
paint(Graphics2D)
- Method in class jturtle.
Renderer
penDown
- Variable in class jturtle.
JTurtleMove
PolyRenderer
- Class in
jturtle
PolyRenderer()
- Constructor for class jturtle.
PolyRenderer
processTurtle(JTurtle)
- Method in class jturtle.
TurtleField
Process a (changed) turtle, display properties and redraw.
processTurtle(JTurtle)
- Method in interface jturtle.
TurtleListener
R
Renderer
- Class in
jturtle
Renderer()
- Constructor for class jturtle.
Renderer
reset()
- Method in class jturtle.
JTurtle
Reposition turtle at the origin, facing north.
S
setHeading(int)
- Method in class jturtle.
JTurtle
Set heading in degrees, notify listeners.
setHeading(double)
- Method in class jturtle.
JTurtle
Set heading in radians, notify listeners.
setPenToDown()
- Method in class jturtle.
JTurtle
Set the pen to Down
setPenToUp()
- Method in class jturtle.
JTurtle
Set the pen to up
setPoint(Point2D)
- Method in class jturtle.
JTurtle
Sets the turtles point, notifies listeners.
setTurtle(JTurtle)
- Method in class jturtle.
TurtleField
showAngle(int)
- Method in class jturtle.
TurtleField
Display (Turtle's) angle
showPoint(Point2D)
- Method in class jturtle.
TurtleField
display Turtle's point information
slogo
- package slogo
START_X
- Static variable in class jturtle.
JTurtle
START_Y
- Static variable in class jturtle.
JTurtle
startPoint
- Variable in class jturtle.
JTurtleMove
T
trueHeading()
- Method in class jturtle.
JTurtle
Return the real/true heading of the turtle.
TurtleField
- Class in
jturtle
Rudimentary view showing turtles and MVC.
TurtleField(String)
- Constructor for class jturtle.
TurtleField
TurtleField()
- Constructor for class jturtle.
TurtleField
TurtleField.BufferedPanel
- Class in
jturtle
Overkill with double buffering on by default, but shows how to do it.
TurtleField.BufferedPanel()
- Constructor for class jturtle.
TurtleField.BufferedPanel
TurtleField.DrawingPanel
- Class in
jturtle
TurtleField.DrawingPanel()
- Constructor for class jturtle.
TurtleField.DrawingPanel
TurtleListener
- Interface in
jturtle
W
WIDTH
- Static variable in class jturtle.
JTurtle
A
D
E
G
H
I
J
M
N
P
R
S
T
W
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes