X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FArchaeopteryxE.java;h=d186d16d176b295ff39f185e29dde1b58c2cb073;hb=10f90f7787d4b1287a910d4e6ae895da14866929;hp=29a378b2aed21e6cfbdc1512f8e57e800327a74c;hpb=f4f236fff9a5f19dc9cf5dfb960f4a6d13ddb2fb;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java index 29a378b..d186d16 100644 --- a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java +++ b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java @@ -53,8 +53,8 @@ import org.forester.util.ForesterUtil; // public class ArchaeopteryxE extends JApplet implements ActionListener { - private final static String NAME = "ArchaeopteryxE"; - private static final long serialVersionUID = -1220055577935759443L; + private final static String NAME = "ArchaeopteryxE"; + private static final long serialVersionUID = -1220055577935759443L; private Configuration _configuration; private MainPanelApplets _main_panel; private JMenuBar _jmenubar; @@ -121,9 +121,10 @@ public class ArchaeopteryxE extends JApplet implements ActionListener { private JMenuItem _choose_node_size_mi; private JCheckBoxMenuItem _taxonomy_colorize_node_shapes_cbmi; private JCheckBoxMenuItem _show_confidence_stddev_cbmi; - private final LinkedList _textframes = new LinkedList(); - private String _ext_node_data_buffer = ""; + private final LinkedList _textframes = new LinkedList(); + // private String _ext_node_data_buffer = ""; + // private int _ext_node_data_buffer_change_counter = 0; @Override public void actionPerformed( final ActionEvent e ) { final Object o = e.getSource(); @@ -335,7 +336,15 @@ public class ArchaeopteryxE extends JApplet implements ActionListener { * @return current external node data as String */ public String getCurrentExternalNodesDataBuffer() { - return _ext_node_data_buffer; + return getCurrentTreePanel().getCurrentExternalNodesDataBufferAsString(); + } + + public int getCurrentExternalNodesDataBufferChangeCounter() { + return getCurrentTreePanel().getCurrentExternalNodesDataBufferChangeCounter(); + } + + public int getCurrentExternalNodesDataBufferLength() { + return getCurrentTreePanel().getCurrentExternalNodesDataBufferAsString().length(); } /** @@ -754,6 +763,10 @@ public class ArchaeopteryxE extends JApplet implements ActionListener { } } + void clearCurrentExternalNodesDataBuffer() { + getCurrentTreePanel().clearCurrentExternalNodesDataBuffer(); + } + void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) { if ( item != null ) { item.setFont( MainFrame.menu_font ); @@ -907,15 +920,6 @@ public class ArchaeopteryxE extends JApplet implements ActionListener { _configuration = configuration; } - void setCurrentExternalNodesDataBuffer( final String s ) { - if ( !ForesterUtil.isEmpty( s ) ) { - _ext_node_data_buffer = s.trim(); - } - else { - _ext_node_data_buffer = ""; - } - } - void setOptions( final Options options ) { _options = options; }