From fdc1773f639bbb70b609965c599d070802933b21 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 14 Jun 2005 10:44:55 +0000 Subject: [PATCH] protected now public --- src/jalview/gui/TreePanel.java | 17 ++++++++--------- src/jalview/jbgui/GTreePanel.java | 30 +++++++++++++++--------------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/jalview/gui/TreePanel.java b/src/jalview/gui/TreePanel.java index 2a8c9b4..3ba9cdd 100755 --- a/src/jalview/gui/TreePanel.java +++ b/src/jalview/gui/TreePanel.java @@ -39,7 +39,6 @@ public class TreePanel SequenceI[] seq; String type; String pwtype; - AlignViewport av; int start; int end; TreeCanvas treeCanvas; @@ -221,19 +220,19 @@ public class TreePanel } } - protected void printMenu_actionPerformed(ActionEvent e) + public void printMenu_actionPerformed(ActionEvent e) { //Putting in a thread avoids Swing painting problems treeCanvas.startPrinting(); } - protected void fitToWindow_actionPerformed(ActionEvent e) + public void fitToWindow_actionPerformed(ActionEvent e) { treeCanvas.fitToWindow = fitToWindow.isSelected(); repaint(); } - protected void fontSize_actionPerformed(ActionEvent e) + public void fontSize_actionPerformed(ActionEvent e) { if (treeCanvas == null) { @@ -262,22 +261,22 @@ public class TreePanel scrollPane.setViewportView(treeCanvas); } - protected void distanceMenu_actionPerformed(ActionEvent e) + public void distanceMenu_actionPerformed(ActionEvent e) { treeCanvas.setShowDistances(distanceMenu.isSelected()); } - protected void bootstrapMenu_actionPerformed(ActionEvent e) + public void bootstrapMenu_actionPerformed(ActionEvent e) { treeCanvas.setShowBootstrap(bootstrapMenu.isSelected()); } - protected void placeholdersMenu_actionPerformed(ActionEvent e) + public void placeholdersMenu_actionPerformed(ActionEvent e) { treeCanvas.setMarkPlaceholders(placeholdersMenu.isSelected()); } - protected void epsTree_actionPerformed(ActionEvent e) + public void epsTree_actionPerformed(ActionEvent e) { int width = treeCanvas.getWidth(); int height = treeCanvas.getHeight(); @@ -320,7 +319,7 @@ public class TreePanel } } - protected void pngTree_actionPerformed(ActionEvent e) + public void pngTree_actionPerformed(ActionEvent e) { int width = treeCanvas.getWidth(); int height = treeCanvas.getHeight(); diff --git a/src/jalview/jbgui/GTreePanel.java b/src/jalview/jbgui/GTreePanel.java index 5b8c6fa..088dbde 100755 --- a/src/jalview/jbgui/GTreePanel.java +++ b/src/jalview/jbgui/GTreePanel.java @@ -26,17 +26,17 @@ import javax.swing.*; public class GTreePanel extends JInternalFrame { BorderLayout borderLayout1 = new BorderLayout(); - protected JScrollPane scrollPane = new JScrollPane(); + public JScrollPane scrollPane = new JScrollPane(); JMenuBar jMenuBar1 = new JMenuBar(); JMenu jMenu1 = new JMenu(); JMenuItem saveAsNewick = new JMenuItem(); JMenuItem printMenu = new JMenuItem(); JMenu jMenu2 = new JMenu(); - protected JMenuItem fontSize = new JMenuItem(); - protected JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem placeholdersMenu = new JCheckBoxMenuItem(); + public JMenuItem fontSize = new JMenuItem(); + public JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem placeholdersMenu = new JCheckBoxMenuItem(); JMenuItem pngTree = new JMenuItem(); JMenuItem epsTree = new JMenuItem(); JMenu saveAsMenu = new JMenu(); @@ -138,31 +138,31 @@ public class GTreePanel extends JInternalFrame { saveAsMenu.add(pngTree); } - protected void printMenu_actionPerformed(ActionEvent e) { + public void printMenu_actionPerformed(ActionEvent e) { } - protected void fontSize_actionPerformed(ActionEvent e) { + public void fontSize_actionPerformed(ActionEvent e) { } - protected void distanceMenu_actionPerformed(ActionEvent e) { + public void distanceMenu_actionPerformed(ActionEvent e) { } - protected void bootstrapMenu_actionPerformed(ActionEvent e) { + public void bootstrapMenu_actionPerformed(ActionEvent e) { } - protected void fitToWindow_actionPerformed(ActionEvent e) { + public void fitToWindow_actionPerformed(ActionEvent e) { } - protected void pngTree_actionPerformed(ActionEvent e) { + public void pngTree_actionPerformed(ActionEvent e) { } - protected void epsTree_actionPerformed(ActionEvent e) { + public void epsTree_actionPerformed(ActionEvent e) { } - protected void saveAsNewick_actionPerformed(ActionEvent e) { + public void saveAsNewick_actionPerformed(ActionEvent e) { } - protected void placeholdersMenu_actionPerformed(ActionEvent e) { + public void placeholdersMenu_actionPerformed(ActionEvent e) { } public void textbox_actionPerformed(ActionEvent e) { -- 1.7.10.2