Class CustomScrollBarUI

  • All Implemented Interfaces:
    LayoutManager, SwingConstants

    public class CustomScrollBarUI
    extends BasicScrollBarUI
    This scroll bar UI is to be used for the "RuneLite Obsidian" client theme. It is a part of the client's redesign as detailed on issue #1342
    • Constructor Detail

      • CustomScrollBarUI

        public CustomScrollBarUI()
    • Method Detail

      • paintTrack

        protected void paintTrack​(Graphics graphics,
                                  JComponent jComponent,
                                  Rectangle rectangle)
        Overrides the painting of the bar's track (the darker part underneath that extends the full page length).
        Overrides:
        paintTrack in class BasicScrollBarUI
      • paintThumb

        protected void paintThumb​(Graphics graphics,
                                  JComponent jComponent,
                                  Rectangle rectangle)
        Overrides the painting of the bar's thumb (the lighter part on top that users use to slide up and down the page).
        Overrides:
        paintThumb in class BasicScrollBarUI
      • createEmptyButton

        protected JButton createEmptyButton()
        Creates an empty JButton to be used as the scroll bar's arrows (to disable the arrows).
      • setThumbColor

        public void setThumbColor​(Color thumbColor)
      • setTrackColor

        public void setTrackColor​(Color trackColor)