Package tech.molecules.leet.table
Class DefaultNumericRangeFilter<X,T>
- java.lang.Object
-
- tech.molecules.leet.table.DefaultNumericRangeFilter<X,T>
-
- All Implemented Interfaces:
Serializable,NColumn.NexusRowFilter<T>
public class DefaultNumericRangeFilter<X,T> extends Object implements NColumn.NexusRowFilter<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultNumericRangeFilter(NColumn<X,T> col, String numericDataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitSetfilterNexusRows(T data, List<String> ids, BitSet filtered)doublegetApproximateFilterSpeed()JPanelgetFilterGUI()StringgetFilterName()booleanisReady()For certain filters it may be possible that the column first has to initialize specific datastructures asynchronously.voidsetupFilter(NexusTableModel model, T dp)
-
-
-
Method Detail
-
getFilterName
public String getFilterName()
- Specified by:
getFilterNamein interfaceNColumn.NexusRowFilter<X>
-
filterNexusRows
public BitSet filterNexusRows(T data, List<String> ids, BitSet filtered)
- Specified by:
filterNexusRowsin interfaceNColumn.NexusRowFilter<X>filtered- bits that are one indicate rows that are not yet filtered. For these the function has to check if it should be filtered, and in that case for the given position in the result bitset a zero must be returned.- Returns:
-
getApproximateFilterSpeed
public double getApproximateFilterSpeed()
- Specified by:
getApproximateFilterSpeedin interfaceNColumn.NexusRowFilter<X>
-
setupFilter
public void setupFilter(NexusTableModel model, T dp)
- Specified by:
setupFilterin interfaceNColumn.NexusRowFilter<X>
-
getFilterGUI
public JPanel getFilterGUI()
- Specified by:
getFilterGUIin interfaceNColumn.NexusRowFilter<X>
-
isReady
public boolean isReady()
Description copied from interface:NColumn.NexusRowFilterFor certain filters it may be possible that the column first has to initialize specific datastructures asynchronously. In this case, the filter will return false in this function until the data is ready. Example would be the substructure filter and a structure column (loading fingerprints asynchronously).- Specified by:
isReadyin interfaceNColumn.NexusRowFilter<X>- Returns:
-
-