com.croftsoft.core.animation.updater
Class EdgeScrollUpdater

java.lang.Object
  extended by 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

Constructor Summary
EdgeScrollUpdater(JComponent component, int width, int height)
           
EdgeScrollUpdater(JComponent component, int width, int height, Dimension edgeSize, int scrollRate, boolean wrapAround)
           
 
Method Summary
 int getTranslateX()
           
 int getTranslateY()
           
 void translate(Graphics graphics)
           
 void translate(Point point)
           
 void translateReverse(Graphics graphics)
           
 void translateReverse(Point point)
           
 void update(JComponent component)
          Updates the state of a JComponent and calls repaint() as required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeScrollUpdater

public EdgeScrollUpdater(JComponent component,
                         int width,
                         int height,
                         Dimension edgeSize,
                         int scrollRate,
                         boolean wrapAround)

EdgeScrollUpdater

public EdgeScrollUpdater(JComponent component,
                         int width,
                         int height)
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)