public class ScrollUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ScrollUtil.ScrollBias |
Modifier and Type | Method and Description |
---|---|
static void |
center(javax.swing.JComponent c,
java.awt.Rectangle r) |
static void |
center(javax.swing.JComponent c,
java.awt.Rectangle r,
boolean withInsets) |
static javax.swing.JScrollBar |
findHorizontalScrollBar(javax.swing.JComponent c) |
static javax.swing.JScrollPane |
findScrollPane(javax.swing.JComponent c) |
static javax.swing.JScrollBar |
findVerticalScrollBar(javax.swing.JComponent c) |
static void |
scroll(javax.swing.JComponent c,
java.awt.Rectangle r,
ScrollUtil.ScrollBias horizontalBias,
ScrollUtil.ScrollBias verticalBias) |
static void |
scrollHorizontally(javax.swing.JComponent c,
int position) |
static void |
scrollVertically(javax.swing.JComponent c,
int position) |
public static javax.swing.JScrollPane findScrollPane(javax.swing.JComponent c)
public static javax.swing.JScrollBar findVerticalScrollBar(javax.swing.JComponent c)
public static javax.swing.JScrollBar findHorizontalScrollBar(javax.swing.JComponent c)
public static void scrollVertically(javax.swing.JComponent c, int position)
public static void scrollHorizontally(javax.swing.JComponent c, int position)
public static void center(javax.swing.JComponent c, java.awt.Rectangle r)
public static void center(javax.swing.JComponent c, java.awt.Rectangle r, boolean withInsets)
public static void scroll(javax.swing.JComponent c, java.awt.Rectangle r, ScrollUtil.ScrollBias horizontalBias, ScrollUtil.ScrollBias verticalBias)