Package com.ms.ui Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class UIScrollThumb

Constructors , Methods

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).


Constructors


UIScrollThumb

public UIScrollThumb();

Creates a scroll thumb control with no content.


UIScrollThumb

public UIScrollThumb(Component component);

Creates a scroll thumb control using the specified component for content.

ParameterDescription
comp The component to be displayed within the control.


Methods


insets

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.


paint

public void paint(Graphics g);

Draws the scroll thumb.

Return Value:

No return value.

ParameterDescription
g The graphics context.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.