// TODO: annotation object should be typed for autocalculated/derived property methods
if (selectedRow < aa.length)
{
- if (!aa[selectedRow].autoCalculated && aa[selectedRow].graph==AlignmentAnnotation.NO_GRAPH)
- {
- // display formatting settings for this row.
- pop.addSeparator();
- // av and sequencegroup need to implement same interface for
- item = new JCheckBoxMenuItem(TOGGLE_LABELSCALE,
+ if (!aa[selectedRow].autoCalculated) {
+ if (aa[selectedRow].graph==AlignmentAnnotation.NO_GRAPH)
+ {
+ // display formatting settings for this row.
+ pop.addSeparator();
+ // av and sequencegroup need to implement same interface for
+ item = new JCheckBoxMenuItem(TOGGLE_LABELSCALE,
aa[selectedRow].scaleColLabel);
- item.addActionListener(this);
- pop.add(item);
+ item.addActionListener(this);
+ pop.add(item);
+ }
}
else if (aa[selectedRow].label.indexOf("Consensus") > -1)
{
// can be
// updated.
aaa.groupRef.setIncludeAllConsSymbols(cprof.getState());
- ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
+ ap.repaint();
+ // ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
}
});
pop.add(cprof);
+ } else {
+/* final JCheckBoxMenuItem cprof = new JCheckBoxMenuItem(
+ "Show Full Profile", aa[selectedRow].groupRef
+ .isIncludeAllConsSymbols());
+ cprof.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ // TODO: pass on reference
+ // to ap
+ // so the
+ // view
+ // can be
+ // updated.
+ aaa.groupRef.setIncludeAllConsSymbols(cprof.getState());
+ ap.repaint();
+ // ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
+ }
+ });
+ pop.add(cprof); */
}
final JMenuItem consclipbrd = new JMenuItem(COPYCONS_SEQ);
consclipbrd.addActionListener(this);