Serialized Form
Class galapagos.DrawingCanvas extends java.awt.Canvas implements Serializable |
serialVersionUID: 1L
DEFAULT_UNIT
double DEFAULT_UNIT
- A class constant for the scaling factor, # of pixels per logical unit.
GRID_INTERVAL_FACTOR
int GRID_INTERVAL_FACTOR
- A class constant for the number of logical units between the grid lines.
graphic
java.awt.Graphics graphic
- A Graphics object for this canvas.
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.
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.
unit
double unit
- The current scaling factor value.
drawGrid
boolean drawGrid
- Set to true to draw grid lines.
offScreenImage
java.awt.Image offScreenImage
- An Image used for double-buffering.
offScreenGraphics
java.awt.Graphics offScreenGraphics
- A Graphics object associated to the offscreen Image used for
double-buffering.
canvasWidth
int canvasWidth
- The current width, in pixels, of the canvas.
canvasHeight
int canvasHeight
- The current height, in pixels, of the canvas.
drawers
java.util.List<E> drawers
- An array of objects that implements DrawingController interface.
serialVersionUID: 1L
canvas
galapagos.DrawingCanvas canvas
- Canvas for which the owner turtles will draw