public class PDFScrollBarUI
extends javax.swing.plaf.basic.BasicScrollBarUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
PDFScrollBarUI.PDFArrowButtonListener
Listener for cursor keys.
|
class |
PDFScrollBarUI.PDFPropertyChangeHandler |
protected class |
PDFScrollBarUI.PDFScrollListener
Listener for scrolling events initiated in the
ScrollPane. |
protected class |
PDFScrollBarUI.PDFTrackListener |
javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener, javax.swing.plaf.basic.BasicScrollBarUI.ModelListener, javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener, javax.swing.plaf.basic.BasicScrollBarUI.TrackListener| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPlaceButtonsTogether |
protected java.awt.Dimension |
smallMinimumThumbSize |
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollBarWidth, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect| Constructor and Description |
|---|
PDFScrollBarUI()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener |
createArrowButtonListener() |
protected javax.swing.JButton |
createDecreaseButton(int orientation) |
protected javax.swing.JButton |
createIncreaseButton(int orientation) |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener() |
protected javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener |
createScrollListener() |
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener |
createTrackListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
protected java.awt.Dimension |
getMaximumThumbSize()
Return the largest acceptable size for the thumb.
|
protected java.awt.Dimension |
getMinimumThumbSize()
Return the smallest acceptable size for the thumb.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
boolean |
getSupportsAbsolutePositioning()
Indicates whether the user can absolutely position the offset with
a mouse click (depending on the settings in "Appearance" panel of
" the "System Preferences" application).
|
protected javax.swing.border.Border |
getTrackAndButtonsBorder()
We use a border to fill the background of the scroll bar.
|
protected void |
installDefaults() |
protected void |
layoutHScrollbar(javax.swing.JScrollBar sb) |
protected void |
layoutVScrollbar(javax.swing.JScrollBar sb) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintThumb(java.awt.Graphics gr,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds) |
protected void |
paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle trackBounds)
This method actually paints the track plus the button artwork.
|
addLayoutComponent, configureScrollBarColors, createModelListener, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIprotected java.awt.Dimension smallMinimumThumbSize
protected boolean isPlaceButtonsTogether
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
createTrackListener in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
createArrowButtonListener in class javax.swing.plaf.basic.BasicScrollBarUIprotected java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.JButton createDecreaseButton(int orientation)
createDecreaseButton in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.JButton createIncreaseButton(int orientation)
createIncreaseButton in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener createScrollListener()
createScrollListener in class javax.swing.plaf.basic.BasicScrollBarUIprotected java.awt.Dimension getMinimumThumbSize()
Warning : the value returned by this method should not be be modified, it's a shared static constant.
getMinimumThumbSize in class javax.swing.plaf.basic.BasicScrollBarUIgetMaximumThumbSize()public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class javax.swing.plaf.basic.BasicScrollBarUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicScrollBarUIprotected java.awt.Dimension getMaximumThumbSize()
getMinimumThumbSize
return the same value.
Warning : the value returned by this method should not be be modified, it's a shared static constant.
getMaximumThumbSize in class javax.swing.plaf.basic.BasicScrollBarUIgetMinimumThumbSize()public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicScrollBarUIprotected void paintThumb(java.awt.Graphics gr,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds)
paintThumb in class javax.swing.plaf.basic.BasicScrollBarUIprotected void paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle trackBounds)
paintTrack in class javax.swing.plaf.basic.BasicScrollBarUIprotected javax.swing.border.Border getTrackAndButtonsBorder()
public boolean getSupportsAbsolutePositioning()
The return value is determined from the plaf property ScrollBar.allowsAbsolutePositioning.
getSupportsAbsolutePositioning in class javax.swing.plaf.basic.BasicScrollBarUIprotected void layoutVScrollbar(javax.swing.JScrollBar sb)
layoutVScrollbar in class javax.swing.plaf.basic.BasicScrollBarUIprotected void layoutHScrollbar(javax.swing.JScrollBar sb)
layoutHScrollbar in class javax.swing.plaf.basic.BasicScrollBarUI