public class XJSmoothScrolling extends Object implements ActionListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
XJSmoothScrolling.ScrollingDelegate |
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
c |
protected XJSmoothScrolling.ScrollingDelegate |
delegate |
protected Rectangle |
dest |
protected int |
k |
protected Rectangle |
source |
protected static int |
steps |
protected Timer |
timer |
protected Vector2D |
v |
| Constructor and Description |
|---|
XJSmoothScrolling(JComponent c,
XJSmoothScrolling.ScrollingDelegate delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
completed() |
void |
computeSource() |
void |
computeVector() |
void |
scrollTo(Rectangle dest) |
void |
startTimer() |
protected static final int steps
protected JComponent c
protected Rectangle source
protected Rectangle dest
protected Vector2D v
protected int k
protected Timer timer
protected XJSmoothScrolling.ScrollingDelegate delegate
public XJSmoothScrolling(JComponent c, XJSmoothScrolling.ScrollingDelegate delegate)
public void scrollTo(Rectangle dest)
public void startTimer()
public void completed()
public void computeVector()
public void computeSource()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerCopyright © 2013. All rights reserved.