org.zaval.misc
Interface ScrollObj

All Known Implementing Classes:
LwGrid, LwList, LwScrollPan, LwTextField, LwTree

public interface ScrollObj

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:


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

getSOLocation

public java.awt.Point getSOLocation()
Gets the scroll object location.
Returns:
a scroll object location.

setSOLocation

public void setSOLocation(int x,
                          int y)
Sets the specified scroll object location. The method defines a mechanism that will be used to scrool the object.
Parameters:
x - the specified x coordinate.
y - the specified y coordinate.

getSOSize

public java.awt.Dimension getSOSize()
Gets the scroll object size. The size is a size that the scroll object wants to have.
Returns:
a scroll object size.

setScrollMan

public void setScrollMan(ScrollMan m)
Sets the specified scroll manager for the scroll object. The manager reference should be used with the scroll object to notify when the scroll object has been moved or resized.
Parameters:
m - the specified scroll manager.

moveContent

public boolean moveContent()
Tests if the scroll component performs scrolling by changing its location or moving view.
Returns:
true if the scroll component organizes scrolling by moving its view; otherwise false.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org