|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface an application can implement to control scrolling in a ZScrollPane->ZViewport->ZCanvas component hierarchy.
ZDefaultScrollDirector
Method Summary | |
java.awt.Point |
getViewPosition(java.awt.geom.Rectangle2D r) Get the View position given the specified camera bounds |
java.awt.Dimension |
getViewSize(java.awt.geom.Rectangle2D r) Get the size of the view based on the specified camera bounds |
void |
install(ZViewport viewport, ZCanvas view) Installs the scroll director |
void |
setViewPosition(double x, double y) Set the view position |
void |
unInstall() Uninstall the scroll director |
Method Detail |
public void install(ZViewport viewport, ZCanvas view)
view
- The ZCanvas that the viewport looks atpublic void unInstall()
public java.awt.Point getViewPosition(java.awt.geom.Rectangle2D r)
public void setViewPosition(double x, double y)
x
- The new x positiony
- The new y positionpublic java.awt.Dimension getViewSize(java.awt.geom.Rectangle2D r)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |