A Canvas component represents a blank rectangular
area of the screen onto which the application can draw or from
which the application can trap input events from the user.
An application must subclass the Canvas class in
order to get useful functionality such as creating a custom
component. The paint method must be overridden
in order to perform custom graphics on the canvas.
This method is called to repaint this canvas. Most applications
that subclass Canvas should override this method in
order to perform some useful operation.
The paint method provided by Canvas
redraws this canvas's rectangle in the background color.
The graphics context's origin (0, 0) is the top-left corner
of this canvas. Its clipping region is the area of the context.
Gets the AccessibleContext associated with this Canvas.
For canvases, the AccessibleContext takes the form of an
AccessibleAWTCanvas.
A new AccessibleAWTCanvas instance is created if necessary.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.