filters
Class FilterParam

java.lang.Object
  extended byfilters.FilterParam

public class FilterParam
extends Object

This object holds the parameters which define a filter in a Venn diagram. It maintains a EventListener list so as to be able to alert from changes on the parameters. In this way the program need not check all parameters every time.

Author:
Etienne Fort

Field Summary
static boolean ALERT_LISTENERS
          Specifies the behaviour of parameters FilterParam regarding events broadcasting.
private  int columnIndex
           
private  String columnText
           
private  EventListenerList listenerList
           
private  double threshold
          Threshold control of filtering operation.
 
Constructor Summary
FilterParam(int i, String string, double d)
          Creates a new FilterParam
 
Method Summary
 void addChangeListener(ChangeListener l)
          Adds a listener of changing event, sent when the param changes.
 void fireStateChanged()
          Notifies all listeners that have registered interest for notification on this event type.
 int getColumnIndex()
           
 String getColumnText()
           
 double getThreshold()
           
 void removeChangeListener(ChangeListener l)
          Removes a listener from the list of event listeners.
 void setColumnIndex(int columnIndex)
           
 void setColumnText(String columnText)
           
 void setThreshold(double threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALERT_LISTENERS

public static boolean ALERT_LISTENERS
Specifies the behaviour of parameters FilterParam regarding events broadcasting. Comment for alertListeners


columnIndex

private int columnIndex

columnText

private String columnText

listenerList

private EventListenerList listenerList

threshold

private double threshold
Threshold control of filtering operation. Varies from 0.0 to 1.0 Comment for threshold

Constructor Detail

FilterParam

public FilterParam(int i,
                   String string,
                   double d)
Creates a new FilterParam

Parameters:
i - the column index of the column to be filtered with.
string - the column title.
d - the threshold below which lines are not displayed. Is supposed to vary from 0.0 to 1.0
Method Detail

addChangeListener

public void addChangeListener(ChangeListener l)
Adds a listener of changing event, sent when the param changes.

Parameters:
l - the listener to add.

fireStateChanged

public void fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.


getColumnIndex

public int getColumnIndex()
Returns:
the columnIndex.

getColumnText

public String getColumnText()
Returns:
the columnText.

getThreshold

public double getThreshold()
Returns:
the threshold.

removeChangeListener

public void removeChangeListener(ChangeListener l)
Removes a listener from the list of event listeners.

Parameters:
l - the listener to remove.

setColumnIndex

public void setColumnIndex(int columnIndex)
Parameters:
columnIndex - The columnIndex to set.

setColumnText

public void setColumnText(String columnText)
Parameters:
columnText - The columnText to set.

setThreshold

public void setThreshold(double threshold)
Parameters:
threshold - The threshold to set.