static class JCanvas3D.InternalCanvas3D extends Canvas3D implements AutoOffScreenCanvas3D
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
addNotifyFlag
flag used to sort a call to addnotify() from user and
from the lightweight component.
|
(package private) java.awt.image.BufferedImage |
bi
the bufferedImage that will be displayed as the result
of the computations.
|
protected boolean |
canvasCrashed
flag indicating that the canvas crashed in a way or an
other, making swing to wait for the swap for much too long.
|
(package private) boolean |
imageReadyBis
flag used to know when image can be painted or not.
|
(package private) JCanvas3D |
lwCanvas
This is the lightweight canvas that is linked to that
offscreen canvas.
|
private static int |
MAX_WAIT_LOOPS |
private static long |
MAX_WAIT_TIME |
(package private) JCanvas3D.ResizeThread |
resizeThread
If delayed resizing is selected, a thread handling
resising will be started.
|
(package private) boolean |
waitingForSwap
Flag to indicate that the component is waiting for the
canvas to acomplish its swap, and that the component has to be
notified when done.
|
FIELD_ALL, FIELD_LEFT, FIELD_RIGHT| Constructor and Description |
|---|
JCanvas3D.InternalCanvas3D(java.awt.GraphicsConfiguration graphicsConfiguration,
JCanvas3D lwCanvas)
Creates a new instance of JCanvas3D.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify()
Canvas3D uses the addNotify callback to track when it is added
to a container.
|
java.awt.Container |
getParent()
Normally, returns the parent of that component.
|
void |
postRender()
Blocks the retrieval of the render buffer.
|
void |
postSwap()
Retrieves the buffer from canvas, if possible, and
calls/notifies component to be repainted, if necessary.
|
protected void |
processComponentEvent(java.awt.event.ComponentEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processFocusEvent(java.awt.event.FocusEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processInputMethodEvent(java.awt.event.InputMethodEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processKeyEvent(java.awt.event.KeyEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Overriden so that the JComponent can access it.
|
protected void |
processMouseWheelEvent(java.awt.event.MouseWheelEvent e)
Overriden so that the JComponent can access it.
|
(package private) void |
waitForSwap()
If the Canvas is in a state that forbids the retrieving
of the buffer, wait a bit before trying again.
|
getBounds, getBounds, getCenterEyeInImagePlate, getDoubleBufferAvailable, getDoubleBufferEnable, getGraphics2D, getGraphicsContext3D, getHeight, getImagePlateToVworld, getInverseVworldProjection, getLeftEyeInImagePlate, getLeftManualEyeInImagePlate, getLocation, getLocation, getLocationOnScreen, getMonoscopicViewPolicy, getOffScreenBuffer, getOffScreenLocation, getOffScreenLocation, getPhysicalHeight, getPhysicalWidth, getPixelLocationFromImagePlate, getPixelLocationInImagePlate, getPixelLocationInImagePlate, getRightEyeInImagePlate, getRightManualEyeInImagePlate, getSceneAntialiasingAvailable, getScreen3D, getSize, getSize, getStereoAvailable, getStereoEnable, getView, getVworldProjection, getVworldToImagePlate, getWidth, getX, getY, isOffScreen, isRendererRunning, isShadingLanguageSupported, paint, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRenderingcreateBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processEvent, processHierarchyBoundsEvent, processHierarchyEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validateprivate static final int MAX_WAIT_LOOPS
private static final long MAX_WAIT_TIME
java.awt.image.BufferedImage bi
JCanvas3D lwCanvas
JCanvas3D.ResizeThread resizeThread
boolean addNotifyFlag
protected boolean canvasCrashed
boolean imageReadyBis
boolean waitingForSwap
public JCanvas3D.InternalCanvas3D(java.awt.GraphicsConfiguration graphicsConfiguration,
JCanvas3D lwCanvas)
graphicsConfiguration - The graphics configuration to be used.lwCanvas - the lightweight canvas that is linked to that
heavyweight canvas.public void addNotify()
public java.awt.Container getParent()
getParent in class java.awt.Componentpublic void postRender()
postRender in class Canvas3Dpublic void postSwap()
protected void processComponentEvent(java.awt.event.ComponentEvent e)
processComponentEvent in class java.awt.Componente - protected void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent in class java.awt.Componente - protected void processInputMethodEvent(java.awt.event.InputMethodEvent e)
processInputMethodEvent in class java.awt.Componente - protected void processKeyEvent(java.awt.event.KeyEvent e)
processKeyEvent in class java.awt.Componente - protected void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in class java.awt.Componente - protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
processMouseMotionEvent in class java.awt.Componente - protected void processMouseWheelEvent(java.awt.event.MouseWheelEvent e)
processMouseWheelEvent in class java.awt.Componente - void waitForSwap()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.