com.croftsoft.core.animation.updater
Class EdgeScrollUpdater
java.lang.Object
com.croftsoft.core.animation.updater.EdgeScrollUpdater
- All Implemented Interfaces:
- ComponentUpdater
public final class EdgeScrollUpdater
- extends Object
- implements ComponentUpdater
Scrolls the view when the mouse is on the edges.
- Since:
- 2003-03-08
- Version:
- 2003-07-05
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeScrollUpdater
public EdgeScrollUpdater(JComponent component,
int width,
int height,
Dimension edgeSize,
int scrollRate,
boolean wrapAround)
EdgeScrollUpdater
public EdgeScrollUpdater(JComponent component,
int width,
int height)
getTranslateX
public int getTranslateX()
getTranslateY
public int getTranslateY()
update
public void update(JComponent component)
- Description copied from interface:
ComponentUpdater
- Updates the state of a JComponent and calls repaint() as required.
- Specified by:
update
in interface ComponentUpdater
translate
public void translate(Graphics graphics)
translate
public void translate(Point point)
translateReverse
public void translateReverse(Graphics graphics)
translateReverse
public void translateReverse(Point point)
CroftSoft Core Javadoc (2008-09-28 20:58:02)