fr.inria.zvtm.engine
Class GLViewPanel

java.lang.Object
  extended by fr.inria.zvtm.engine.ViewPanel
      extended by fr.inria.zvtm.engine.GLViewPanel
All Implemented Interfaces:
ComponentListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class GLViewPanel
extends ViewPanel

JPanel used to paint the content of a view (all camera layers). Uses OpenGL acceletation provided by the Java2D OpenGL rendering pipeline available since J2SE 5.0 (Linux and Windows, not Mac OS X). The use of GLViewPanel requires the following Java property: -Dsun.java2d.opengl=true

Author:
Emmanuel Pietriga

Field Summary
protected  JPanel panel
           
 
Fields inherited from class fr.inria.zvtm.engine.ViewPanel
activeLayer, awtCursor, cams, CIRCLE, curDragx, curDragy, drawVTMcursor, FIRST_ORDER_PAN_WIDGET, lens, NO_COORDS, NONE, oldX, oldY, origDragx, origDragy, OVAL, parent, stableRefToBackBufferGraphics
 
Method Summary
 Component getComponent()
          Get the underlying Swing component.
 BufferedImage getImage()
          Not implemented yet.
 int getRefreshRate()
          Gets the maximum view refresh rate.
 void paint(Graphics g)
           
 void setRefreshRate(int rr)
          Sets the maximum view refresh rate.
 
Methods inherited from class fr.inria.zvtm.engine.ViewPanel
afterLensHook, backgroundHook, componentHidden, componentMoved, componentResized, componentShown, drawPortals, foregroundHook, getAutoRequestFocusOnMouseEnter, getDelay, getGlyphsUnderCursorList, getLens, getListeners, getNoEventCoordinates, getVCursor, getVisibilityPadding, hideFirstOrderPanWidget, isShowingFirstOrderPanWidget, lastGlyphEntered, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, portalsHook, setAutoRequestFocusOnMouseEnter, setAWTCursor, setAWTCursor, setDrawCursor, setDrawDrag, setDrawOval, setDrawRect, setDrawSegment, setFirstOrderPanWidget, setLens, setNoEventCoordinates, setVisibilityPadding, showFirstOrderPanWidget, spaceToViewCoords, viewToSpaceCoords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

protected JPanel panel
Method Detail

getComponent

public Component getComponent()
Get the underlying Swing component.

Specified by:
getComponent in class ViewPanel
Returns:
the underlying JPanel

paint

public void paint(Graphics g)

setRefreshRate

public void setRefreshRate(int rr)
Description copied from class: ViewPanel
Sets the maximum view refresh rate. Beyond which ZVTM won't go even if it can.

Specified by:
setRefreshRate in class ViewPanel
Parameters:
rr - positive integer in milliseconds

getRefreshRate

public int getRefreshRate()
Description copied from class: ViewPanel
Gets the maximum view refresh rate. Beyond which ZVTM won't go even if it can.

Specified by:
getRefreshRate in class ViewPanel
Returns:
positive integer in milliseconds

getImage

public BufferedImage getImage()
Not implemented yet.

Specified by:
getImage in class ViewPanel


Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2011 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.