gnu.app.displayhack.eraser
Class SlideLines

java.lang.Object
  extended by gnu.app.displayhack.eraser.Eraser
      extended by gnu.app.displayhack.eraser.SlideLines

public class SlideLines
extends Eraser

Erase by sliding lines.

Modified from slide_lines of erase.c in xscreensaver by Torbjorn Andersson .

Trivially added erase in y-direction support.


Field Summary
static int DELAY
           
static int SLICE
          TODO 1. accelerating slide?
 
Fields inherited from class gnu.app.displayhack.eraser.Eraser
ALL, ALL_STRINGS, id, RANDOM_ERASER_INDEX
 
Constructor Summary
SlideLines()
           
 
Method Summary
 void erase(DisplayHack hack)
           
 void horizontal_erase(DisplayHack hack)
          Erase in x-direction.
 void vertical_erase(DisplayHack hack)
          Erase in y-direction.
 
Methods inherited from class gnu.app.displayhack.eraser.Eraser
sleep
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLICE

public static final int SLICE
TODO 1. accelerating slide? 2. slide in any directions?

See Also:
Constant Field Values

DELAY

public static final int DELAY
See Also:
Constant Field Values
Constructor Detail

SlideLines

public SlideLines()
Method Detail

erase

public void erase(DisplayHack hack)
Specified by:
erase in class Eraser

horizontal_erase

public void horizontal_erase(DisplayHack hack)
Erase in x-direction. Exactly the same as vertical_erase(DisplayHack) with x and y-related swapped.


vertical_erase

public void vertical_erase(DisplayHack hack)
Erase in y-direction. Exactly the same as horizontal_erase(DisplayHack) with x and y-related swapped.