ComponentRenderer<ScrollBar>
public static class ScrollBar.DefaultScrollBarRenderer extends ScrollBar.ScrollBarRenderer
ScrollBar
which will be used unless overridden. This will draw a scrollbar using
arrows at each extreme end, a background color for spaces between those arrows and the tracker and then the
tracker itself in three different styles depending on the size of the tracker. All characters and colors are
customizable through whatever theme is currently in use.Constructor | Description |
---|---|
DefaultScrollBarRenderer() |
Default constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
ScrollBar component) |
Using the supplied graphics object, draws the component passed in.
|
void |
setGrowScrollTracker(boolean growScrollTracker) |
Should tracker automatically grow in size along with the
ScrollBar (default: true ) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferredSize
public void setGrowScrollTracker(boolean growScrollTracker)
ScrollBar
(default: true
)growScrollTracker
- Automatically grow trackerpublic void drawComponent(TextGUIGraphics graphics, ScrollBar component)
ComponentRenderer
graphics
- Graphics object to use for drawingcomponent
- Component to drawCopyright © 2020. All rights reserved.