|
JCanvas3DOB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.interactivemesh.j3d.community.gui.JCanvas3DOBAbstract
com.interactivemesh.j3d.community.gui.JCanvas3DOB
public class JCanvas3DOB
JCanvas3DOB is a standard implementation of JCanvas3DOBAbstract.
Serialization: JCanvas3DOB does not support serialization.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class com.interactivemesh.j3d.community.gui.JCanvas3DOBAbstract |
|---|
imageHeight, imageWidth, paintImage |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
JCanvas3DOB()
Constructs and initializes a new JCanvas3DOB object that Java 3D can render into. |
|
JCanvas3DOB(javax.media.j3d.GraphicsConfigTemplate3D template)
Constructs and initializes a new JCanvas3DOB object that Java 3D can render into, using the specified template. |
|
JCanvas3DOB(javax.media.j3d.GraphicsConfigTemplate3D template,
java.awt.GraphicsDevice device)
Constructs and initializes a new JCanvas3DOB object that Java 3D can render into, using the specified template and graphics device. |
|
JCanvas3DOB(java.awt.GraphicsDevice device)
Constructs and initializes a new JCanvas3DOB object that Java 3D can render into, using the specified graphics device. |
|
| Method Summary | |
|---|---|
protected void |
createOffScreenBuffer(int width,
int height)
Creates new off-screen buffers of the given size. A JCanvas3DOB object calls super.createOffScreenBuffer(canvasWidth, canvasHeight)
with the given size. |
protected void |
offScreenBufferCopied()
Callback used to allow an overriding subclass to execute individual code when the off-screen buffers were copied. A JCanvas3DOB object provides an empty implementation. |
protected void |
offScreenBufferCreated()
Callback used to allow an overriding subclass to execute individual code when new off-screen buffers were created. A JCanvas3DOB object provides an empty implementation. |
void |
paintComponent(java.awt.Graphics g)
Flips and paints the result of the 3D rendering. |
| Methods inherited from class com.interactivemesh.j3d.community.gui.JCanvas3DOBAbstract |
|---|
ancestorAdded, ancestorMoved, ancestorRemoved, getOffscreenCanvas3D, isReadyForDrawing, processComponentKeyEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, setBounds |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JCanvas3DOB()
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(),
which might not be the one you should use if you are in a multiscreen environment.
The JCanvas3DOB is constructed using the following default parameters:
public JCanvas3DOB(java.awt.GraphicsDevice device)
device - the screen graphics device that will be used to construct
a GraphicsConfiguration.public JCanvas3DOB(javax.media.j3d.GraphicsConfigTemplate3D template)
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(),
which might not be the one you should use if you are
in a multiscreen environment.
template - The template that will be used to construct a
GraphicsConfiguration. The stereo and doublebuffer properties
are forced to UNNECESSARY.
public JCanvas3DOB(javax.media.j3d.GraphicsConfigTemplate3D template,
java.awt.GraphicsDevice device)
template - The template that will be used to construct a
GraphicsConfiguration. The stereo and doublebuffer properties
are forced to UNNECESSARY.device - the screen graphics device that will be used to construct
a GraphicsConfiguration in conjunction with the template.| Method Detail |
|---|
protected void createOffScreenBuffer(int width,
int height)
Subclasses should call and/or override this method according to its
individual needs. In case of overriding calling
super.createOffScreenBuffer(canvasWidth, canvasHeight)
has to be the last thing to do.
A JCanvas3DOB object calls
super.createOffScreenBuffer(canvasWidth, canvasHeight)
with the given size.
createOffScreenBuffer in class JCanvas3DOBAbstractwidth - the width of the off-screen buffers to createheight - the height of the off-screen buffers to createprotected void offScreenBufferCreated()
This method is called internally by the event-dispatching thread (EDT) and should not be called by applications.
A JCanvas3DOB object provides an empty implementation.
offScreenBufferCreated in class JCanvas3DOBAbstractprotected void offScreenBufferCopied()
This method is called internally by the event-dispatching thread (EDT) and should not be called by applications.
A JCanvas3DOB object provides an empty implementation.
offScreenBufferCopied in class JCanvas3DOBAbstractpublic void paintComponent(java.awt.Graphics g)
paintComponent in class JCanvas3DOBAbstractg -
|
JCanvas3DOB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||