public class DraggableCameraPortal extends CameraPortal
borderWidth, halfBorderWidth, stroke| Constructor and Description |
|---|
DraggableCameraPortal(int x,
int y,
int w,
int h,
Camera cam)
Builds a new portal displaying what is seen through a camera
|
DraggableCameraPortal(int x,
int y,
int w,
int h,
Camera[] cams)
Builds a new portal displaying what is seen through a camera
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
coordInsideBar(int cx,
int cy)
detects whether the given point is inside this portal's horizontal bar or not
|
Color |
getDragBarColor()
Get color of horizontal bar used to drag the portal.
|
int |
getDragBarHeight()
Get height of horizontal bar used to drag the portal.
|
void |
setDragBarColor(Color bc)
Set color of horizontal bar used to drag the portal.
|
void |
setDragBarHeight(int bh)
Set height of horizontal bar used to drag the portal.
|
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, setTranslucencyValuecursorInOut, getDimensions, getDistanceFromBorders, getOwningView, getPortalListener, isVisible, move, moveTo, resize, setPortalListener, setVisible, sizeTo, updateDimensionspublic DraggableCameraPortal(int x,
int y,
int w,
int h,
Camera cam)
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 heightcam - camera associated with the portalpublic DraggableCameraPortal(int x,
int y,
int w,
int h,
Camera[] cams)
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 heightcams - camera associated with the portalpublic void setDragBarColor(Color bc)
bc - color of the barpublic Color getDragBarColor()
public void setDragBarHeight(int bh)
bh - height of the barpublic int getDragBarHeight()
public boolean coordInsideBar(int cx,
int cy)
cx - horizontal cursor coordinate (JPanel)cy - vertical cursor coordinate (JPanel)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.