Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class UIScrollThumb extends UIThumb { // Constructors public UIScrollThumb(); public UIScrollThumb(Component component); // Methods public void paint(Graphics g); public Insets insets(); }
A class that implements a scroll thumb control; used by UIScroll and UIScrollBar. UIScrollThumb responds to mouse events by overriding the mouseDown, mouseDrag, and mouseUp methods (inherited through UIThumb).
public UIScrollThumb();Creates a scroll thumb control with no content.
public UIScrollThumb(Component component);Creates a scroll thumb control using the specified component for content.
Parameter Description comp The component to be displayed within the control.
public Insets insets();Determines the scroll thumb's insets (in pixels), which indicate the size of the control's border.
Return Value:
Returns an Insets object containing the scroll thumb's insets.
Remarks:
By default, this method sets all insets to 2 pixels.
public void paint(Graphics g);Draws the scroll thumb.
Return Value:
No return value.
Parameter Description g The graphics context.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.