jokey
Class PagingLyricListener

java.lang.Object
  |
  +--jokey.LyricListener
        |
        +--jokey.AwtLyricListener
              |
              +--jokey.PagingLyricListener
All Implemented Interfaces:
java.util.EventListener, javax.sound.midi.MetaEventListener

public class PagingLyricListener
extends AwtLyricListener

Displays Lyrics on an AWT Graphics object And uses a FontMetric to determine string size


Field Summary
 
Fields inherited from class jokey.LyricListener
CLEAR_SCREEN, COPYRIGHT_NOTICE, KARAOKE, LANGUAGE, LYRIC, META_INFO, NEW_LINE, SONG_INFO, TITLE, TRACK_NAME, VERSION
 
Constructor Summary
PagingLyricListener(jokey.PlayerContext context, java.awt.Canvas canvas, java.util.Vector imageVector)
           
 
Method Summary
 void clearScreen()
          The pagingLyricListener does everything exactly the same as the AwtLyricListener except that it displays a new image
 java.awt.Image getCurrentImage()
           
 java.awt.Graphics getGraphics()
           
 java.util.Vector getImageVector()
           
 java.awt.Image getNextImage()
           
 void outputLyric(java.lang.String lyric)
           
 void paintPage(java.awt.Image image)
           
 
Methods inherited from class jokey.AwtLyricListener
getCanvas, getContext, getCurrentString, getCurrentX, getCurrentY, getFontMetrics, newLine, setContext, setCurrentString, setCurrentX, setCurrentY
 
Methods inherited from class jokey.LyricListener
meta, outputKaraokeMess, outputLanguage, outputTitle, outputVersion, songInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingLyricListener

public PagingLyricListener(jokey.PlayerContext context,
                           java.awt.Canvas canvas,
                           java.util.Vector imageVector)
Method Detail

getImageVector

public java.util.Vector getImageVector()

getGraphics

public java.awt.Graphics getGraphics()
Overrides:
getGraphics in class AwtLyricListener

getCurrentImage

public java.awt.Image getCurrentImage()

getNextImage

public java.awt.Image getNextImage()

paintPage

public void paintPage(java.awt.Image image)

clearScreen

public void clearScreen()
The pagingLyricListener does everything exactly the same as the AwtLyricListener except that it displays a new image

Overrides:
clearScreen in class AwtLyricListener

outputLyric

public void outputLyric(java.lang.String lyric)
Overrides:
outputLyric in class AwtLyricListener