git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2773 add new flag to paintAlignment(updateOverview,updateStructures) and first...
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationRowFilter.java
diff --git
a/src/jalview/gui/AnnotationRowFilter.java
b/src/jalview/gui/AnnotationRowFilter.java
index
8b2486f
..
71ad6a5
100644
(file)
--- a/
src/jalview/gui/AnnotationRowFilter.java
+++ b/
src/jalview/gui/AnnotationRowFilter.java
@@
-80,7
+80,7
@@
public abstract class AnnotationRowFilter extends JPanel
*/
protected boolean sliderDragging = false;
*/
protected boolean sliderDragging = false;
- protected JComboBox<String> threshold = new JComboBox<String>();
+ protected JComboBox<String> threshold = new JComboBox<>();
protected JComboBox<String> annotations;
protected JComboBox<String> annotations;
@@
-177,7
+177,6
@@
public abstract class AnnotationRowFilter extends JPanel
sliderDragging = false;
valueChanged(true);
}
sliderDragging = false;
valueChanged(true);
}
- ap.paintAlignment(true);
}
});
}
}
});
}
@@
-192,9
+191,9
@@
public abstract class AnnotationRowFilter extends JPanel
*/
public Vector<String> getAnnotationItems(boolean isSeqAssociated)
{
*/
public Vector<String> getAnnotationItems(boolean isSeqAssociated)
{
- annotationLabels = new HashMap<AlignmentAnnotation, String>();
+ annotationLabels = new HashMap<>();
- Vector<String> list = new Vector<String>();
+ Vector<String> list = new Vector<>();
int index = 1;
int[] anmap = new int[av.getAlignment()
.getAlignmentAnnotation().length];
int index = 1;
int[] anmap = new int[av.getAlignment()
.getAlignmentAnnotation().length];
@@
-271,7
+270,7
@@
public abstract class AnnotationRowFilter extends JPanel
public void cancel_actionPerformed()
{
reset();
public void cancel_actionPerformed()
{
reset();
- ap.paintAlignment(true);
+ ap.paintAlignment(true, true);
try
{
frame.setClosed(true);
try
{
frame.setClosed(true);
@@
-413,6
+412,11
@@
public abstract class AnnotationRowFilter extends JPanel
this.currentAnnotation = annotation;
}
this.currentAnnotation = annotation;
}
+ /**
+ * update associated view model and trigger any necessary repaints.
+ *
+ * @param updateAllAnnotation
+ */
protected abstract void valueChanged(boolean updateAllAnnotation);
protected abstract void updateView();
protected abstract void valueChanged(boolean updateAllAnnotation);
protected abstract void updateView();