|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to describe and control an object that can be scrolled. Principally, there are two ways to organize the scrolling for a light weight component:
setLocation
method to scroll the component inside a parent container.
paint
method
of the component and move view inside the method basing on the scrolling offsets.
Method Summary | |
java.awt.Point |
getSOLocation()
Gets the scroll object location. |
java.awt.Dimension |
getSOSize()
Gets the scroll object size. |
boolean |
moveContent()
Tests if the scroll component performs scrolling by changing its location or moving view. |
void |
setScrollMan(ScrollMan m)
Sets the specified scroll manager for the scroll object. |
void |
setSOLocation(int x,
int y)
Sets the specified scroll object location. |
Method Detail |
public java.awt.Point getSOLocation()
public void setSOLocation(int x, int y)
x
- the specified x coordinate.y
- the specified y coordinate.public java.awt.Dimension getSOSize()
public void setScrollMan(ScrollMan m)
m
- the specified scroll manager.public boolean moveContent()
true
if the scroll component organizes scrolling by moving
its view; otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |