A B C D F G H I L P R S T W

A

add(Turtle) - Method in class ch.aplu.turtle.Playground
Adds a new Turtle to the Playground.

B

back(double) - Method in class ch.aplu.turtle.Turtle
Same as bk(double distance).
bk(double) - Method in class ch.aplu.turtle.Turtle
Moves the Turtle backwards.
blitToOffscreenBuffer() - Method in class ch.aplu.turtle.Playground
Draws the whole canvas and turtle buffers into the offscreen buffer.
blitToOffscreenBuffer(Image) - Method in class ch.aplu.turtle.Playground
Draws an image into the offscreen buffer.
blitToOffscreenBuffer(Image, int, int, int, int) - Method in class ch.aplu.turtle.Playground
Draws part (a rectangle defined by the parameters) of an image into the offscreen buffer.
blitToOffscreenBuffer(int, int, int, int) - Method in class ch.aplu.turtle.Playground
Draws part of canvas and turtle buffers into the offscreen buffer, according to the rectangle definded by the parameters.
blitToOffscreenBuffer(Rectangle) - Method in class ch.aplu.turtle.Playground
Draws part of canvas and turtle buffers into the offscreen buffer, according to the given rectangle.

C

calcTopLeftCorner(double, double) - Method in class ch.aplu.turtle.TurtleRenderer
Compute the top left corner of the Turtle image (dependent on the specified x- and y-coordinate and the image width and height.
calcTopLeftCorner(Point2D.Double) - Method in class ch.aplu.turtle.TurtleRenderer
Compute the top left corner of the Turtle image (dependent on the specified point p and the image width and height.
calcTopLeftCornerX(double) - Method in class ch.aplu.turtle.TurtleRenderer
Compute the x-coordinate of the top left corner of the Turtle image (it depends on the specified x-coordinate and the image width).
calcTopLeftCornerY(double) - Method in class ch.aplu.turtle.TurtleRenderer
Compute the y-coordinate of the top left corner of the Turtle image (it depends on the specified y-coordinate and the image height).
ch.aplu.turtle - package ch.aplu.turtle
The Java Turtle Package provides functionality for LOGO-like Java-Programs (including multiple turtles).
clean() - Method in class ch.aplu.turtle.Turtle
Clears away all that was painted in some way by a turtle (such as lines, fillings, text, stamps etc.)
clear() - Method in class ch.aplu.turtle.Playground
Clears the canvas (i.e. the buffer where all turtle lines are drawn).
clear(Graphics) - Method in class ch.aplu.turtle.Playground
Clears the buffer with the given Graphics.
clearClipTurtle(Turtle) - Method in class ch.aplu.turtle.Playground
This method is called when the given Turtle is in clip mode.
clearClipTurtle(Turtle, Image) - Method in class ch.aplu.turtle.Playground
Here the actual clearing of a Turtle in clip mode from the given image is performed.
clearTurtle(Turtle) - Method in class ch.aplu.turtle.Playground
Removes the image of the given turtle from the turtle buffer.
clearTurtles() - Method in class ch.aplu.turtle.Playground
Removes the image of all turtles from the turtle buffer.
clearWrapTurtle(Turtle) - Method in class ch.aplu.turtle.Playground
This method is called when the given Turtle is in wrap mode.
clearWrapTurtle(Turtle, Image) - Method in class ch.aplu.turtle.Playground
Here the actual clearing of a Turtle in wrap mode from the given image is performed.
CLIP - Static variable in class ch.aplu.turtle.Turtle
Represents clip mode.
clip() - Method in class ch.aplu.turtle.Turtle
Set the turtle to clip-mode.
clipLineTo(double, double) - Method in class ch.aplu.turtle.LineRenderer
Does the actual painting for clip mode.
clipPaint(int, int, Graphics) - Method in class ch.aplu.turtle.TurtleRenderer
Defines how to paint in clip mode (and does it!)
clips() - Method in class ch.aplu.turtle.Turtle
Tells wheter the turtle is in clip mode.
countTurtles() - Method in class ch.aplu.turtle.Playground
Tells how many Turtles are now in this Playground.
createLineRenderer() - Method in class ch.aplu.turtle.Turtle
Create a LineRenderer which is responsible for the correct drawing of the lines.
createTurtleFactory() - Method in class ch.aplu.turtle.Turtle
Create a TurtleFactory which provides for the Turtle pictures.
createTurtleRenderer() - Method in class ch.aplu.turtle.Turtle
Create a TurtleRenderer which is responsible for the correct drawing of the Turtle.
currentImage() - Method in class ch.aplu.turtle.TurtleRenderer
Returns the current image.
curX() - Method in class ch.aplu.turtle.Turtle
Query the current x-coordinate.
curY() - Method in class ch.aplu.turtle.Turtle
Query the current y-coordinate.

D

DEFAULT_ANGLE_RESOLUTION - Static variable in class ch.aplu.turtle.Turtle
Represents the default angle resolution.
DEFAULT_BACKGROUND_COLOR - Variable in class ch.aplu.turtle.Playground
The default background color.
DEFAULT_EDGE_BEHAVIOUR - Static variable in class ch.aplu.turtle.Turtle
Represents the default edge behaviour (i.e.
DEFAULT_FONT - Static variable in class ch.aplu.turtle.Pen
The default font that is used when drawing Text.
DEFAULT_FRAMES_PER_SECOND - Static variable in class ch.aplu.turtle.Turtle
Specifies how many frames per second are used for turtle animation.
DEFAULT_PEN_COLOR - Static variable in class ch.aplu.turtle.Turtle
Specifies the default pen color.
DEFAULT_SPEED - Static variable in class ch.aplu.turtle.Turtle
Represents the default speed (velocity).
DEFAULT_TURTLE_COLOR - Static variable in class ch.aplu.turtle.Turtle
Specifies the default turtle color.
distance(double, double) - Method in class ch.aplu.turtle.Turtle
Query the distance from the current location to the given one.
distance(Point2D.Double) - Method in class ch.aplu.turtle.Turtle
Query the distance from the current location to the given one.

F

fd(double) - Method in class ch.aplu.turtle.Turtle
Moves the Turtle forwards.
fill() - Method in class ch.aplu.turtle.Turtle
Fills the region the Turtle is in.
fill(double, double) - Method in class ch.aplu.turtle.Turtle
Fills the region with coordinates x and y.
fill(Turtle) - Method in class ch.aplu.turtle.Playground
Fills a region.
forward(double) - Method in class ch.aplu.turtle.Turtle
Same as fd(double distance)

G

getAngle() - Method in class ch.aplu.turtle.TurtleRenderer
 
getAngleResolution() - Method in class ch.aplu.turtle.Turtle
Get the angle resolution.
getAvailableFontFamilies() - Method in class ch.aplu.turtle.Pen
Provides information about the currently available font families (e.g.
getAvailableFontFamilies() - Method in class ch.aplu.turtle.Turtle
Provides information about all font families (e.g.
getBounds(Turtle) - Method in class ch.aplu.turtle.Playground
Calculates the bounds of the Turtles picture on the screen.
getColor() - Method in class ch.aplu.turtle.Pen
Query the Pens color.
getColor() - Method in class ch.aplu.turtle.Turtle
Query the turtle's current color.
getDashArray() - Method in class ch.aplu.turtle.Pen
Query the Pens dash array.
getDashPhase() - Method in class ch.aplu.turtle.Pen
Query the Pens dash phase.
getEdgeBehaviour() - Method in class ch.aplu.turtle.Turtle
Returns the current edge behaviour.
getEndCap() - Method in class ch.aplu.turtle.Pen
Query the Pens end cap style.
getFillColor() - Method in class ch.aplu.turtle.Pen
Query the Pens fill color.
getFont() - Method in class ch.aplu.turtle.Pen
Query the current font.
getFont() - Method in class ch.aplu.turtle.Turtle
Returns the current Font.
getFontSize() - Method in class ch.aplu.turtle.Pen
Query the size (in points, rounded to int) of the current font.
getLineJoin() - Method in class ch.aplu.turtle.Pen
Query the Pens line join style.
getLineWidth() - Method in class ch.aplu.turtle.Pen
Query the Pens line width
getMiterLimit() - Method in class ch.aplu.turtle.Pen
Query the Pens miter limit style.
getPen() - Method in class ch.aplu.turtle.Turtle
Get the Turtles Pen.
getPlayground() - Method in class ch.aplu.turtle.TurtleFrame
returns the playground of this TurtleFrame.
getPlayground() - Method in interface ch.aplu.turtle.TurtleContainer
As the Turtles live in a Playground actually, you must have access to it.
getPlayground() - Method in class ch.aplu.turtle.Turtle
Get the Playground.
getPos() - Method in class ch.aplu.turtle.Turtle
Query the turtle's position
getPosition() - Method in class ch.aplu.turtle.Turtle
 
getStroke() - Method in class ch.aplu.turtle.Pen
Get the Pens Stroke
getTurtle(int) - Method in class ch.aplu.turtle.Playground
Returns the Turtle at index index.
getTurtleFactory() - Method in class ch.aplu.turtle.Turtle
Returns the TurtleFactory of this turtle.
getX() - Method in class ch.aplu.turtle.Turtle
Query the turtle's x-position.
getY() - Method in class ch.aplu.turtle.Turtle
Query the turtle's y-position.

H

heading() - Method in class ch.aplu.turtle.Turtle
Query the Turtles heading.
heading(double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles heading to the new value.
hideTurtle() - Method in class ch.aplu.turtle.Turtle
Hides the turtle.
home() - Method in class ch.aplu.turtle.Turtle
Move the Turtle back "home", i.e. set its position to the origin, facing NORTH.
ht() - Method in class ch.aplu.turtle.Turtle
Hides the turtle.

I

imageChanged(double) - Method in class ch.aplu.turtle.TurtleRenderer
Tells whether the image has changed.
imageUpdate(Image, int, int, int, int, int) - Method in class ch.aplu.turtle.TurtleRenderer
As an image stays unchanged, there's no need to ever update it.
imageUpdate(Image, int, int, int, int, int) - Method in class ch.aplu.turtle.Playground
 
init(double, double) - Method in class ch.aplu.turtle.LineRenderer
Initialisation with coordinates x and y.
init(Playground, Color) - Method in class ch.aplu.turtle.Turtle
Initialize the Turtle.
init(Point2D.Double) - Method in class ch.aplu.turtle.LineRenderer
Same as init(double x, double y), but with a Point2D.Double argument for convenience
init(String, Playground) - Method in class ch.aplu.turtle.TurtleFrame
 
init(TurtleContainer, Color) - Method in class ch.aplu.turtle.Turtle
This is only a "meta-method" for calling the init(Playground, Color) method.
init(TurtleContainer, Dimension) - Method in class ch.aplu.turtle.Playground
Initializes everything, e.g. creates a new vector (which holds the Turtles), the offscreen buffers, and sets the size and background color.
init(TurtleFactory, int) - Method in class ch.aplu.turtle.TurtleRenderer
Creates the images.
internalHide() - Method in class ch.aplu.turtle.Turtle
This is the method called by the public methods ht() and hideTurtle().
internalLineTo(double, double) - Method in class ch.aplu.turtle.LineRenderer
Calls the clipLineTo and wrapLineTo methods, according to the turtle's edge behavior.
internalPaint(double, double, Graphics) - Method in class ch.aplu.turtle.TurtleRenderer
Calls clipPaint and WrapPaint().
internalPenErase() - Method in class ch.aplu.turtle.Turtle
 
internalSetPos(double, double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles Position.
internalSetX(double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles x-Coordinate.
internalSetY(double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles y-Coordinate.
internalToScreenCoords(double, double) - Method in class ch.aplu.turtle.Playground
Calculates the screen coordinates.
isHidden() - Method in class ch.aplu.turtle.Turtle
Tells wheter the Turtle is hidden or not.
isPenUp() - Method in class ch.aplu.turtle.Turtle
Query the Pens state (up or down).

L

label(String) - Method in class ch.aplu.turtle.Turtle
Paints the specified Text at the current Turtle position.
label(String, Turtle) - Method in class ch.aplu.turtle.Playground
Draws the text at the current position of the Turtle t.
left(double) - Method in class ch.aplu.turtle.Turtle
Same as lt(double degrees)
LineRenderer - class ch.aplu.turtle.LineRenderer.
This class is responsible for drawing the turtle's lines.
lineTo(double, double) - Method in class ch.aplu.turtle.LineRenderer
Calls the internalLineTo(x,y), which does the actual painting.
lineTo(Point2D.Double) - Method in class ch.aplu.turtle.LineRenderer
Calls the internalLineTo(x,y), which does the actual painting.
lt(double) - Method in class ch.aplu.turtle.Turtle
Turns the Turtle degrees degrees to the left.

P

paint(double, double) - Method in class ch.aplu.turtle.TurtleRenderer
This method is responsible for painting the turtle onto the playground at (x, y).
paint(double, double, Graphics) - Method in class ch.aplu.turtle.TurtleRenderer
This method is responsible for painting the Turtle at (x, y).
paint(Point2D.Double) - Method in class ch.aplu.turtle.TurtleRenderer
This method is responsible for painting the turtle onto the playground at p.
paint(Point2D.Double, Graphics) - Method in class ch.aplu.turtle.TurtleRenderer
This method is responsible for painting the Turtle at p.
paintComponent() - Method in class ch.aplu.turtle.Playground
Paints the Playground.
paintComponent(Graphics) - Method in class ch.aplu.turtle.Playground
Draws the canvas and turtle buffers.
paintTurtles() - Method in class ch.aplu.turtle.Playground
Just paint all turtles.
paintTurtles(Turtle) - Method in class ch.aplu.turtle.Playground
Moves the given Turtle above all the others, then paints all turtles.
pd() - Method in class ch.aplu.turtle.Turtle
Lowers the Turtles Pen down so it will draw a line when moving.
pe() - Method in class ch.aplu.turtle.Turtle
The Turtles Pen is changed to an eraser (which is in fact a pen with background color).
Pen - class ch.aplu.turtle.Pen.
The Pen class provides anything used for drawing the lines, such as line width, pen color, end caps, dashed lines, etc.
Pen() - Constructor for class ch.aplu.turtle.Pen
Constructor with standard Color and standard Stroke.
Pen(Color) - Constructor for class ch.aplu.turtle.Pen
Constructor with Color color and standard Stroke.
penDown() - Method in class ch.aplu.turtle.Turtle
Lowers the Turtles Pen down so it will draw a line when moving.
penErase() - Method in class ch.aplu.turtle.Turtle
The Turtles Pen is changed to an eraser (which is in fact a pen with background color).
penUp() - Method in class ch.aplu.turtle.Turtle
Lifts the Turtles Pen up so it won't draw a line anymore when moving.
penWidth() - Method in class ch.aplu.turtle.Turtle
Query the pen width.
penWidth(int) - Method in class ch.aplu.turtle.Turtle
Set the pen width.
Playground - class ch.aplu.turtle.Playground.
A Playground is the Turtle's home, i.e. the Turtle lives and moves in the Playground.
Playground(TurtleContainer) - Constructor for class ch.aplu.turtle.Playground
Create a new Playground inside the given TurtleContainer and with standard size (400 x 400 pixels).
Playground(TurtleContainer, Dimension) - Constructor for class ch.aplu.turtle.Playground
Create a new Playground inside the given TurtleContainer and size.
pu() - Method in class ch.aplu.turtle.Turtle
Lifts the Turtles Pen up so it won't draw a line anymore when moving.

R

reinit() - Method in class ch.aplu.turtle.Turtle
Resets the turtle to its standard settings.
remove(Turtle) - Method in class ch.aplu.turtle.Playground
Removes a Turtle from the Playground.
right(double) - Method in class ch.aplu.turtle.Turtle
Same as rt(double degrees).
rt(double) - Method in class ch.aplu.turtle.Turtle
Turns the Turtle degrees degrees to the right.

S

setAngle(double) - Method in class ch.aplu.turtle.TurtleRenderer
Sets the current image to the one corresponding to the angle angle.
setAngleResolution(int) - Method in class ch.aplu.turtle.Turtle
Set the angle resolution for the turtle's pictures.
setColor(Color) - Method in class ch.aplu.turtle.Pen
Set the Pens color.
setColor(Color) - Method in class ch.aplu.turtle.Turtle
Set the turtle's color to the specified one.
setDash(float[]) - Method in class ch.aplu.turtle.Pen
Set the Pens dash array.
setDashPhase(float) - Method in class ch.aplu.turtle.Pen
Set the Pens dash phase.
setEdgeBehaviour(int) - Method in class ch.aplu.turtle.Turtle
Sets the edge behaviour to the specified value;
setEndCap(int) - Method in class ch.aplu.turtle.Pen
Set the Pens end cap style.
setFillColor(Color) - Method in class ch.aplu.turtle.Pen
Set the Pens fill color.
setFillColor(Color) - Method in class ch.aplu.turtle.Turtle
Set the fill color to the specified one.
setFont(Font) - Method in class ch.aplu.turtle.Pen
Change the font to the given one.
setFont(Font) - Method in class ch.aplu.turtle.Turtle
Sets the current Font to the specified one.
setFont(String, int, int) - Method in class ch.aplu.turtle.Turtle
Change the current font to the specified one.
setFontSize(float) - Method in class ch.aplu.turtle.Pen
Change the font size (in points).
setFontSize(int) - Method in class ch.aplu.turtle.Pen
Change the font size (in points).
setFontSize(int) - Method in class ch.aplu.turtle.Turtle
Sets the Font size.
setFontStyle(int) - Method in class ch.aplu.turtle.Pen
Change the font style.
setFontStyle(int) - Method in class ch.aplu.turtle.Turtle
Sets the Font style.
setH(double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles heading. 0 means facing NORTH.
setHeading(double) - Method in class ch.aplu.turtle.Turtle
This is the same as setH(double degrees).
setLineJoin(int) - Method in class ch.aplu.turtle.Pen
Set the Pens line join style.
setLineWidth(double) - Method in class ch.aplu.turtle.Turtle
Set the Line Thickness.
setLineWidth(float) - Method in class ch.aplu.turtle.Pen
Set the Pens line width.
setLineWidth(float) - Method in class ch.aplu.turtle.Turtle
Set the Line Thickness.
setLocation() - Method in class ch.aplu.turtle.TurtleFrame
If you don't want the Windows to appear on the center of the screen, override this method.
setMiterLimit(float) - Method in class ch.aplu.turtle.Pen
Set the Pens miter limit.
setPenColor(Color) - Method in class ch.aplu.turtle.Turtle
Set the Turtles Pen color.
setPos(double, double) - Method in class ch.aplu.turtle.Turtle
Put the turtle to a new position with specified x- and y-coordinates.
setPos(Point2D.Double) - Method in class ch.aplu.turtle.Turtle
Put the turtle to a new position.
setX(double) - Method in class ch.aplu.turtle.Turtle
Sets the x-coordinate of the Turtles position to the given value.
setY(double) - Method in class ch.aplu.turtle.Turtle
Sets the y-coordinate of the Turtles position to the given value.
showTurtle() - Method in class ch.aplu.turtle.Turtle
The same as st().
speed(double) - Method in class ch.aplu.turtle.Turtle
Set the Turtles speed.
st() - Method in class ch.aplu.turtle.Turtle
Sets the turtle to show mode.
stampTurtle() - Method in class ch.aplu.turtle.Turtle
Leave an imprint of the Turtle on the "canvas".
standardTurtle(Color, double) - Method in class ch.aplu.turtle.TurtleFactory
Generates the Picture of a Turtle with color, angle angle and standard size.
standardTurtle(Color, double, int) - Method in class ch.aplu.turtle.TurtleFactory
Generates the Picture of a Turtle with color, angle angle and size.
standardTurtle(Color, double, int, int) - Method in class ch.aplu.turtle.TurtleFactory
Generates the Picture of a Turtle with color, angle angle, width w and height h.
standardTurtle(double) - Method in class ch.aplu.turtle.TurtleFactory
Generates the Picture of a Turtle with angle angle, standard size and standard color.
standardTurtle(double, int) - Method in class ch.aplu.turtle.TurtleFactory
Generates the Picture of a Turtle with angle angle, size and standard Color.

T

toBottom() - Method in class ch.aplu.turtle.Turtle
Put this turtle to the bottom.
toBottom(Turtle) - Method in class ch.aplu.turtle.Playground
Puts a Turtle beyond all others.
toTop() - Method in class ch.aplu.turtle.Turtle
Put this turtle to the top.
toTop(Turtle) - Method in class ch.aplu.turtle.Playground
Puts a Turtle above all others.
towards(double, double) - Method in class ch.aplu.turtle.Turtle
Calculates the direction to a given point.
towards(Point2D.Double) - Method in class ch.aplu.turtle.Turtle
Calculates the direction to a given point.
Turtle - class ch.aplu.turtle.Turtle.
The core class for Turtles.
Turtle() - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle in its own new Window.
Turtle(Color) - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle with specified color in its own new Window.
Turtle(Turtle) - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle in the same TurtleContainer (Window) as otherTurtle
Turtle(Turtle, Color) - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle with the specified color in the same TurtleContainer (Window) as otherTurtle
Turtle(TurtleContainer) - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle and puts it into the (already existing) turtleContainer
Turtle(TurtleContainer, Color) - Constructor for class ch.aplu.turtle.Turtle
Create a new Turtle with specified color in the specified turtleContainer.
TurtleContainer - interface ch.aplu.turtle.TurtleContainer.
Implement this interface if you define your own top-level container which contains turtles.
TurtleFactory - class ch.aplu.turtle.TurtleFactory.
This class provides functionality for generating images (java.awt.Image) of a Turtle for any angle, color (java.awt.Color) and size.
TurtleFactory() - Constructor for class ch.aplu.turtle.TurtleFactory
 
TurtleFrame - class ch.aplu.turtle.TurtleFrame.
This class is used for a Turtle Application.
TurtleFrame() - Constructor for class ch.aplu.turtle.TurtleFrame
New Window with no title and new Playground.
TurtleFrame(int, int) - Constructor for class ch.aplu.turtle.TurtleFrame
New Window with no title and new Playground with width and height.
TurtleFrame(Playground) - Constructor for class ch.aplu.turtle.TurtleFrame
New Window with no title and specified Playground
TurtleFrame(String) - Constructor for class ch.aplu.turtle.TurtleFrame
If you want a new Window with a new Playground and specified title, this is the constructor you need.
TurtleFrame(String, int, int) - Constructor for class ch.aplu.turtle.TurtleFrame
If you want a new Window with a new Playground (with width and height) and specified title, this is the constructor you need.
TurtleFrame(String, Playground) - Constructor for class ch.aplu.turtle.TurtleFrame
New Window with specified Playground.
TurtleRenderer - class ch.aplu.turtle.TurtleRenderer.
This class is responsible for creating and choosing the correct Turtle picture.

W

WRAP - Static variable in class ch.aplu.turtle.Turtle
Represents wrap mode.
wrap() - Method in class ch.aplu.turtle.Turtle
Causes the turtle to wrap around the edges.
wrapLineTo(double, double) - Method in class ch.aplu.turtle.LineRenderer
Does the actual painting for wrap mode.
wrapPaint(int, int, Graphics) - Method in class ch.aplu.turtle.TurtleRenderer
Defines how to paint in wrap mode (and does it!)
wraps() - Method in class ch.aplu.turtle.Turtle
Tells wheter the turtle is in wrap mode.

A B C D F G H I L P R S T W