A simple window for allowing turtles to draw. You can add multiple turtles to this window. With the current implementation, drawing becomes jaggy when you add multiple turtles. This performance problem will be addressed in the next release.
Constructor Summary | |
TurtleDrawingWindow()
A default constructor that creates an instance of the PlottingCanvas class. |
Method Summary | |
void |
add(galapagos.DrawingController owner)
A mutator method that adds another DrawingController that will draw its trajectory on this canvas. |
void |
clear()
Erases the current contents of the PlottingCanvas by painting the whole canvas with the background color. |
void |
setGrid(boolean showGrid)
A mutator method that sets the flag for drawing the grid lines. |
void |
setOrigin(int x,
int y)
A mutator method that sets the origin point. |
void |
setUnit(double pixelsPerUnit)
A mutator method that sets the scaling factor. |
void |
setVisible(boolean visible)
|