edu.berkeley.guir.papier_mache.test
Class ImageBrowser

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.assoc.AssociationElt
      extended by edu.berkeley.guir.papier_mache.assoc.AssociationNoun
          extended by edu.berkeley.guir.papier_mache.test.ImageBrowser
All Implemented Interfaces:
edu.berkeley.guir.lib.util.ToShortStringable

public class ImageBrowser
extends AssociationNoun

Upon initialization, choose a directory with files 1.jpg, 2.jpg ... etc. Change the MIN and MAX constants to be the desirable range of these pictures shown. These pictures are iconified and added to the content pane. The first two RFID tags will be assigned the "next" and "previous" function before the pictures get displayed.

Author:
Jack Li ( jack(AT)eecs{DOT}berkeley{DOT}edu )

Constructor Summary
ImageBrowser()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void next()
           
 void phobAdded()
           
 void phobRemoved()
           
 void phobUpdated()
           
static java.io.File popupFileChooser()
          Popups a file dialog that allows the end user to select a directory for the test images.
 void previous()
           
 
Methods inherited from class edu.berkeley.guir.papier_mache.assoc.AssociationElt
setParameter, toShortString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBrowser

public ImageBrowser()
Method Detail

popupFileChooser

public static java.io.File popupFileChooser()
Popups a file dialog that allows the end user to select a directory for the test images.

Returns:
a File representing the selected directory

main

public static void main(java.lang.String[] args)

next

public void next()

previous

public void previous()

phobAdded

public void phobAdded()
Specified by:
phobAdded in class AssociationNoun

phobUpdated

public void phobUpdated()
Specified by:
phobUpdated in class AssociationElt

phobRemoved

public void phobRemoved()
Specified by:
phobRemoved in class AssociationElt