Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
Class ScrollBar.ScrollBarRenderer
java.lang.Object
com.googlecode.lanterna.gui2.ScrollBar.ScrollBarRenderer
- All Implemented Interfaces:
ComponentRenderer<ScrollBar>
- Direct Known Subclasses:
ScrollBar.DefaultScrollBarRenderer
- Enclosing class:
ScrollBar
public abstract static class ScrollBar.ScrollBarRenderer
extends Object
implements ComponentRenderer<ScrollBar>
Helper class for making new
ScrollBar
renderers a little bit cleaner-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPreferredSize
(ScrollBar component) Given the supplied component, how large does this renderer want the component to be? Notice that this is the responsibility of the renderer and not the component itself, since the component has no idea what its visual representation looks like.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.googlecode.lanterna.gui2.ComponentRenderer
drawComponent
-
Constructor Details
-
ScrollBarRenderer
public ScrollBarRenderer()
-
-
Method Details
-
getPreferredSize
Description copied from interface:ComponentRenderer
Given the supplied component, how large does this renderer want the component to be? Notice that this is the responsibility of the renderer and not the component itself, since the component has no idea what its visual representation looks like.- Specified by:
getPreferredSize
in interfaceComponentRenderer<ScrollBar>
- Parameters:
component
- Component to calculate the preferred size of- Returns:
- The size this renderer would like the component to take up
-