import jalview.datamodel.*;\r
import jalview.schemes.*;\r
\r
-public class SliderPanel extends Panel implements ActionListener, AdjustmentListener\r
+public class SliderPanel extends Panel\r
+ implements ActionListener,\r
+ AdjustmentListener,\r
+ MouseListener\r
{\r
AlignmentPanel ap;\r
boolean forConservation = true;\r
}\r
\r
slider.addAdjustmentListener(this);\r
+ slider.addMouseListener(this);\r
\r
slider.setValue(value);\r
valueField.setText(value + "");\r
}\r
\r
protected void applyButton_actionPerformed()\r
- {\r
- }\r
+ { }\r
\r
protected void undoButton_actionPerformed()\r
+ { }\r
+\r
+ public void mousePressed(MouseEvent evt)\r
+ { }\r
+\r
+ public void mouseReleased(MouseEvent evt)\r
{\r
+ if (ap.overviewPanel != null)\r
+ ap.overviewPanel.updateOverviewImage();\r
}\r
+ public void mouseClicked(MouseEvent evt)\r
+ {}\r
+ public void mouseEntered(MouseEvent evt)\r
+ {}\r
+ public void mouseExited(MouseEvent evt)\r
+ {}\r
}\r
{\r
return Integer.parseInt(valueField.getText());\r
}\r
+\r
+ public void slider_mouseReleased(MouseEvent e)\r
+ {\r
+ if (ap.overviewPanel != null)\r
+ ap.overviewPanel.updateOverviewImage();\r
+ }\r
+\r
}\r
slider.setBackground(Color.white);\r
slider.setFont(new java.awt.Font("Verdana", 0, 11));\r
slider.setDoubleBuffered(true);\r
- valueField.setFont(new java.awt.Font("Verdana", 0, 11));\r
+ slider.addMouseListener(new MouseAdapter()\r
+ {\r
+ public void mouseReleased(MouseEvent e)\r
+ {\r
+ slider_mouseReleased(e);\r
+ }\r
+ });\r
+ valueField.setFont(new java.awt.Font("Verdana", 0, 11));\r
valueField.setMinimumSize(new Dimension(6, 14));\r
valueField.setPreferredSize(new Dimension(50, 12));\r
valueField.setText("");\r
protected void allGroupsCheck_actionPerformed(ActionEvent e)\r
{\r
}\r
-}\r
+\r
+ public void slider_mouseReleased(MouseEvent e)\r
+ {\r
+\r
+ }\r
+ }\r