public class OffscreenViewPanel extends ViewPanel
Modifier and Type | Field and Description |
---|---|
protected JPanel |
panel |
activeLayer, awtCursor, cams, CIRCLE, curDragx, curDragy, drawVTMcursor, FIRST_ORDER_PAN_WIDGET, lens, NO_COORDS, NONE, oldX, oldY, origDragx, origDragy, OVAL, parent, stableRefToBackBufferGraphics
Constructor and Description |
---|
OffscreenViewPanel(Vector cameras) |
Modifier and Type | Method and Description |
---|---|
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.
|
afterLensHook, backgroundHook, componentHidden, componentMoved, componentResized, componentShown, drawPortals, foregroundHook, getAutoRequestFocusOnMouseEnter, getDelay, getGlyphsUnderCursorList, getLayerVisibilityOfContext, getLayerVisibilityOfLens, getLens, getListeners, getNoEventCoordinates, getVCursor, getVisibilityPadding, hideFirstOrderPanWidget, isShowingFirstOrderPanWidget, lastGlyphEntered, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, portalsHook, setAutoRequestFocusOnMouseEnter, setAWTCursor, setAWTCursor, setDrawCursor, setDrawOval, setDrawRect, setDrawSegment, setFirstOrderPanWidget, setLayerVisibility, setLens, setNoEventCoordinates, setVisibilityPadding, showFirstOrderPanWidget, spaceToViewCoords, viewToSpaceCoords
protected JPanel panel
public OffscreenViewPanel(Vector cameras)
public Component getComponent()
ViewPanel
getComponent
in class ViewPanel
public BufferedImage getImage()
public void setRefreshRate(int rr)
ViewPanel
setRefreshRate
in class ViewPanel
rr
- positive integer in millisecondspublic int getRefreshRate()
ViewPanel
getRefreshRate
in class ViewPanel
public Dimension getSize()
public BufferedImage rasterize(int w, int h)
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-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.