protected int[] annmap;
protected boolean adjusting = false;
-
- protected JCheckBox currentColours = new JCheckBox();
-
- protected JPanel minColour = new JPanel();
-
- protected JPanel maxColour = new JPanel();
protected JCheckBox seqAssociated = new JCheckBox();
- protected JCheckBox thresholdIsMin = new JCheckBox();
-
protected JSlider slider = new JSlider();
protected JTextField thresholdValue = new JTextField(20);
/**
* Constructor
*
- * @param av
- * @param ap
+ * @param viewport
+ * @param alignPanel
*/
- public AnnotationRowFilter(AlignViewport av, final AlignmentPanel ap)
+ public AnnotationRowFilter(AlignViewport viewport, final AlignmentPanel alignPanel)
{
- this.av = av;
- this.ap = ap;
+ this.av = viewport;
+ this.ap = alignPanel;
thresholdValue.addFocusListener(new FocusAdapter()
{
@Override
});
}
- /**
- * Builds and returns a list of menu items (display text) for choice of
- * annotation. Also builds maps between annotations, their positions in the
- * list, and their display labels in the list.
- *
- * @param isSeqAssociated
- * @return
- */
+/**
+ * Builds and returns a list of menu items (display text) for choice of
+ * annotation. Also builds maps between annotations, their positions in the
+ * list, and their display labels in the list.
+ *
+ * @param isSeqAssociated
+ * @return
+ */
public Vector<String> getAnnotationItems(boolean isSeqAssociated)
{
annotationLabels = new HashMap<AlignmentAnnotation, String>();
return currentAnnotation;
}
- protected void setCurrentAnnotation(AlignmentAnnotation currentAnnotation)
+ protected void setCurrentAnnotation(AlignmentAnnotation annotation)
{
- this.currentAnnotation = currentAnnotation;
+ this.currentAnnotation = annotation;
}
protected abstract void valueChanged(boolean updateAllAnnotation);