private int _paste_subtree_item;
private int _reroot_cb_item;
private JButton _return_to_super_tree;
-
+ // Search
+ private JLabel _search_found_label_0;
+ private JLabel _search_found_label_1;
+ private JButton _search_reset_button_0;
+ private JButton _search_reset_button_1;
+ private JTextField _search_tf_0;
+ private JTextField _search_tf_1;
private int _select_nodes_item;
private Sequence _selected_query_seq;
private JCheckBox _seq_relation_confidence_switch;
private JCheckBox _show_annotation;
private JCheckBox _show_binary_character_counts;
private JCheckBox _show_binary_characters;
- // Search
- private JLabel _search_found_label_0;
- private JButton _search_reset_button_0;
- private JTextField _search_tf_0;
- private JLabel _search_found_label_1;
- private JButton _search_reset_button_1;
- private JTextField _search_tf_1;
-
// Indices for the click-to options in the combo box
private int _show_data_item;
private JCheckBox _show_domain_architectures;
JLabel getSearchFoundCountsLabel0() {
return _search_found_label_0;
}
-
+
JLabel getSearchFoundCountsLabel1() {
return _search_found_label_1;
}
JButton getSearchResetButton0() {
return _search_reset_button_0;
}
-
+
JButton getSearchResetButton1() {
return _search_reset_button_1;
}
JTextField getSearchTextField0() {
return _search_tf_0;
}
-
+
JTextField getSearchTextField1() {
return _search_tf_1;
}
if ( query != null ) {
query = query.trim();
}
-
-
if ( !ForesterUtil.isEmpty( query ) ) {
search0( main_panel, tree, query );
}
searchReset0();
}
}
-
+
void search1() {
final MainPanel main_panel = getMainPanel();
final Phylogeny tree = main_panel.getCurrentPhylogeny();
if ( query != null ) {
query = query.trim();
}
-
if ( !ForesterUtil.isEmpty( query ) ) {
search1( main_panel, tree, query );
}
searchReset1();
}
}
-
-
void searchReset0() {
if ( getMainPanel().getCurrentTreePanel() != null ) {
getMainPanel().getCurrentTreePanel().setFoundNodes0( null );
}
}
-
+
void searchReset1() {
if ( getMainPanel().getCurrentTreePanel() != null ) {
getMainPanel().getCurrentTreePanel().setFoundNodes1( null );
void setSearchFoundCountsOnLabel0( final int counts ) {
getSearchFoundCountsLabel0().setText( "Found: " + counts );
}
-
+
void setSearchFoundCountsOnLabel1( final int counts ) {
getSearchFoundCountsLabel1().setText( "Found: " + counts );
}
s_panel_2.add( _search_found_label_1 );
addJButton( _search_reset_button_1, s_panel_2 );
}
-
-
+
void showAnnotations() {
if ( _show_annotation != null ) {
_show_annotation.setSelected( true );
searchReset0();
}
}
-
+
private void search1( final MainPanel main_panel, final Phylogeny tree, final String query_str ) {
getSearchFoundCountsLabel1().setVisible( true );
getSearchResetButton1().setEnabled( true );