APIdia Launch Partner
Top Description Fields Methods
java.awt.peer

public Interface CanvasPeer

extends ComponentPeer
Known Direct Implementers
sun.awt.NullComponentPeer, sun.awt.X11.XCanvasPeer
Imports
java.awt.Canvas, .GraphicsConfiguration

The peer interface for Canvas. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Field Summary

Inherited from java.awt.peer.ComponentPeer:
DEFAULT_OPERATIONNO_EMBEDDED_CHECKRESET_OPERATIONSET_BOUNDSSET_CLIENT_SIZESET_LOCATIONSET_SIZE

Method Summary

Modifier and TypeMethod and Description
public GraphicsConfiguration

Returns:

a graphics configuration that best suits this Canvas
getAppropriateGraphicsConfiguration
(GraphicsConfiguration
the requested graphics configuration
gc
)

Requests a GC that best suits this Canvas.

Inherited from java.awt.peer.ComponentPeer:
applyShapecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdisposeflipgetBackBuffergetColorModelgetFontMetricsgetGraphicsgetGraphicsConfigurationgetLocationOnScreengetMinimumSizegetPreferredSizehandleEventhandlesWheelScrollingisFocusableisObscuredisReparentSupportedlayoutpaintprintreparentrequestFocussetBackgroundsetBoundssetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsData

Method Detail

getAppropriateGraphicsConfigurationback to summary
public GraphicsConfiguration getAppropriateGraphicsConfiguration(GraphicsConfiguration gc)

Requests a GC that best suits this Canvas. The returned GC may differ from the requested GC passed as the argument to this method. This method must return a non-null value (given the argument is non-null as well).

Parameters
gc:GraphicsConfiguration

the requested graphics configuration

Returns:GraphicsConfiguration

a graphics configuration that best suits this Canvas

Since
1.7