|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfilters.FilterParam
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.
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 |
public static boolean ALERT_LISTENERS
alertListeners
private int columnIndex
private String columnText
private EventListenerList listenerList
private double threshold
threshold
Constructor Detail |
public FilterParam(int i, String string, double d)
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.0Method Detail |
public void addChangeListener(ChangeListener l)
l
- the listener to add.public void fireStateChanged()
public int getColumnIndex()
public String getColumnText()
public double getThreshold()
public void removeChangeListener(ChangeListener l)
l
- the listener to remove.public void setColumnIndex(int columnIndex)
columnIndex
- The columnIndex to set.public void setColumnText(String columnText)
columnText
- The columnText to set.public void setThreshold(double threshold)
threshold
- The threshold to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |