// </applet>
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;
private JMenuItem _choose_node_size_mi;
private JCheckBoxMenuItem _taxonomy_colorize_node_shapes_cbmi;
private JCheckBoxMenuItem _show_confidence_stddev_cbmi;
- private final LinkedList<TextFrame> _textframes = new LinkedList<TextFrame>();
- private String _ext_node_data_buffer = "";
- private int _ext_node_data_buffer_change_counter = 0;
+ private final LinkedList<TextFrame> _textframes = new LinkedList<TextFrame>();
+ // 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();
* @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();
}
/**
return dataImg;
}
- public int getExtNodeDataBufferChangeCounter() {
- return _ext_node_data_buffer_change_counter;
- }
-
public Options getOptions() {
return _options;
}
- public void increaseExtNodeDataBufferChangeCounter() {
- _ext_node_data_buffer_change_counter++;
- }
-
@Override
public void init() {
final String config_filename = getParameter( Constants.APPLET_PARAM_NAME_FOR_CONFIG_FILE_URL );
}
}
+ void clearCurrentExternalNodesDataBuffer() {
+ getCurrentTreePanel().clearCurrentExternalNodesDataBuffer();
+ }
+
void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) {
if ( item != null ) {
item.setFont( MainFrame.menu_font );
_configuration = configuration;
}
- void setCurrentExternalNodesDataBuffer( final String s ) {
- increaseExtNodeDataBufferChangeCounter();
- if ( !ForesterUtil.isEmpty( s ) ) {
- _ext_node_data_buffer = s.trim();
- }
- else {
- _ext_node_data_buffer = "";
- }
- }
-
void setOptions( final Options options ) {
_options = options;
}