public class ButtonlessScrollBarUI
extends javax.swing.plaf.basic.BasicScrollBarUI
Modifier and Type | Class and Description |
---|---|
static interface |
ButtonlessScrollBarUI.ScrollbarRepaintCallback |
static class |
ButtonlessScrollBarUI.Transparent |
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
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
Modifier | Constructor and Description |
---|---|
protected |
ButtonlessScrollBarUI() |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Color |
adjustColor(java.awt.Color c) |
protected boolean |
alwaysPaintThumb() |
boolean |
alwaysShowTrack() |
boolean |
contains(javax.swing.JComponent c,
int x,
int y) |
protected javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener |
createArrowButtonListener() |
protected javax.swing.JButton |
createDecreaseButton(int orientation) |
protected javax.swing.JButton |
createIncreaseButton(int orientation) |
protected javax.swing.plaf.basic.BasicScrollBarUI.ModelListener |
createModelListener() |
static javax.swing.plaf.basic.BasicScrollBarUI |
createNormal()
Deprecated.
|
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener |
createTrackListener() |
protected void |
doPaintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle bounds) |
int |
getDecrementButtonHeight() |
int |
getIncrementButtonHeight() |
protected java.awt.Rectangle |
getMacScrollBarBounds(java.awt.Rectangle baseBounds,
boolean thumb) |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
protected java.awt.Dimension |
getMinimumThumbSize() |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
boolean |
getSupportsAbsolutePositioning() |
protected int |
getThickness() |
java.awt.Rectangle |
getThumbBounds() |
protected int |
getThumbOffset(int value)
Deprecated.
|
static JBColor |
getTrackBackgroundDefault()
Deprecated.
|
static JBColor |
getTrackBorderColorDefault()
Deprecated.
|
protected void |
installDefaults() |
protected void |
installListeners() |
protected boolean |
isDark() |
protected boolean |
isMacOverlayScrollbar() |
static boolean |
isMacOverlayScrollbarSupported() |
protected boolean |
isMacScrollbarHiddenAndXcodeLikeScrollbar() |
protected boolean |
isThumbTranslucent()
Deprecated.
|
protected boolean |
isVertical() |
void |
layoutContainer(java.awt.Container scrollbarContainer) |
protected void |
paintThumb(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds) |
protected void |
paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle trackBounds) |
void |
registerRepaintCallback(ButtonlessScrollBarUI.ScrollbarRepaintCallback callback) |
protected void |
setThumbBounds(int x,
int y,
int width,
int height)
This is overridden only to increase the invalid area.
|
protected void |
uninstallListeners() |
protected static boolean |
xcodeLikeScrollbar() |
addLayoutComponent, configureScrollBarColors, createPropertyChangeListener, createScrollListener, createUI, getMaximumThumbSize, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI
@Deprecated public static JBColor getTrackBackgroundDefault()
@Deprecated public static JBColor getTrackBorderColorDefault()
protected javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
createArrowButtonListener
in class javax.swing.plaf.basic.BasicScrollBarUI
protected boolean isMacOverlayScrollbar()
public static boolean isMacOverlayScrollbarSupported()
public boolean alwaysShowTrack()
public void layoutContainer(java.awt.Container scrollbarContainer)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class javax.swing.plaf.basic.BasicScrollBarUI
protected void setThumbBounds(int x, int y, int width, int height)
setThumbBounds
in class javax.swing.plaf.basic.BasicScrollBarUI
protected javax.swing.plaf.basic.BasicScrollBarUI.ModelListener createModelListener()
createModelListener
in class javax.swing.plaf.basic.BasicScrollBarUI
public int getDecrementButtonHeight()
public int getIncrementButtonHeight()
@Deprecated public static javax.swing.plaf.basic.BasicScrollBarUI createNormal()
protected void installDefaults()
installDefaults
in class javax.swing.plaf.basic.BasicScrollBarUI
protected void installListeners()
installListeners
in class javax.swing.plaf.basic.BasicScrollBarUI
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
createTrackListener
in class javax.swing.plaf.basic.BasicScrollBarUI
public java.awt.Rectangle getThumbBounds()
getThumbBounds
in class javax.swing.plaf.basic.BasicScrollBarUI
protected void uninstallListeners()
uninstallListeners
in class javax.swing.plaf.basic.BasicScrollBarUI
protected java.awt.Dimension getMinimumThumbSize()
getMinimumThumbSize
in class javax.swing.plaf.basic.BasicScrollBarUI
protected int getThickness()
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.basic.BasicScrollBarUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicScrollBarUI
public boolean contains(javax.swing.JComponent c, int x, int y)
contains
in class javax.swing.plaf.ComponentUI
protected void paintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle trackBounds)
paintTrack
in class javax.swing.plaf.basic.BasicScrollBarUI
protected void doPaintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle bounds)
protected void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
paintThumb
in class javax.swing.plaf.basic.BasicScrollBarUI
@Deprecated protected boolean isThumbTranslucent()
@Deprecated protected int getThumbOffset(int value)
protected boolean isDark()
protected boolean alwaysPaintThumb()
protected java.awt.Rectangle getMacScrollBarBounds(java.awt.Rectangle baseBounds, boolean thumb)
public boolean getSupportsAbsolutePositioning()
getSupportsAbsolutePositioning
in class javax.swing.plaf.basic.BasicScrollBarUI
protected java.awt.Color adjustColor(java.awt.Color c)
protected boolean isVertical()
protected javax.swing.JButton createIncreaseButton(int orientation)
createIncreaseButton
in class javax.swing.plaf.basic.BasicScrollBarUI
protected javax.swing.JButton createDecreaseButton(int orientation)
createDecreaseButton
in class javax.swing.plaf.basic.BasicScrollBarUI
protected boolean isMacScrollbarHiddenAndXcodeLikeScrollbar()
protected static boolean xcodeLikeScrollbar()
public void registerRepaintCallback(ButtonlessScrollBarUI.ScrollbarRepaintCallback callback)