/** Does all the handle selection checks for BaseFineEditor and BaseEditorPanel */ boolean canHandleSelection(FeatureSelectionEvent evt, Object self) { if ((noExternalSelection() && isExternalSelection(evt)) && !evt.forceSelection()) return false; if (evt.getSource() == self) return false; if (!this.isVisible()) return false; if (evt.getFeatures().size() == 0) return false; SeqFeatureI sf = evt.getFeatures().getFeature(0); // if strand of selection is not our strand return boolean is_reverse = (sf.getStrand() == -1); if (is_reverse != editorPanel.getReverseStrand()) return false; if (!(sf instanceof AnnotatedFeatureI)) return false; // repaint transVw? else return true; }
/** * puts up vertical lines in szap(main window) indicating the region EDE is displaying - make * private? */ private void showEditRegion() { colorIndex = (colorIndex + 1) % colorList.length; indicatorColor = colorList[colorIndex]; colorSwatch.setBackground(indicatorColor); szap.addHighlightRegion(editorPanel, indicatorColor, editorPanel.getReverseStrand()); }