edu.berkeley.guir.papier_mache.barcode
Class BarcodePhobProducer

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.PhobProducer
      extended by edu.berkeley.guir.papier_mache.barcode.BarcodePhobProducer
All Implemented Interfaces:
java.util.EventListener, InputDataListener

public class BarcodePhobProducer
extends PhobProducer
implements InputDataListener

Author:
Scott Klemmer ( srk(AT)cs.berkeley.edu ), Ray Su ( raysu(AT)cal.berkeley.edu )

Constructor Summary
BarcodePhobProducer(VisionPhobProducer producer)
          Creates a new Barcode phob producer that finds PDF417, EAN, and Cybercodes.
BarcodePhobProducer(VisionPhobProducer producer, int codeType)
          Creates a new Barcode phob producer that finds only the specified code type.
 
Method Summary
 void conductBarcodeTracking(java.lang.String decodedString, VisionPhobCollection barcodeGroup, java.util.List barcodePhobs, java.util.List newBarcodePhobs, int barcodeType)
          Conduct tracking of newly generated BarcodePhob to the existing set.
 void dataReceived(InputDataEvent event)
           
 java.lang.Class getPhobType()
           
 void refreshBarcodes(java.util.List barcodePhobs)
          Given a list of BarcodePhobs, fire a PhobRemovedEvent for each one of them.
 java.lang.String toString()
           
 
Methods inherited from class edu.berkeley.guir.papier_mache.PhobProducer
addPhobListener, firePhobAddedEvent, firePhobRemovedEvent, firePhobUpdatedEvent, getIcon, removePhobListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BarcodePhobProducer

public BarcodePhobProducer(VisionPhobProducer producer)
Creates a new Barcode phob producer that finds PDF417, EAN, and Cybercodes.


BarcodePhobProducer

public BarcodePhobProducer(VisionPhobProducer producer,
                           int codeType)
Creates a new Barcode phob producer that finds only the specified code type.

Method Detail

getPhobType

public java.lang.Class getPhobType()
Specified by:
getPhobType in class PhobProducer

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

dataReceived

public void dataReceived(InputDataEvent event)
Specified by:
dataReceived in interface InputDataListener

conductBarcodeTracking

public void conductBarcodeTracking(java.lang.String decodedString,
                                   VisionPhobCollection barcodeGroup,
                                   java.util.List barcodePhobs,
                                   java.util.List newBarcodePhobs,
                                   int barcodeType)
Conduct tracking of newly generated BarcodePhob to the existing set.

Parameters:
decodedString - the newly decoded Barcode to be created into a BarcodePhob
barcodeGroup - a VisionPhobCollection representing the group of VisionPhobs that the decoded barcode belongs to
barcodePhobs - a List representing a list of current existing BarcodePhobs
newBarcodePhobs - the List of newBarcodePhobs created

refreshBarcodes

public void refreshBarcodes(java.util.List barcodePhobs)
Given a list of BarcodePhobs, fire a PhobRemovedEvent for each one of them.

Parameters:
barcodePhobs -