public interface PScrollDirector
PDefaultScrollDirector| Modifier and Type | Method and Description |
|---|---|
Point |
getViewPosition(Rectangle2D viewBounds)
Get the View position given the specified camera bounds.
|
Dimension |
getViewSize(Rectangle2D viewBounds)
Get the size of the view based on the specified camera bounds.
|
void |
install(PViewport viewport,
PCanvas view)
Installs the scroll director.
|
void |
setViewPosition(double x,
double y)
Set the view position.
|
void |
unInstall()
Uninstall the scroll director.
|
void install(PViewport viewport, PCanvas view)
viewport - The viewport on which this director directsview - The ZCanvas that the viewport looks atvoid unInstall()
Point getViewPosition(Rectangle2D viewBounds)
viewBounds - The bounds for which the view position will be computedvoid setViewPosition(double x,
double y)
x - The new x positiony - The new y positionDimension getViewSize(Rectangle2D viewBounds)
viewBounds - The view bounds for which the view size will be
computedCopyright © 1995-2012 Piccolo2D. All Rights Reserved.