com.alee.laf.scroll
Interface ScrollBarPainter<E extends javax.swing.JScrollBar>

All Superinterfaces:
Painter<E>, SpecificPainter
All Known Implementing Classes:
AdaptiveScrollBarPainter, NPScrollBarPainter, WebScrollBarPainter

public interface ScrollBarPainter<E extends javax.swing.JScrollBar>
extends Painter<E>, SpecificPainter

Base interface for JScrollBar component painters.

Author:
Mikle Garin

Method Summary
 void setDragged(boolean dragged)
          Sets whether scroll bar thumb is being dragged or not.
 void setPaintButtons(boolean paint)
          Sets whether scroll bar arrow buttons are visible or not.
 void setPaintTrack(boolean paint)
          Sets whether scroll bar track should be painted or not.
 void setThumbBounds(java.awt.Rectangle bounds)
          Sets scroll bar thumb bounds.
 void setTrackBounds(java.awt.Rectangle bounds)
          Sets scroll bar track bounds.
 
Methods inherited from interface com.alee.extended.painter.Painter
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 

Method Detail

setPaintButtons

void setPaintButtons(boolean paint)
Sets whether scroll bar arrow buttons are visible or not. Buttons are painted separately, this mark simply informs whether they are actually visible or not.

Parameters:
paint - whether scroll bar arrow buttons are visible or not

setPaintTrack

void setPaintTrack(boolean paint)
Sets whether scroll bar track should be painted or not.

Parameters:
paint - whether scroll bar track should be painted or not

setDragged

void setDragged(boolean dragged)
Sets whether scroll bar thumb is being dragged or not. This value is updated by WebScrollBarUI when drag event starts or ends.

Parameters:
dragged - whether scroll bar thumb is being dragged or not

setTrackBounds

void setTrackBounds(java.awt.Rectangle bounds)
Sets scroll bar track bounds. This value is updated by WebScrollBarUI on each paint call to ensure that proper bounds presented.

Parameters:
bounds - new scroll bar track bounds

setThumbBounds

void setThumbBounds(java.awt.Rectangle bounds)
Sets scroll bar thumb bounds. This value is updated by WebScrollBarUI on each paint call to ensure that proper bounds presented.

Parameters:
bounds - new scroll bar thumb bounds