edu.berkeley.guir.papier_mache.test
Class ImageBrowser
java.lang.Object
edu.berkeley.guir.papier_mache.assoc.AssociationElt
edu.berkeley.guir.papier_mache.assoc.AssociationNoun
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 )
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBrowser
public ImageBrowser()
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