public class OverviewPortal extends CameraPortal
borderWidth, halfBorderWidth, stroke
Constructor and Description |
---|
OverviewPortal(int x,
int y,
int w,
int h,
Camera pc,
Camera orc)
Builds a new portal displaying what is seen through a camera and the region seen through another camera.
|
Modifier and Type | Method and Description |
---|---|
boolean |
coordInsideObservedRegion(int cx,
int cy)
Is the given point inside the observed region rectangle depicting what is seen through the main camera (viewfinder).
|
void |
dispose() |
void |
drawObservedRegionLocator(boolean b) |
Camera |
getObservedRegionCamera() |
Color |
getObservedRegionColor()
Get color of rectangle depicting what is seen through the main camera.
|
double |
getObservedRegionCX() |
double |
getObservedRegionCY() |
double |
getObservedRegionH() |
AlphaComposite |
getObservedRegionTranslucency() |
double |
getObservedRegionW() |
double |
getObservedRegionX() |
double |
getObservedRegionY() |
boolean |
isDrawObservedRegionLocator() |
void |
paint(Graphics2D g2d,
int viewWidth,
int viewHeight) |
float |
setObservedRegionBorderWidth()
Get the border width of the rectangle depicting what is seen through the main camera.
|
void |
setObservedRegionBorderWidth(float bw)
Set the border width of the rectangle depicting what is seen through the main camera.
|
void |
setObservedRegionColor(Color c)
Set color of rectangle depicting what is seen through the main camera.
|
void |
setObservedRegionListener(ObservedRegionListener orl) |
void |
setObservedRegionTranslucency(float a) |
centerOnRegion, centerOnRegion, centerOnRegion, centerOnRegion, coordInside, coordInsideBorder, getBackgroundColor, getBorder, getBorderWidth, getCamera, getCameras, getGlobalView, getGlobalView, getGlobalView, getGlobalView, getPicker, getSeamlessView, getTranslucencyValue, getVisibleRegion, getVisibleRegion, getVisibleRegion, getVSCoordinates, getVSCoordinates, pick, setBackgroundColor, setBorder, setBorderWidth, setOwningView, setTranslucencyValue
cursorInOut, getDimensions, getDistanceFromBorders, getOwningView, getPortalListener, isVisible, move, moveTo, resize, setPortalListener, setVisible, sizeTo, updateDimensions
public OverviewPortal(int x, int y, int w, int h, Camera pc, Camera orc)
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 heightpc
- camera associated with the portal (provinding the overview)orc
- camera observing a region; this region is displayed as an overlay in the portalpublic void drawObservedRegionLocator(boolean b)
public boolean isDrawObservedRegionLocator()
public boolean coordInsideObservedRegion(int cx, int cy)
cx
- cursor x-coordinate (JPanel coordinates system)cy
- cursor y-coordinate (JPanel coordinates system)public void setObservedRegionColor(Color c)
public Color getObservedRegionColor()
public void setObservedRegionTranslucency(float a)
public void setObservedRegionBorderWidth(float bw)
public float setObservedRegionBorderWidth()
public double getObservedRegionX()
public double getObservedRegionY()
public double getObservedRegionW()
public double getObservedRegionH()
public double getObservedRegionCX()
public double getObservedRegionCY()
public AlphaComposite getObservedRegionTranslucency()
public Camera getObservedRegionCamera()
public void paint(Graphics2D g2d, int viewWidth, int viewHeight)
paint
in class CameraPortal
public void dispose()
public void setObservedRegionListener(ObservedRegionListener orl)
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.