edu.swri.swiftvis.filters
Class FunctionFilter

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

public class FunctionFilter
extends AbstractMultipleSourceFilter

See Also:
Serialized Form

Nested Class Summary
private  class FunctionFilter.FunctionEntry
           
 
Field Summary
private  java.util.Vector<FunctionFilter.FunctionEntry> paramEntry
           
private  javax.swing.JList paramList
           
private  javax.swing.JPanel paramPanel
           
private static long serialVersionUID
           
private  java.util.Vector<FunctionFilter.FunctionEntry> valueEntry
           
private  javax.swing.JList valueList
           
private  javax.swing.JPanel valuePanel
           
 
Fields inherited from class edu.swri.swiftvis.filters.AbstractMultipleSourceFilter
bounds, changed, dataVect, inputVector, propPanel, sinkVector
 
Constructor Summary
  FunctionFilter()
           
private FunctionFilter(FunctionFilter c, java.util.List<GraphElement> l)
           
 
Method Summary
 FunctionFilter copy(java.util.List<GraphElement> l)
           
 java.lang.String getDescription()
           
 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.
static java.lang.String getTypeDescription()
           
 java.lang.String getValueDescription(int which)
          Tells you what a particular value is used for.
private  void mirrorParams()
           
private  void mirrorValues()
           
private  void newParam()
           
private  void newValue()
           
private  void paramListSelection()
           
protected  void redoAllElements()
          This method is intended to reprocess all the input elements to redo the output.
private  void removeParam()
           
private  void removeValue()
           
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.
private  void valueListSelection()
           
 
Methods inherited from class edu.swri.swiftvis.filters.AbstractMultipleSourceFilter
abstractRedoAllElements, addInput, addOutput, clearData, getBounds, getElement, getNumElements, 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

valueEntry

private java.util.Vector<FunctionFilter.FunctionEntry> valueEntry

paramEntry

private java.util.Vector<FunctionFilter.FunctionEntry> paramEntry

valueList

private transient javax.swing.JList valueList

paramList

private transient javax.swing.JList paramList

valuePanel

private transient javax.swing.JPanel valuePanel

paramPanel

private transient javax.swing.JPanel paramPanel

serialVersionUID

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

FunctionFilter

public FunctionFilter()

FunctionFilter

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

getDescription

public java.lang.String getDescription()

getTypeDescription

public static java.lang.String getTypeDescription()

setupSpecificPanelProperties

protected void setupSpecificPanelProperties()
Description copied from class: AbstractMultipleSourceFilter
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 AbstractMultipleSourceFilter

getParameterDescription

public java.lang.String getParameterDescription(int which)
Tells you what a particular parameter is used for.


useParameterNameString

public 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. Otherwise just the number should be displayed.


getParameterName

public 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.


getValueDescription

public java.lang.String getValueDescription(int which)
Tells you what a particular value is used for.


getNumParameters

public int getNumParameters()
Specified by:
getNumParameters in interface DataSource
Overrides:
getNumParameters in class AbstractMultipleSourceFilter

getNumValues

public int getNumValues()
Specified by:
getNumValues in interface DataSource
Overrides:
getNumValues in class AbstractMultipleSourceFilter

copy

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

redoAllElements

protected void redoAllElements()
Description copied from class: AbstractMultipleSourceFilter
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 AbstractMultipleSourceFilter

mirrorValues

private void mirrorValues()

valueListSelection

private void valueListSelection()

newValue

private void newValue()

removeValue

private void removeValue()

mirrorParams

private void mirrorParams()

paramListSelection

private void paramListSelection()

newParam

private void newParam()

removeParam

private void removeParam()