|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PScrollDirector
The interface an application can implement to control scrolling in a PScrollPane->PViewport->ZCanvas component hierarchy.
PDefaultScrollDirector| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 computed
void 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
computed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||