Class UIScrollThumb
public class UIScrollThumb extends UIThumb
{
// Fields
public static final int THICK;
// Constructors
public UIScrollThumb();
public UIScrollThumb(IUIComponent comp);
// Methods
public Insets getInsets();
public int getStyle();
public void paint(FxGraphics g);
public void setStyle(int style);
}
This class implements a scroll thumb control. UIScrollThumb is used by UIScroll and UIScrollBar, and responds to various mouse events.
UIComponent
|
+--UIContainer
|
+--UIStateContainer
|
+--UISingleContainer
|
+--UIThumb
|
+--UIScrollThumb
public UIScrollThumb();
Creates a scroll thumb control with no content.
public UIScrollThumb(IUIComponent comp);
Creates a scroll thumb control using the specified component for content.
Parameter | Description |
comp
| The component to be displayed within the control.
|
public Insets getInsets();
Retrieves the scroll thumb control's insets (in pixels), which identify the nonclient area of the control.
Return Value:
Returns an Insets object containing the scroll thumb's insets.
Remarks:
By default, all insets are 2 pixels each.
public int getStyle();
Retrieves the thumb's current style settings.
Return Value:
Returns an integer containing the current style settings.
See Also: setStyle
public void paint(FxGraphics g);
Draws the scroll thumb control.
Return Value:
No return value.
Parameter | Description |
g
| The graphics context.
|
public void setStyle(int style);
Sets the current style for the thumb.
Return Value:
No return value.
Parameter | Description |
style
| The style of the thumb. You can pass THICK to specify a thick border around the thumb.
|
Exceptions:
IllegalArgumentException
if an undefined style was specified.
- THICK
- Specifies that the thumb has a thick edge.