uk.ac.ucl.casa.andrew.phd.segregationModelAddRemove
Class ShapeFileChoser

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byuk.ac.ucl.casa.andrew.phd.segregationModelAddRemove.ShapeFileChoser

public class ShapeFileChoser
extends javax.swing.filechooser.FileFilter


Constructor Summary
ShapeFileChoser()
           
 
Method Summary
 boolean accept(java.io.File file)
          Identifies .shp files as displayable by a file chooser.
 java.lang.String getDescription()
          Reports the description of this filter for the file chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeFileChoser

public ShapeFileChoser()
Method Detail

accept

public boolean accept(java.io.File file)
Identifies .shp files as displayable by a file chooser.

Parameters:
file - File to consider displaying.
Returns:
true if file is an image file in the current directory.

getDescription

public java.lang.String getDescription()
Reports the description of this filter for the file chooser.

Returns:
Description of this filter.