|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Specifies methods to scroll an image on a canvas.
Method Summary | |
java.awt.Point |
getPanOffset()
Returns the panOffset property. |
void |
scroll(int x,
int y)
Scrolls the image. |
void |
setPanOffset(java.awt.Point panOffset)
Gets the panOffset property. |
void |
startScroll(int x,
int y)
Starts the scroll and sets the anchor point. |
void |
stopScroll()
Stops scroll. |
Method Detail |
public void setPanOffset(java.awt.Point panOffset)
panOffset
- the offset by which the currently displayed image is moved
from the previous position.public java.awt.Point getPanOffset()
public void startScroll(int x, int y)
x
- the x coordinate of the scroll anchor.y
- the y coordinate of the scroll anchor.public void scroll(int x, int y)
x
- the x coordinate of the current position.y
- the y coordinate of the current position.public void stopScroll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |