use of org.cytoscape.filter.internal.widgets.autocomplete.index.NumberIndex in project cytoscape-impl by cytoscape.
the class RangeSelectionListener method stateChanged.
/**
* State Change Event.
*
* @param e ChangeEvent Object.
*/
public void stateChanged(ChangeEvent e) {
final CyNetwork cyNetwork = applicationManager.getCurrentNetwork();
GenericIndex index = quickFind.getIndex(cyNetwork);
NumberRangeModel model = (NumberRangeModel) slider.getModel();
if (slider.isVisible()) {
if (index instanceof NumberIndex) {
Number lowValue = (Number) model.getLowValue();
Number highValue = (Number) model.getHighValue();
quickFind.selectRange(cyNetwork, lowValue, highValue);
}
}
}
Aggregations