stella.jview
Class JBaycamMosaic.StellaFilter

java.lang.Object
  extended by stella.jview.JBaycamMosaic.StellaFilter
All Implemented Interfaces:
FileFilter
Enclosing class:
JBaycamMosaic

protected class JBaycamMosaic.StellaFilter
extends Object
implements FileFilter

A file fliter that takes the name of the file and tries to match it with the constructed head. Case is ignored.


Field Summary
private  String head
          The starting string of the file name without path.
 
Constructor Summary
protected JBaycamMosaic.StellaFilter(String start)
          Constructs a new file filter with the required starting part.
protected JBaycamMosaic.StellaFilter(String start, boolean yearonly)
          Constructs a new file filter with the required starting part.
 
Method Summary
 boolean accept(File baycam)
          Accepts a file if the file name without path matches the head.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

private String head
The starting string of the file name without path.

Constructor Detail

JBaycamMosaic.StellaFilter

protected JBaycamMosaic.StellaFilter(String start)
Constructs a new file filter with the required starting part.


JBaycamMosaic.StellaFilter

protected JBaycamMosaic.StellaFilter(String start,
                                     boolean yearonly)
Constructs a new file filter with the required starting part.

Method Detail

accept

public boolean accept(File baycam)
Accepts a file if the file name without path matches the head. Case is ignored.

Specified by:
accept in interface FileFilter