@Override protected void installDefaults() { super.installDefaults(); // ensure the minimum size of the thumb int w = this.minimumThumbSize.width; int h = this.minimumThumbSize.height; if (this.myScrollBar.getOrientation() == Adjustable.VERTICAL) { h = Math.max(h, Math.min(this.maximumThumbSize.height, THUMB_MIN_SIZE)); } else { w = Math.max(w, Math.min(this.maximumThumbSize.width, THUMB_MIN_SIZE)); } this.minimumThumbSize = new Dimension(w, h); }
@Override public void installUI(JComponent c) { super.installUI(c); // The scrollbar is transparent! c.setOpaque(false); }
/** {@inheritDoc} */ protected void installListeners() { super.installListeners(); }
/** * Description of the Method * * @param sb Description of Parameter */ protected void layoutHScrollbar(JScrollBar sb) { if (useAlternateLayout) { alternateLayoutHScrollbar(sb); } else { super.layoutHScrollbar(sb); } }
protected void layoutVScrollbar(JScrollBar sb) { super.layoutVScrollbar(sb); calculateButtonsEnabled(); }
/** {@inheritDoc} */ protected void uninstallListeners() { super.uninstallListeners(); }
/** * Sets the ThumbBounds attribute of the XTraScrollBarUI object * * @param x The new ThumbBounds value * @param y The new ThumbBounds value * @param w The new ThumbBounds value * @param h The new ThumbBounds value */ public void setThumbBounds(int x, int y, int w, int h) { super.setThumbBounds(x, y, w, h); }
@Override public void paint (Graphics g, JComponent c) { super.paint (MaterialDrawingUtils.getAliasedGraphics (g), c); }
/** * Gets the ThumbBounds attribute of the XTraScrollBarUI object * * @return The ThumbBounds value */ public Rectangle getThumbBounds() { return super.getThumbBounds(); }
protected void layoutHScrollbar(JScrollBar sb) { super.layoutHScrollbar(sb); calculateButtonsEnabled(); }
/** * Description of the Method * * @param sb Description of Parameter */ protected void layoutVScrollbar(JScrollBar sb) { if (useAlternateLayout) { alternateLayoutVScrollbar(sb); } else { super.layoutVScrollbar(sb); } }
protected void uninstallListeners() { super.uninstallListeners(); scrollbar.removePropertyChangeListener(this); scrollbar.removeMouseListener(mouseButtonListener); }
@Override protected void setThumbBounds(int x, int y, int width, int height) { super.setThumbBounds(x, y, width, height); scrollbar.repaint(); } }
@Override public void paint(Graphics g, JComponent c) { Graphics2D graphics = (Graphics2D) g.create(); BackgroundPaintingUtils.update(graphics, c, false); float alpha = SubstanceColorSchemeUtilities.getAlpha(this.scrollbar, ComponentState.getState(this.thumbModel, this.scrollbar)); graphics .setComposite(LafWidgetUtilities.getAlphaComposite(c, alpha, g)); super.paint(graphics, c); graphics.dispose(); }
@Override public Rectangle getThumbBounds() { return super.getThumbBounds(); }
@Override protected void installDefaults() { super.installDefaults(); incrGap = 0; decrGap = 0; }
@Override public void installUI(JComponent c) { super.installUI(c); NapkinUtil.installUI(c); }
/** Installs the listeners with the associated JScrollBar */ protected void installListeners() { super.installListeners(); ((ScrollBarListener) propertyChangeListener).handlePropertyChange( scrollbar.getClientProperty(FREE_STANDING_PROP)); }
protected void layoutHScrollbar(JScrollBar sb) { if (!buttonsTogether.isInState(sb)) { super.layoutHScrollbar(sb); } else { if (sb.getComponentOrientation().isLeftToRight()) { layoutHScrollbarTogetherLeftToRight(sb); } else { layoutHScrollbarTogetherRightToLeft(sb); } } }
protected void layoutVScrollbar(JScrollBar sb) { if (!buttonsTogether.isInState(sb)) { super.layoutVScrollbar(sb); } else { layoutVScrollbarTogether(sb); } }