public interface Scrollable
The widget will be notified when the viewport of the scroll composite change. It can then optimize its rendering (or hierarchy for a composite) to avoid drawing elements outside the viewport.
Modifier and Type | Method and Description |
---|---|
void |
updateViewport(int x,
int y,
int width,
int height)
Called when the scroll composite updates its viewport.
|
void updateViewport(int x, int y, int width, int height)
x
- the new x coordinate of the viewport.y
- the new y coordinate of the viewport.width
- the new width of the viewport.height
- the new height of the viewport.