at.ofai.music.beatroot
Class PanelScroller

java.lang.Object
  extended by at.ofai.music.beatroot.PanelScroller
All Implemented Interfaces:
java.awt.event.AdjustmentListener, java.util.EventListener

 class PanelScroller
extends java.lang.Object
implements java.awt.event.AdjustmentListener

A listener class for the scrollbar, which notifies the GUI's main panel when the scrollbar is moved.


Field Summary
(package private)  BeatTrackDisplay controlled
          A reference to the main data panel of the BeatRoot GUI, so that it can be updated when the scroller is moved.
(package private) static boolean passMessage
           
 
Constructor Summary
PanelScroller(BeatTrackDisplay btd)
          Constructor:
 
Method Summary
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
          Called by the event handling system when the scroller is moved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controlled

BeatTrackDisplay controlled
A reference to the main data panel of the BeatRoot GUI, so that it can be updated when the scroller is moved.


passMessage

static boolean passMessage
Constructor Detail

PanelScroller

public PanelScroller(BeatTrackDisplay btd)
Constructor:

Parameters:
btd - A reference to the main data panel of the BeatRoot GUI
Method Detail

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Called by the event handling system when the scroller is moved. Implements the AdjustmentListener interface.

Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener
Parameters:
e - The event indicating the change in the scroller position