com.alee.laf.scroll
Class AdaptiveScrollBarButtonPainter<E extends javax.swing.AbstractButton>

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by com.alee.extended.painter.AdaptivePainter<E>
          extended by com.alee.laf.scroll.AdaptiveScrollBarButtonPainter<E>
All Implemented Interfaces:
Painter<E>, ScrollBarButtonPainter<E>

public class AdaptiveScrollBarButtonPainter<E extends javax.swing.AbstractButton>
extends AdaptivePainter<E>
implements ScrollBarButtonPainter<E>

Simple ScrollBarButtonPainter adapter class. It is used to install simple non-specific button painters into WebScrollBarUI.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Constructor Summary
AdaptiveScrollBarButtonPainter(Painter painter)
          Constructs new AdaptiveScrollBarButtonPainter for the specified painter.
 
Method Summary
 void setButtonType(ScrollBarButtonType type)
          Sets scroll bar button type.
 void setScrollbar(javax.swing.JScrollBar scrollbar)
          Sets scroll bar which uses this button.
 
Methods inherited from class com.alee.extended.painter.AdaptivePainter
addPainterListener, getMargin, getPainter, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 
Methods inherited from class com.alee.extended.painter.AbstractPainter
p, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alee.extended.painter.Painter
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 

Constructor Detail

AdaptiveScrollBarButtonPainter

public AdaptiveScrollBarButtonPainter(Painter painter)
Constructs new AdaptiveScrollBarButtonPainter for the specified painter.

Parameters:
painter - painter to adapt
Method Detail

setButtonType

public void setButtonType(ScrollBarButtonType type)
Sets scroll bar button type.

Specified by:
setButtonType in interface ScrollBarButtonPainter<E extends javax.swing.AbstractButton>
Parameters:
type - scroll bar button type

setScrollbar

public void setScrollbar(javax.swing.JScrollBar scrollbar)
Sets scroll bar which uses this button.

Specified by:
setScrollbar in interface ScrollBarButtonPainter<E extends javax.swing.AbstractButton>
Parameters:
scrollbar - scroll bar which uses this button