Serialized Form

Class galapagos.DrawingCanvas implements Serializable

Serialized Fields

canvasHeight

int canvasHeight
The current height, in pixels, of the canvas.

canvasWidth

int canvasWidth
The current width, in pixels, of the canvas.

centerX

int centerX
The x-coordinate of the point in the logical coordinate system that corresponds to the physical center of the canvas.

centerY

int centerY
The y-coordinate of the point in the logical coordinate system that corresponds to the physical center of the canvas.

DEFAULT_UNIT

double DEFAULT_UNIT
A class constant for the scaling factor, # of pixels per logical unit.
See Also:
setUnit

drawGrid

boolean drawGrid
Set to true to draw grid lines.

EMPTY

int EMPTY
A class constant for denoting an empty list.

graphic

java.awt.Graphics graphic
A Graphics object for this canvas.

GRID_INTERVAL_FACTOR

int GRID_INTERVAL_FACTOR
A class constant for the number of logical units between the grid lines.

MAX_OWNER_CNT

int MAX_OWNER_CNT
A class constant for the maximum number of DrawingController objects that can be associated to this object.

offScreenGraphics

java.awt.Graphics offScreenGraphics
A Graphics object associated to the offscreen Image used for double-buffering.

offScreenImage

java.awt.Image offScreenImage
An Image used for double-buffering.

originX

int originX
The window's pixel coordinate value that corresponds to the x-coordinate of the origin (0,0). For example, if the canvas size is 800 by 600 and the origin (0,0) of the logical coordinate unit is at the center of the canvas, then originX is set to 400 and originY is set to 300.

originY

int originY
The window's pixel coordinate value that corresponds to the y-coordinate of the origin (0,0). For example, if the canvas size is 800 by 600 and the origin (0,0) of the logical coordinate unit is at the center of the canvas, then originX is set to 400 and originY is set to 300.

owner

galapagos.DrawingController[] owner
An array of objects that implements DrawingController interface.

ownerCount

int ownerCount
A number of owners associated to this canvas.

unit

double unit
The current scaling factor value.


Class galapagos.TurtleDrawingWindow implements Serializable

Serialized Fields

canvas

DrawingCanvas canvas
Canvas for which the owner turtles will draw