fr.inria.zvtm.engine
Class OffscreenViewPanel

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

public class OffscreenViewPanel
extends ViewPanel

Offscreen panel used to paint the content of a view (all camera layers). Makes it possible to create a very high-resolution rendering of a view, as this one is not limited by the physical display's resolution.

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
 
Constructor Summary
OffscreenViewPanel(Vector cameras)
           
 
Method Summary
 Component getComponent()
          Get the underlying Swing component.
 BufferedImage getImage()
           
 int getRefreshRate()
          Gets the maximum view refresh rate.
 Dimension getSize()
           
 BufferedImage rasterize(int w, int h)
           
 BufferedImage rasterize(int w, int h, Color backgroundColor)
           
 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
Constructor Detail

OffscreenViewPanel

public OffscreenViewPanel(Vector cameras)
Method Detail

getComponent

public Component getComponent()
Description copied from class: ViewPanel
Get the underlying Swing component.

Specified by:
getComponent in class ViewPanel

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

getSize

public Dimension getSize()

rasterize

public BufferedImage rasterize(int w,
                               int h)

rasterize

public BufferedImage rasterize(int w,
                               int h,
                               Color backgroundColor)


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.