public class TrailingCameraPortal extends CameraPortal
borderWidth, halfBorderWidth, stroke
Constructor and Description |
---|
TrailingCameraPortal(int x,
int y,
int w,
int h,
Camera c,
float a,
int xo,
int yo)
Builds a new possibly translucent portal displaying what is seen through a camera
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose of resources associated with this portal.
|
double |
getDistance() |
void |
setCutoffFrequencyParameters(double a,
double b) |
void |
setNoUpdateWhenMouseStill(boolean b)
Enable/disable update of trailing widget position when cursor does not move at all.
|
void |
setTranslucencyParameters(float a,
float b) |
void |
updateFrequency() |
void |
updateFrequency(long currentTime) |
void |
updateWidgetLocation() |
void |
updateWidgetLocation(int cx,
int cy) |
centerOnRegion, centerOnRegion, centerOnRegion, centerOnRegion, coordInside, coordInsideBorder, getBackgroundColor, getBorder, getBorderWidth, getCamera, getCameras, getGlobalView, getGlobalView, getGlobalView, getGlobalView, getPicker, getSeamlessView, getTranslucencyValue, getVisibleRegion, getVisibleRegion, getVisibleRegion, getVSCoordinates, getVSCoordinates, paint, pick, setBackgroundColor, setBorder, setBorderWidth, setOwningView, setTranslucencyValue
cursorInOut, getDimensions, getDistanceFromBorders, getOwningView, getPortalListener, isVisible, move, moveTo, resize, setPortalListener, setVisible, sizeTo, updateDimensions
public TrailingCameraPortal(int x, int y, int w, int h, Camera c, float a, int xo, int yo)
x
- top-left horizontal coordinate of portal, in parent's JPanel coordinatesy
- top-left vertical coordinate of portal, in parent's JPanel coordinatesw
- portal widthh
- portal heightc
- camera associated with the portala
- alpha channel value (translucency). alpha ranges between 0.0 (fully transparent) and 1.0 (fully opaque)xo
- horizontal offset (in pixels) between cursor and portal (trailing widget)yo
- vertical offset (in pixels) between cursor and portal (trailing widget)public void setCutoffFrequencyParameters(double a, double b)
public void setTranslucencyParameters(float a, float b)
public void updateFrequency()
public void updateFrequency(long currentTime)
public void updateWidgetLocation(int cx, int cy)
public double getDistance()
public void updateWidgetLocation()
public void setNoUpdateWhenMouseStill(boolean b)
b
- true to enable. Default is true.public void dispose()
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.