edu.swri.swiftvis.filters
Class SortFilter

java.lang.Object
  extended by edu.swri.swiftvis.filters.AbstractSingleSourceFilter
      extended by edu.swri.swiftvis.filters.SortFilter
All Implemented Interfaces:
DataSink, DataSource, Filter, GraphElement, java.io.Serializable

public class SortFilter
extends AbstractSingleSourceFilter

Author:
Administrator To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
private  java.lang.Integer[] map
           
private static long serialVersionUID
           
private  DataFormula sortValue
           
 
Fields inherited from class edu.swri.swiftvis.filters.AbstractSingleSourceFilter
bounds, changed, dataVect, input, propPanel, sinkVector
 
Constructor Summary
  SortFilter()
           
private SortFilter(SortFilter c, java.util.List<GraphElement> l)
           
 
Method Summary
private  void checkFormula(javax.swing.JTextField field)
           
 SortFilter copy(java.util.List<GraphElement> l)
           
 java.lang.String getDescription()
           
 DataElement getElement(int i)
          Returns the specified data element for this source.
 int getNumElements()
          Returns the number of data elements that this source has in it.
 int getNumParameters()
           
 int getNumValues()
           
 java.lang.String getParameterDescription(int which)
          Tells you what a particular parameter is used for.
 java.lang.String getParameterName(int which, int paramVal)
          Tells you the text that should be used to describe a particular value of a given parameter.
 DataFormula[] getSortFormulas()
           
static java.lang.String getTypeDescription()
           
 java.lang.String getValueDescription(int which)
          Tells you what a particular value is used for.
protected  void redoAllElements()
          This method is intended to reprocess all the input elements to redo the output.
protected  void setupSpecificPanelProperties()
          This method should add any tabbed panes to the propPanel that are specific to the given filter.
 boolean useParameterNameString(int which)
          If this returns true then the value of a parameter for this type should be listed as the strong value returned by getParameterName.
 
Methods inherited from class edu.swri.swiftvis.filters.AbstractSingleSourceFilter
abstractRedoAllElements, addInput, addOutput, clearData, getBounds, getNumOutputs, getNumSources, getOutput, getOutputInfoPanel, getPaint, getPropertiesPanel, getSource, getSourceInfoPanel, relink, removeInput, removeOutput, setBounds, sourceAltered, validInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

private java.lang.Integer[] map

sortValue

private DataFormula sortValue

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SortFilter

public SortFilter()

SortFilter

private SortFilter(SortFilter c,
                   java.util.List<GraphElement> l)
Method Detail

getNumElements

public int getNumElements()
Description copied from class: AbstractSingleSourceFilter
Returns the number of data elements that this source has in it. I'm using this instead of an iterator because direct access is much more efficient when trying to make tables of data.

Specified by:
getNumElements in interface DataSource
Overrides:
getNumElements in class AbstractSingleSourceFilter
Returns:
The number of data elements in this source.

getElement

public DataElement getElement(int i)
Description copied from interface: DataSource
Returns the specified data element for this source. I'm using this instead of an iterator because direct access is much more efficient when trying to make tables of data.

Specified by:
getElement in interface DataSource
Overrides:
getElement in class AbstractSingleSourceFilter
Parameters:
i - Which data element to return. Should be between 0 and getNumElements()-1.
Returns:
The selected element.

getNumParameters

public int getNumParameters()

getParameterDescription

public java.lang.String getParameterDescription(int which)
Description copied from interface: DataSource
Tells you what a particular parameter is used for.


useParameterNameString

public boolean useParameterNameString(int which)
Description copied from interface: DataSource
If this returns true then the value of a parameter for this type should be listed as the strong value returned by getParameterName. Otherwise just the number should be displayed.


getParameterName

public java.lang.String getParameterName(int which,
                                         int paramVal)
Description copied from interface: DataSource
Tells you the text that should be used to describe a particular value of a given parameter.


getNumValues

public int getNumValues()

getValueDescription

public java.lang.String getValueDescription(int which)
Description copied from interface: DataSource
Tells you what a particular value is used for.


getSortFormulas

public DataFormula[] getSortFormulas()

getDescription

public java.lang.String getDescription()

getTypeDescription

public static java.lang.String getTypeDescription()

copy

public SortFilter copy(java.util.List<GraphElement> l)

setupSpecificPanelProperties

protected void setupSpecificPanelProperties()
Description copied from class: AbstractSingleSourceFilter
This method should add any tabbed panes to the propPanel that are specific to the given filter. This is called when the propPanel is created. After it is called, the source and output info panels are added.

Specified by:
setupSpecificPanelProperties in class AbstractSingleSourceFilter

redoAllElements

protected void redoAllElements()
Description copied from class: AbstractSingleSourceFilter
This method is intended to reprocess all the input elements to redo the output. It must be properly implemented by all extending classes.

Specified by:
redoAllElements in class AbstractSingleSourceFilter

checkFormula

private void checkFormula(javax.swing.JTextField field)