|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
javax.media.j3d.Canvas3D
com.sun.j3d.exp.swing.JCanvas3D.InternalCanvas3D
static class JCanvas3D.InternalCanvas3D
This class is the internal Canvas3D that is used and sent to Java 3D. It is remote controlled through JCanvas3D and is modified to be able to tell the lightweight component when refreshes are needed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Canvas |
---|
java.awt.Canvas.AccessibleAWTCanvas |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(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. |
Fields inherited from class javax.media.j3d.Canvas3D |
---|
FIELD_ALL, FIELD_LEFT, FIELD_RIGHT |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JCanvas3D.InternalCanvas3D(java.awt.GraphicsConfiguration graphicsConfiguration,
JCanvas3D lwCanvas)
Creates a new instance of JCanvas3D. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.awt.Canvas |
---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
Methods inherited from class java.awt.Component |
---|
action, 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, 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, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private 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
Constructor Detail |
---|
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.Method Detail |
---|
public void addNotify()
addNotify
in class Canvas3D
public java.awt.Container getParent()
getParent
in class java.awt.Component
public void postRender()
postRender
in class Canvas3D
public void postSwap()
postSwap
in class Canvas3D
protected void processComponentEvent(java.awt.event.ComponentEvent e)
processComponentEvent
in class java.awt.Component
e
- protected void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent
in class java.awt.Component
e
- protected void processInputMethodEvent(java.awt.event.InputMethodEvent e)
processInputMethodEvent
in class java.awt.Component
e
- protected void processKeyEvent(java.awt.event.KeyEvent e)
processKeyEvent
in class java.awt.Component
e
- protected void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent
in class java.awt.Component
e
- protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
processMouseMotionEvent
in class java.awt.Component
e
- protected void processMouseWheelEvent(java.awt.event.MouseWheelEvent e)
processMouseWheelEvent
in class java.awt.Component
e
- void waitForSwap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |