edu.swri.swiftvis.filters
Class GroupNumberingFilter

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

public class GroupNumberingFilter
extends AbstractSingleSourceFilter

This method goes through and adds two new parameters to the elements of the single source. The first parameter is a group number telling you which group this element is in. The second paramter is a the number for where it is in the group beginning with 0 for the first element found in each group.

Author:
Mark Lewis
See Also:
Serialized Form

Field Summary
private  DataFormula groupFormula
           
private static long serialVersionUID
           
 
Fields inherited from class edu.swri.swiftvis.filters.AbstractSingleSourceFilter
bounds, changed, dataVect, input, propPanel, sinkVector
 
Constructor Summary
  GroupNumberingFilter()
           
private GroupNumberingFilter(GroupNumberingFilter c, java.util.List<GraphElement> l)
           
 
Method Summary
 GroupNumberingFilter 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.
protected  void redoAllElements()
          This method is intended to reprocess all the input elements to redo the output.
private  void setFormula(javax.swing.JTextField field)
           
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, 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

groupFormula

private DataFormula groupFormula

serialVersionUID

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

GroupNumberingFilter

public GroupNumberingFilter()

GroupNumberingFilter

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

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.


getDescription

public java.lang.String getDescription()

getTypeDescription

public static java.lang.String getTypeDescription()

copy

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

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

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

setFormula

private void setFormula(javax.swing.JTextField field)