/**
* @author Bob Hanson 2019.07.30
*
- * allows passing the result ArrayList as a parameter to avoid unnecessary construction
+ * allows passing the result ArrayList as a parameter to avoid
+ * unnecessary construction
+ * @return result (JavaScript) or new ArrayList (Java -- see FeatureRender)
*
*/
@Override
- public void findFeatures(int column, String type,
+ public List<SequenceFeature> findFeatures(int column, String type,
List<SequenceFeature> result)
{
- getFeatures().findFeatures(findPosition(column - 1), type, result);
+ return getFeatures().findFeatures(findPosition(column - 1), type,
+ result);
}
+ /**
+ * allows early intervention for renderer if this returns false
+ */
+ @Override
+ public boolean hasFeatures(String type)
+ {
+ return getFeatures().hasFeatures(type);
+ }
}