public class TimeWindowFilter extends GuiDataFilter
Constructor and Description |
---|
TimeWindowFilter(java.lang.String fieldName,
TimeSpan span)
Create a TimeWindowFilter for the specified field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DataRecord rec)
Return whether the DataRecord is accepted by this filter.
|
javax.swing.JComponent |
getComponent()
Return the Graphical User Interface component used for interacting with
this DataFilter.
|
TimeSpan |
getTimeSpan()
Get the current time window
|
void |
setWidgets(TimeWidget start,
TimeWidget stop)
Set the widgets used to enter start and stop time.
|
addChangeListener, fireStateChanged, removeChangeListener
filterRecords
public TimeWindowFilter(java.lang.String fieldName, TimeSpan span)
fieldName
- the field name to matchspan
- the initial time span for the TimeWindowFilterpublic boolean accept(DataRecord rec)
accept
in class DataFilter
rec
- the data record to match.public javax.swing.JComponent getComponent()
getComponent
in class GuiDataFilter
public TimeSpan getTimeSpan()
public void setWidgets(TimeWidget start, TimeWidget stop)
start
- the TimeWidget used to specify and display start timestop
- the TimeWidget used to specify and display stop time