com.wordpress.tipsforjava.swing
[Java] Enum ScrollablePanel.IncrementType
java.lang.Object
com.wordpress.tipsforjava.swing.ScrollablePanel.IncrementType
public enum ScrollablePanel.IncrementType
A panel that implements the Scrollable interface. This class allows you
to customize the scrollable features by using newly provided setter methods
so you don't have to extend this class every time.
Scrollable amounts can be specifed as a percentage of the viewport size or
as an actual pixel value. The amount can be changed for both unit and block
scrolling for both horizontal and vertical scrollbars.
The Scrollable interface only provides a boolean value for determining whether
or not the viewport size (width or height) should be used by the scrollpane
when determining if scrollbars should be made visible. This class supports the
concept of dynamically changing this value based on the size of the viewport.
In this case the viewport size will only be used when it is larger than the
panels size. This has the effect of ensuring the viewport is always full as
components added to the panel will be size to fill the area available,
based on the rules of the applicable layout manager of course.
- Authors:
- Rob Camick
- Darryl Burke
PERCENT
ScrollablePanel.IncrementType PERCENT
-
PIXELS
ScrollablePanel.IncrementType PIXELS
-
Groovy Documentation