Top Inners Fields Constructors Methods
jogamp.newt.driver.awt

public Class AWTCanvas

extends Canvas
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.Canvas, .Graphics, .GraphicsDevice, .GraphicsConfiguration, java.lang.reflect.Method, java.security.AccessController, .PrivilegedAction, com.jogamp.nativewindow.AbstractGraphicsDevice, .AbstractGraphicsScreen, .CapabilitiesChooser, .CapabilitiesImmutable, .GraphicsConfigurationFactory, .NativeWindow, .NativeWindowException, .NativeWindowFactory, .VisualIDHolder, com.jogamp.nativewindow.awt.AWTGraphicsConfiguration, .AWTGraphicsDevice, .AWTGraphicsScreen, .JAWTWindow, com.jogamp.newt.Window

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private volatile AWTGraphicsConfiguration
private final CapabilitiesImmutable
private final CapabilitiesChooser
private GraphicsConfiguration
private volatile GraphicsDevice
private static boolean
private static Method
private boolean
private final WindowDriver
private volatile JAWTWindow
private final AWTCanvas.UpstreamScalable

Constructor Summary

AccessConstructor and Description
public
AWTCanvas(final WindowDriver driver, final CapabilitiesImmutable capabilities, final CapabilitiesChooser chooser, final AWTCanvas.UpstreamScalable upstreamScale)

Method Summary

Modifier and TypeMethod and Description
public void
addNotify()

Overrides java.awt.Canvas.addNotify.

Creates the peer of the canvas.
private static AWTGraphicsConfiguration
chooseGraphicsConfiguration(final CapabilitiesImmutable capsChosen, final CapabilitiesImmutable capsRequested, final CapabilitiesChooser chooser, final GraphicsDevice device)

private void
pack-priv void
public AWTGraphicsConfiguration
public GraphicsConfiguration
getGraphicsConfiguration()

Overrides java.awt.Component.getGraphicsConfiguration.

Overridden to choose a GraphicsConfiguration on a parent container's GraphicsDevice because both devices
public NativeWindow
private String
public boolean
public boolean
public void
paint(final Graphics
the specified Graphics context
g
)

Overrides java.awt.Canvas.paint.

Overridden to cause OpenGL rendering to be performed during repaint cycles.
public void
removeNotify()

Overrides java.awt.Component.removeNotify.

Makes this Component undisplayable by destroying it native screen resource.
private void
public void
update(final Graphics
the specified Graphics context
g
)

Overrides java.awt.Canvas.update.

Overridden from Canvas to prevent the AWT's clearing of the canvas from interfering with the OpenGL rendering.
Inherited from java.awt.Canvas:
createBufferStrategycreateBufferStrategygetAccessibleContextgetBufferStrategy

Field Detail

awtConfigback to summary
private volatile AWTGraphicsConfiguration awtConfig
capabilitiesback to summary
private final CapabilitiesImmutable capabilities
chooserback to summary
private final CapabilitiesChooser chooser
chosenback to summary
private GraphicsConfiguration chosen
deviceback to summary
private volatile GraphicsDevice device
disableBackgroundEraseInitializedback to summary
private static boolean disableBackgroundEraseInitialized
disableBackgroundEraseMethodback to summary
private static Method disableBackgroundEraseMethod
displayConfigChangedback to summary
private boolean displayConfigChanged
driverback to summary
private final WindowDriver driver
jawtWindowback to summary
private volatile JAWTWindow jawtWindow
upstreamScaleback to summary
private final AWTCanvas.UpstreamScalable upstreamScale

Constructor Detail

AWTCanvasback to summary
public AWTCanvas(final WindowDriver driver, final CapabilitiesImmutable capabilities, final CapabilitiesChooser chooser, final AWTCanvas.UpstreamScalable upstreamScale)

Method Detail

addNotifyback to summary
public void addNotify()

Overrides java.awt.Canvas.addNotify.

Doc from java.awt.Canvas.addNotify.

Creates the peer of the canvas. This peer allows you to change the user interface of the canvas without changing its functionality.

Annotations
@Override
chooseGraphicsConfigurationback to summary
private static AWTGraphicsConfiguration chooseGraphicsConfiguration(final CapabilitiesImmutable capsChosen, final CapabilitiesImmutable capsRequested, final CapabilitiesChooser chooser, final GraphicsDevice device)
disableBackgroundEraseback to summary
private void disableBackgroundErase()
disposeback to summary
pack-priv void dispose()
getAWTGraphicsConfigurationback to summary
public AWTGraphicsConfiguration getAWTGraphicsConfiguration()
getGraphicsConfigurationback to summary
public GraphicsConfiguration getGraphicsConfiguration()

Overrides java.awt.Component.getGraphicsConfiguration.

Overridden to choose a GraphicsConfiguration on a parent container's GraphicsDevice because both devices

Returns:GraphicsConfiguration

Doc from java.awt.Component.getGraphicsConfiguration.

the GraphicsConfiguration used by this Component or null

Annotations
@Override
getNativeWindowback to summary
public NativeWindow getNativeWindow()
getThreadNameback to summary
private String getThreadName()
hasDeviceChangedback to summary
public boolean hasDeviceChanged()
isOffscreenLayerSurfaceEnabledback to summary
public boolean isOffscreenLayerSurfaceEnabled()
paintback to summary
public void paint(final Graphics g)

Overrides java.awt.Canvas.paint.

Overridden to cause OpenGL rendering to be performed during repaint cycles. Subclasses which override this method must call super.paint() in their paint() method in order to function properly.

Parameters
g:Graphics

Doc from java.awt.Canvas.paint.

the specified Graphics context

Annotations
@Override
removeNotifyback to summary
public void removeNotify()

Overrides java.awt.Component.removeNotify.

Doc from java.awt.Component.removeNotify.

Makes this Component undisplayable by destroying it native screen resource.

This method is called by the toolkit internally and should not be called directly by programs. Code overriding this method should call super.removeNotify as the first line of the overriding method.

Annotations
@Override
setAWTGraphicsConfigurationback to summary
private void setAWTGraphicsConfiguration(final AWTGraphicsConfiguration config)
updateback to summary
public void update(final Graphics g)

Overrides java.awt.Canvas.update.

Overridden from Canvas to prevent the AWT's clearing of the canvas from interfering with the OpenGL rendering.

Parameters
g:Graphics

Doc from java.awt.Canvas.update.

the specified Graphics context

Annotations
@Override
jogamp.newt.driver.awt back to summary

public Interface AWTCanvas.UpstreamScalable


Method Summary

Modifier and TypeMethod and Description
public float[]
public void
setHasPixelScale(final float[] pixelScale)

Method Detail

getReqPixelScaleback to summary
public float[] getReqPixelScale()
setHasPixelScaleback to summary
public void setHasPixelScale(final float[] pixelScale)