ptolemy.plot
Class PlotFrame.PLTOrXMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by ptolemy.plot.PlotFrame.PLTOrXMLFileFilter
Enclosing class:
PlotFrame

static class PlotFrame.PLTOrXMLFileFilter
extends javax.swing.filechooser.FileFilter

Display only .plt and .xml files


Constructor Summary
PlotFrame.PLTOrXMLFileFilter()
           
 
Method Summary
 boolean accept(java.io.File fileOrDirectory)
          Accept only .plt or .xml files.
 java.lang.String getDescription()
          The description of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotFrame.PLTOrXMLFileFilter

PlotFrame.PLTOrXMLFileFilter()
Method Detail

accept

public boolean accept(java.io.File fileOrDirectory)
Accept only .plt or .xml files.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
fileOrDirectory - The file to be checked.
Returns:
true if the file is a directory, a .plot or a .xml file.

getDescription

public java.lang.String getDescription()
The description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter