|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<E> com.alee.extended.painter.AdaptivePainter<E> com.alee.laf.scroll.AdaptiveScrollBarPainter<E>
public class AdaptiveScrollBarPainter<E extends javax.swing.JScrollBar>
Simple ScrollBarPainter adapter class. It is used to install simple non-specific painters into WebScrollBarUI.
Field Summary |
---|
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
AdaptiveScrollBarPainter(Painter painter)
Constructs new AdaptiveScrollBarPainter for the specified painter. |
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 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 |
---|
public AdaptiveScrollBarPainter(Painter painter)
painter
- painter to adaptMethod Detail |
---|
public void setPaintButtons(boolean paint)
setPaintButtons
in interface ScrollBarPainter<E extends javax.swing.JScrollBar>
paint
- whether scroll bar arrow buttons are visible or notpublic void setPaintTrack(boolean paint)
setPaintTrack
in interface ScrollBarPainter<E extends javax.swing.JScrollBar>
paint
- whether scroll bar track should be painted or notpublic void setDragged(boolean dragged)
setDragged
in interface ScrollBarPainter<E extends javax.swing.JScrollBar>
dragged
- whether scroll bar thumb is being dragged or notpublic void setTrackBounds(java.awt.Rectangle bounds)
setTrackBounds
in interface ScrollBarPainter<E extends javax.swing.JScrollBar>
bounds
- new scroll bar track boundspublic void setThumbBounds(java.awt.Rectangle bounds)
setThumbBounds
in interface ScrollBarPainter<E extends javax.swing.JScrollBar>
bounds
- new scroll bar thumb bounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |