@Deprecated public class SwingLightweightGlimpseCanvas extends JPanel implements GlimpseCanvas
GLCanvas. This
Canvas implementation is not as well supported as the newer JOGL NewtCanvasAWT.
For this reason, NewtSwingGlimpseCanvas should generally be preferred over this class.JComponent.AccessibleJComponentComponent.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SwingLightweightGlimpseCanvas()
Deprecated.
|
SwingLightweightGlimpseCanvas(boolean setNoEraseBackgroundProperty,
javax.media.opengl.GLProfile glProfile,
javax.media.opengl.GLContext context)
Deprecated.
Use
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile. |
SwingLightweightGlimpseCanvas(boolean setNoEraseBackgroundProperty,
String profile,
javax.media.opengl.GLContext context)
Deprecated.
Use
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile. |
SwingLightweightGlimpseCanvas(javax.media.opengl.GLContext context)
Deprecated.
|
SwingLightweightGlimpseCanvas(javax.media.opengl.GLProfile glProfile)
Deprecated.
|
SwingLightweightGlimpseCanvas(javax.media.opengl.GLProfile glProfile,
javax.media.opengl.GLContext context)
Deprecated.
Use
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile. |
SwingLightweightGlimpseCanvas(String profile,
javax.media.opengl.GLContext context)
Deprecated.
Use
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDisposeListener(javax.media.opengl.GLRunnable runnable)
Deprecated.
Called when
GLEventListener.dispose(GLAutoDrawable) event is fired by the GLAutoDrawable associated with the
GlimpseCanvas. |
void |
addKeyListener(KeyListener listener)
Deprecated.
|
void |
addLayout(GlimpseLayout layout)
Deprecated.
Adds a sub-layout to this GlimpseTarget which will only paint in a region of this GlimpseTarget
based on its layout constraints.
|
void |
addLayout(GlimpseLayout layout,
int zOrder)
Deprecated.
|
void |
addMouseListener(MouseListener listener)
Deprecated.
|
void |
addMouseMotionListener(MouseMotionListener listener)
Deprecated.
|
void |
addMouseWheelListener(MouseWheelListener listener)
Deprecated.
|
void |
destroy()
Deprecated.
Destroys the native surface which this canvas draws to.
|
void |
dispose()
Deprecated.
A convenience method which is equivalent to:
disposeAttached( );
destroy( );
|
void |
disposeAttached()
Deprecated.
Disposes native resources of GlimpseLayouts and GlimpsePainters associated with the GlimpseCanvas.
|
void |
disposePainter(GlimpsePainter painter)
Deprecated.
Calls
GlimpsePainter.dispose(GlimpseContext) the next time the GLContext associated with
this GlimpseCanvas is active. |
Dimension |
getDimension()
Deprecated.
|
javax.media.opengl.GLContext |
getGLContext()
Deprecated.
|
javax.media.opengl.GLAutoDrawable |
getGLDrawable()
Deprecated.
|
GlimpseContext |
getGlimpseContext()
Deprecated.
|
javax.media.opengl.GLProfile |
getGLProfile()
Deprecated.
|
int[] |
getSurfaceScale()
Deprecated.
Returns the scale factors needed to convert the _native_ pixel coordinates to
the _window_ pixel coordinates.
|
GlimpseBounds |
getTargetBounds()
Deprecated.
|
GlimpseBounds |
getTargetBounds(GlimpseTargetStack stack)
Deprecated.
Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
|
List<GlimpseTarget> |
getTargetChildren()
Deprecated.
|
boolean |
isDestroyed()
Deprecated.
|
boolean |
isEventConsumer()
Deprecated.
Sets whether this GlimpseTarget hides events from GlimpseTargets under it.
|
boolean |
isEventGenerator()
Deprecated.
Sets whether this GlimpseTarget generates GlimpseMouseEvents.
|
void |
paint()
Deprecated.
Lays out any
GlimpseLayout instances
attached to the GlimpseCanvas and paints all
GlimpsePainter instances attached
to the GlimpseLayouts. |
void |
removeAllLayouts()
Deprecated.
Clears the canvas, removing all attached GlimpseLayouts.
|
void |
removeKeyListener(KeyListener listener)
Deprecated.
|
void |
removeLayout(GlimpseLayout layout)
Deprecated.
Removes a previously added layout from this GlimpseTarget.
|
void |
removeMouseListener(MouseListener listener)
Deprecated.
|
void |
removeMouseMotionListener(MouseMotionListener listener)
Deprecated.
|
void |
removeMouseWheelListener(MouseWheelListener listener)
Deprecated.
|
void |
setEventConsumer(boolean consume)
Deprecated.
Set whether or not this GlimpseTarget will consume or pass through mouse events.
|
void |
setEventGenerator(boolean generate)
Deprecated.
Set whether or not this GlimpseTarget will generate GlimpseMouseEvents.
|
void |
setLookAndFeel(LookAndFeel laf)
Deprecated.
Sets the LookAndFeel for this GlimpseTarget and all child GlimpseTargets.
|
void |
setZOrder(GlimpseLayout layout,
int zOrder)
Deprecated.
|
String |
toString()
Deprecated.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitisVisiblepublic SwingLightweightGlimpseCanvas()
public SwingLightweightGlimpseCanvas(javax.media.opengl.GLContext context)
public SwingLightweightGlimpseCanvas(javax.media.opengl.GLProfile glProfile)
public SwingLightweightGlimpseCanvas(javax.media.opengl.GLProfile glProfile,
javax.media.opengl.GLContext context)
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile.public SwingLightweightGlimpseCanvas(String profile, javax.media.opengl.GLContext context)
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile.public SwingLightweightGlimpseCanvas(boolean setNoEraseBackgroundProperty,
String profile,
javax.media.opengl.GLContext context)
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile.public SwingLightweightGlimpseCanvas(boolean setNoEraseBackgroundProperty,
javax.media.opengl.GLProfile glProfile,
javax.media.opengl.GLContext context)
SwingLightweightGlimpseCanvas(GLContext) instead. The context implicitly provides a GLProfile.public void addMouseListener(MouseListener listener)
addMouseListener in class Componentpublic void addMouseMotionListener(MouseMotionListener listener)
addMouseMotionListener in class Componentpublic void addMouseWheelListener(MouseWheelListener listener)
addMouseWheelListener in class Componentpublic void removeMouseListener(MouseListener listener)
removeMouseListener in class Componentpublic void removeMouseMotionListener(MouseMotionListener listener)
removeMouseMotionListener in class Componentpublic void removeMouseWheelListener(MouseWheelListener listener)
removeMouseWheelListener in class Componentpublic void addKeyListener(KeyListener listener)
addKeyListener in class Componentpublic void removeKeyListener(KeyListener listener)
removeKeyListener in class Componentpublic javax.media.opengl.GLProfile getGLProfile()
getGLProfile in interface GlimpseCanvaspublic javax.media.opengl.GLAutoDrawable getGLDrawable()
getGLDrawable in interface GlimpseCanvaspublic GlimpseContext getGlimpseContext()
getGlimpseContext in interface GlimpseCanvaspublic void setLookAndFeel(LookAndFeel laf)
GlimpseTargetsetLookAndFeel in interface GlimpseTargetpublic void addLayout(GlimpseLayout layout)
GlimpseTargetaddLayout in interface GlimpseTargetpublic void addLayout(GlimpseLayout layout, int zOrder)
addLayout in interface GlimpseTargetpublic void setZOrder(GlimpseLayout layout, int zOrder)
setZOrder in interface GlimpseTargetpublic void removeLayout(GlimpseLayout layout)
GlimpseTargetremoveLayout in interface GlimpseTargetpublic void removeAllLayouts()
GlimpseTargetremoveAllLayouts in interface GlimpseTargetpublic List<GlimpseTarget> getTargetChildren()
getTargetChildren in interface GlimpseTargetpublic Dimension getDimension()
public GlimpseBounds getTargetBounds(GlimpseTargetStack stack)
GlimpseTargetgetTargetBounds in interface GlimpseTargetpublic GlimpseBounds getTargetBounds()
getTargetBounds in interface GlimpseCanvaspublic void paint()
GlimpseCanvasGlimpseLayout instances
attached to the GlimpseCanvas and paints all
GlimpsePainter instances attached
to the GlimpseLayouts.paint in interface GlimpseCanvaspublic javax.media.opengl.GLContext getGLContext()
getGLContext in interface GlimpseCanvaspublic boolean isEventConsumer()
GlimpseTargetisEventConsumer in interface GlimpseTargetpublic void setEventConsumer(boolean consume)
GlimpseTargetsetEventConsumer in interface GlimpseTargetpublic boolean isEventGenerator()
GlimpseTargetGlimpseTarget.isEventConsumer()).isEventGenerator in interface GlimpseTargetpublic void setEventGenerator(boolean generate)
GlimpseTargetsetEventGenerator in interface GlimpseTargetpublic boolean isDestroyed()
isDestroyed in interface GlimpseCanvas#dispose() has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.public void destroy()
GlimpseCanvas#disposeAttached().destroy in interface GlimpseCanvasGlimpseCanvas.disposeAttached()public void addDisposeListener(javax.media.opengl.GLRunnable runnable)
GlimpseCanvasGLEventListener.dispose(GLAutoDrawable) event is fired by the GLAutoDrawable associated with the
GlimpseCanvas. This can happen for reasons other than the window containing the GlimpseCanvas being closed (for example, moving
the window between physical monitors or moving the container between docks in a docking framework). Thus, GlimpsePainters and
GlimpseLayouts attached to this GlimpseCanvas should generally not be disposed when this callback occurs.addDisposeListener in interface GlimpseCanvaspublic void dispose()
GlimpseCanvas
disposeAttached( );
destroy( );
dispose in interface GlimpseCanvaspublic void disposeAttached()
GlimpseCanvasdisposeAttached in interface GlimpseCanvasGlimpseCanvas.destroy()public void disposePainter(GlimpsePainter painter)
GlimpseCanvasCalls GlimpsePainter.dispose(GlimpseContext) the next time the GLContext associated with
this GlimpseCanvas is active. Generally this call is equivalent to:
this.getGLDrawable( ).invoke( false, new GLRunnable( )
{disposePainter in interface GlimpseCanvaspublic int[] getSurfaceScale()
GlimpseCanvasgetSurfaceScale in interface GlimpseCanvasCopyright © 2018 Metron, Inc.. All rights reserved.