| |
|
| java.lang.Object org.netbeans.modules.palette.ui.AutoscrollSupport
AutoscrollSupport | final class AutoscrollSupport extends Object implements Autoscroll(Code) | | The support for autoscrolling in components contained in
the viewport.
author: Dafe Simonek |
autoscrollInsets | Insets autoscrollInsets(Code) | | Insets to return from getAutoscrollInsets - insets
where autoscroll could potencionally occur
|
comp | Component comp(Code) | | The component which we support with autoscrolling
|
insets | Insets insets(Code) | | The insets where autoscrolling is active
|
scrollUnits | Insets scrollUnits(Code) | | Base sizes of scrolling during one autoscroll operation
|
viewport | JViewport viewport(Code) | | The viewport containing asociated component
|
AutoscrollSupport | AutoscrollSupport(Component comp)(Code) | | Creates a support for given component with given insets
where autoscrolling is active
|
autoscroll | public void autoscroll(Point cursorLoc)(Code) | | Performs autoscroll operation.
|
getAutoscrollInsets | public Insets getAutoscrollInsets()(Code) | | |
getInsets | public Insets getInsets()(Code) | | insets where autoscroll is active |
getScrollUnits | public Insets getScrollUnits()(Code) | | Scroll units for one autoscroll operation. |
getViewport | JViewport getViewport()(Code) | | Getter for viewport of asociated component.
Can return null if component is not contained in any viewport.
|
setInsets | public void setInsets(Insets insets)(Code) | | Sets new active autoscroll insets
|
setScrollUnits | public void setScrollUnits(Insets scrollUnits)(Code) | | Sets autoscroll scroll units.
When autoscroll(..) method is called, it will scroll the
component accordign to scroll unit in appropriate direction.
So, scrollUnits.top says how much (in pixels) the component
will autoscroll up etc...
|
|
|
|