X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGSliderPanel.java;h=c452d113120d858f73c056d7fadde5dd92794ad6;hb=e8334005d46d1d4cc064250758068e5a390cff25;hp=341263fc2e2d1b16426984edd3909cd3ced28924;hpb=588042b69abf8e60bcc950b24c283933c7dd422f;p=jalview.git diff --git a/src/jalview/jbgui/GSliderPanel.java b/src/jalview/jbgui/GSliderPanel.java index 341263f..c452d11 100755 --- a/src/jalview/jbgui/GSliderPanel.java +++ b/src/jalview/jbgui/GSliderPanel.java @@ -24,7 +24,14 @@ import java.awt.event.*; import javax.swing.*; -public class GSliderPanel extends JPanel { +/** + * DOCUMENT ME! + * + * @author $author$ + * @version $Revision$ + */ +public class GSliderPanel extends JPanel +{ // this is used for conservation colours, PID colours and redundancy threshold protected JSlider slider = new JSlider(); protected JTextField valueField = new JTextField(); @@ -38,15 +45,28 @@ public class GSliderPanel extends JPanel { protected JCheckBox allGroupsCheck = new JCheckBox(); BorderLayout borderLayout1 = new BorderLayout(); - public GSliderPanel() { - try { + /** + * Creates a new GSliderPanel object. + */ + public GSliderPanel() + { + try + { jbInit(); - } catch (Exception e) { + } + catch (Exception e) + { e.printStackTrace(); } } - private void jbInit() throws Exception { + /** + * DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ + private void jbInit() throws Exception + { this.setLayout(gridLayout1); slider.setMajorTickSpacing(10); slider.setMinorTickSpacing(1); @@ -59,8 +79,10 @@ public class GSliderPanel extends JPanel { valueField.setPreferredSize(new Dimension(50, 12)); valueField.setText(""); valueField.setHorizontalAlignment(SwingConstants.CENTER); - valueField.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(ActionEvent e) { + valueField.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { valueField_actionPerformed(e); } }); @@ -74,8 +96,10 @@ public class GSliderPanel extends JPanel { applyButton.setFont(new java.awt.Font("Verdana", 0, 11)); applyButton.setOpaque(false); applyButton.setText("Apply"); - applyButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(ActionEvent e) { + applyButton.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { applyButton_actionPerformed(e); } }); @@ -83,8 +107,10 @@ public class GSliderPanel extends JPanel { undoButton.setFont(new java.awt.Font("Verdana", 0, 11)); undoButton.setOpaque(false); undoButton.setText("Undo"); - undoButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(ActionEvent e) { + undoButton.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { undoButton_actionPerformed(e); } }); @@ -92,8 +118,10 @@ public class GSliderPanel extends JPanel { allGroupsCheck.setFont(new java.awt.Font("Verdana", 0, 11)); allGroupsCheck.setOpaque(false); allGroupsCheck.setText("Apply to all Groups"); - allGroupsCheck.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(ActionEvent e) { + allGroupsCheck.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { allGroupsCheck_actionPerformed(e); } }); @@ -111,15 +139,39 @@ public class GSliderPanel extends JPanel { jPanel1.add(allGroupsCheck, BorderLayout.EAST); } - protected void valueField_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void valueField_actionPerformed(ActionEvent e) + { } - protected void applyButton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void applyButton_actionPerformed(ActionEvent e) + { } - protected void undoButton_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void undoButton_actionPerformed(ActionEvent e) + { } - protected void allGroupsCheck_actionPerformed(ActionEvent e) { + /** + * DOCUMENT ME! + * + * @param e DOCUMENT ME! + */ + protected void allGroupsCheck_actionPerformed(ActionEvent e) + { } }