fr.inria.zvtm.engine
Class StdViewPanel

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

public class StdViewPanel
extends ViewPanel

JPanel used to paint the content of a view (all camera layers). Manual double buffering, to allow modifications to the rendering before it gets painted on screen (e.g., applying magnification lenses).

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
 void drawOffscreen()
           
 Component getComponent()
          Get the underlying Swing component.
 BufferedImage getImage()
           
 int getRefreshRate()
          Gets the maximum view refresh rate.
 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

drawOffscreen

public void drawOffscreen()

getImage

public BufferedImage getImage()
Specified by:
getImage in class ViewPanel

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


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.