X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjalview%2Fappletgui%2FSliderPanel.js;h=8ba7a20e9c20dae656d9d0a7d940d54ddffa7f29;hp=dc38cc282d53a1b79be37fb04dab93bd698c6eca;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/jalview/appletgui/SliderPanel.js b/bin/jalview/appletgui/SliderPanel.js index dc38cc2..8ba7a20 100644 --- a/bin/jalview/appletgui/SliderPanel.js +++ b/bin/jalview/appletgui/SliderPanel.js @@ -1,270 +1,270 @@ -Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["awt2swing.Panel", "java.awt.event.ActionListener", "$.AdjustmentListener", "$.MouseListener", "awt2swing.Button", "$.Checkbox", "$.Label", "$.Scrollbar", "$.TextField", "java.awt.BorderLayout", "$.FlowLayout"], "jalview.appletgui.SliderPanel", ["awt2swing.Frame", "jalview.bin.JalviewLite", "jalview.util.MessageManager", "java.awt.Color", "$.Font", "java.awt.event.WindowAdapter"], function () { -c$ = Clazz.decorateAsClass (function () { -this.ap = null; -this.forConservation = true; -this.cs = null; -this.slider = null; -this.valueField = null; -this.label = null; -this.jPanel1 = null; -this.jPanel2 = null; -this.applyButton = null; -this.undoButton = null; -this.flowLayout1 = null; -this.allGroupsCheck = null; -this.borderLayout1 = null; -this.borderLayout2 = null; -this.flowLayout2 = null; -Clazz.instantialize (this, arguments); -}, jalview.appletgui, "SliderPanel", awt2swing.Panel, [java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.MouseListener]); -Clazz.prepareFields (c$, function () { -this.slider = new awt2swing.Scrollbar (); -this.valueField = new awt2swing.TextField (); -this.label = new awt2swing.Label (); -this.jPanel1 = new awt2swing.Panel (); -this.jPanel2 = new awt2swing.Panel (); -this.applyButton = new awt2swing.Button (); -this.undoButton = new awt2swing.Button (); -this.flowLayout1 = new java.awt.FlowLayout (); -this.allGroupsCheck = new awt2swing.Checkbox (); -this.borderLayout1 = new java.awt.BorderLayout (); -this.borderLayout2 = new java.awt.BorderLayout (); -this.flowLayout2 = new java.awt.FlowLayout (); -}); -c$.setConservationSlider = Clazz.defineMethod (c$, "setConservationSlider", -function (ap, cs, source) { -var sp = null; -if (jalview.appletgui.SliderPanel.conservationSlider == null) { -sp = new jalview.appletgui.SliderPanel (ap, cs.getConservationInc (), true, cs); -jalview.appletgui.SliderPanel.conservationSlider = new awt2swing.Frame (); -jalview.appletgui.SliderPanel.conservationSlider.add (sp); -} else { -sp = jalview.appletgui.SliderPanel.conservationSlider.getComponent (0); -sp.cs = cs; -}jalview.appletgui.SliderPanel.conservationSlider.setTitle (jalview.util.MessageManager.formatMessage ("label.conservation_colour_increment", Clazz.newArray (-1, [source]))); -if (ap.av.getAlignment ().getGroups () != null) { -sp.setAllGroupsCheckEnabled (true); -} else { -sp.setAllGroupsCheckEnabled (false); -}return sp.getValue (); -}, "jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S"); -c$.showConservationSlider = Clazz.defineMethod (c$, "showConservationSlider", -function () { -try { -jalview.appletgui.SliderPanel.PIDSlider.setVisible (false); -jalview.appletgui.SliderPanel.PIDSlider = null; -} catch (ex) { -if (Clazz.exceptionOf (ex, Exception)) { -} else { -throw ex; -} -} -if (!jalview.appletgui.SliderPanel.conservationSlider.isVisible ()) { -jalview.bin.JalviewLite.addFrame (jalview.appletgui.SliderPanel.conservationSlider, jalview.appletgui.SliderPanel.conservationSlider.getTitle (), 420, 100); -jalview.appletgui.SliderPanel.conservationSlider.addWindowListener (((Clazz.isClassDefined ("jalview.appletgui.SliderPanel$1") ? 0 : jalview.appletgui.SliderPanel.$SliderPanel$1$ ()), Clazz.innerTypeInstance (jalview.appletgui.SliderPanel$1, this, null))); -}}); -c$.setPIDSliderSource = Clazz.defineMethod (c$, "setPIDSliderSource", -function (ap, cs, source) { -var pid = null; -if (jalview.appletgui.SliderPanel.PIDSlider == null) { -pid = new jalview.appletgui.SliderPanel (ap, 50, false, cs); -jalview.appletgui.SliderPanel.PIDSlider = new awt2swing.Frame (); -jalview.appletgui.SliderPanel.PIDSlider.add (pid); -} else { -pid = jalview.appletgui.SliderPanel.PIDSlider.getComponent (0); -pid.cs = cs; -}jalview.appletgui.SliderPanel.PIDSlider.setTitle (jalview.util.MessageManager.formatMessage ("label.percentage_identity_thereshold", Clazz.newArray (-1, [source]))); -if (ap.av.getAlignment ().getGroups () != null) { -pid.setAllGroupsCheckEnabled (true); -} else { -pid.setAllGroupsCheckEnabled (false); -}return pid.getValue (); -}, "jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S"); -c$.showPIDSlider = Clazz.defineMethod (c$, "showPIDSlider", -function () { -try { -jalview.appletgui.SliderPanel.conservationSlider.setVisible (false); -jalview.appletgui.SliderPanel.conservationSlider = null; -} catch (ex) { -if (Clazz.exceptionOf (ex, Exception)) { -} else { -throw ex; -} -} -if (!jalview.appletgui.SliderPanel.PIDSlider.isVisible ()) { -jalview.bin.JalviewLite.addFrame (jalview.appletgui.SliderPanel.PIDSlider, jalview.appletgui.SliderPanel.PIDSlider.getTitle (), 420, 100); -jalview.appletgui.SliderPanel.PIDSlider.addWindowListener (((Clazz.isClassDefined ("jalview.appletgui.SliderPanel$2") ? 0 : jalview.appletgui.SliderPanel.$SliderPanel$2$ ()), Clazz.innerTypeInstance (jalview.appletgui.SliderPanel$2, this, null))); -}}); -Clazz.makeConstructor (c$, -function (ap, value, forConserve, cs) { -Clazz.superConstructor (this, jalview.appletgui.SliderPanel, []); -try { -this.jbInit (); -} catch (e) { -if (Clazz.exceptionOf (e, Exception)) { -e.printStackTrace (); -} else { -throw e; -} -} -this.ap = ap; -this.cs = cs; -this.forConservation = forConserve; -this.undoButton.setVisible (false); -this.applyButton.setVisible (false); -if (this.forConservation) { -this.label.setText (jalview.util.MessageManager.getString ("label.modify_conservation_visibility")); -this.slider.setMinimum (0); -this.slider.setMaximum (50 + this.slider.getVisibleAmount ()); -this.slider.setUnitIncrement (1); -} else { -this.label.setText (jalview.util.MessageManager.getString ("label.colour_residues_above_occurence")); -this.slider.setMinimum (0); -this.slider.setMaximum (100 + this.slider.getVisibleAmount ()); -this.slider.setBlockIncrement (1); -}this.slider.addAdjustmentListener (this); -this.slider.addMouseListener (this); -this.slider.setValue (value); -this.valueField.setText (value + ""); -}, "jalview.appletgui.AlignmentPanel,~N,~B,jalview.schemes.ColourSchemeI"); -Clazz.defineMethod (c$, "valueChanged", -function (i) { -if (this.cs == null) { -return; -}var toChange = this.cs; -var allGroups = null; -if (this.allGroupsCheck.getState ()) { -allGroups = this.ap.av.getAlignment ().getGroups ().listIterator (); -}while (toChange != null) { -if (this.forConservation) { -toChange.setConservationInc (i); -} else { -toChange.setThreshold (i, this.ap.av.isIgnoreGapsConsensus ()); -}if (allGroups != null && allGroups.hasNext ()) { -while ((toChange = allGroups.next ().cs) == null && allGroups.hasNext ()) { -;} -} else { -toChange = null; -}} -this.ap.seqPanel.seqCanvas.repaint (); -}, "~N"); -Clazz.defineMethod (c$, "setAllGroupsCheckEnabled", -function (b) { -this.allGroupsCheck.setEnabled (b); -}, "~B"); -Clazz.overrideMethod (c$, "actionPerformed", -function (evt) { -if (evt.getSource () === this.applyButton) { -this.applyButton_actionPerformed (); -} else if (evt.getSource () === this.undoButton) { -this.undoButton_actionPerformed (); -} else if (evt.getSource () === this.valueField) { -this.valueField_actionPerformed (); -}}, "java.awt.event.ActionEvent"); -Clazz.overrideMethod (c$, "adjustmentValueChanged", -function (evt) { -this.valueField.setText (this.slider.getValue () + ""); -this.valueChanged (this.slider.getValue ()); -}, "java.awt.event.AdjustmentEvent"); -Clazz.defineMethod (c$, "valueField_actionPerformed", -function () { -try { -var i = Integer.parseInt (this.valueField.getText ()); -this.slider.setValue (i); -} catch (ex) { -if (Clazz.exceptionOf (ex, Exception)) { -this.valueField.setText (this.slider.getValue () + ""); -} else { -throw ex; -} -} -}); -Clazz.defineMethod (c$, "setValue", -function (value) { -this.slider.setValue (value); -}, "~N"); -Clazz.defineMethod (c$, "getValue", -function () { -return Integer.parseInt (this.valueField.getText ()); -}); -Clazz.defineMethod (c$, "jbInit", -($fz = function () { -this.setLayout (this.borderLayout2); -this.slider.setBackground (java.awt.Color.white); -this.slider.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.slider.setOrientation (0); -this.valueField.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.valueField.setText (" "); -this.valueField.addActionListener (this); -this.valueField.setColumns (3); -this.label.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.label.setText (jalview.util.MessageManager.getString ("label.set_this_label_text")); -this.jPanel1.setLayout (this.borderLayout1); -this.jPanel2.setLayout (this.flowLayout1); -this.applyButton.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.applyButton.setLabel (jalview.util.MessageManager.getString ("action.apply")); -this.applyButton.addActionListener (this); -this.undoButton.setEnabled (false); -this.undoButton.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.undoButton.setLabel (jalview.util.MessageManager.getString ("action.undo")); -this.undoButton.addActionListener (this); -this.allGroupsCheck.setEnabled (false); -this.allGroupsCheck.setFont ( new java.awt.Font ("Verdana", 0, 11)); -this.allGroupsCheck.setLabel (jalview.util.MessageManager.getString ("action.apply_threshold_all_groups")); -this.allGroupsCheck.setName (jalview.util.MessageManager.getString ("action.apply_all_groups")); -this.setBackground (java.awt.Color.white); -this.setForeground (java.awt.Color.black); -this.jPanel2.add (this.label, null); -this.jPanel2.add (this.applyButton, null); -this.jPanel2.add (this.undoButton, null); -this.jPanel2.add (this.allGroupsCheck); -this.jPanel1.add (this.valueField, "East"); -this.jPanel1.add (this.slider, "Center"); -this.add (this.jPanel1, "South"); -this.add (this.jPanel2, "Center"); -}, $fz.isPrivate = true, $fz)); -Clazz.defineMethod (c$, "applyButton_actionPerformed", -function () { -}); -Clazz.defineMethod (c$, "undoButton_actionPerformed", -function () { -}); -Clazz.overrideMethod (c$, "mousePressed", -function (evt) { -}, "java.awt.event.MouseEvent"); -Clazz.overrideMethod (c$, "mouseReleased", -function (evt) { -this.ap.paintAlignment (true); -}, "java.awt.event.MouseEvent"); -Clazz.overrideMethod (c$, "mouseClicked", -function (evt) { -}, "java.awt.event.MouseEvent"); -Clazz.overrideMethod (c$, "mouseEntered", -function (evt) { -}, "java.awt.event.MouseEvent"); -Clazz.overrideMethod (c$, "mouseExited", -function (evt) { -}, "java.awt.event.MouseEvent"); -c$.$SliderPanel$1$ = function () { -Clazz.pu$h (); -c$ = Clazz.declareAnonymous (jalview.appletgui, "SliderPanel$1", java.awt.event.WindowAdapter); -Clazz.overrideMethod (c$, "windowClosing", -function (e) { -jalview.appletgui.SliderPanel.conservationSlider = null; -}, "java.awt.event.WindowEvent"); -c$ = Clazz.p0p (); -}; -c$.$SliderPanel$2$ = function () { -Clazz.pu$h (); -c$ = Clazz.declareAnonymous (jalview.appletgui, "SliderPanel$2", java.awt.event.WindowAdapter); -Clazz.overrideMethod (c$, "windowClosing", -function (e) { -jalview.appletgui.SliderPanel.PIDSlider = null; -}, "java.awt.event.WindowEvent"); -c$ = Clazz.p0p (); -}; -Clazz.defineStatics (c$, -"conservationSlider", null, -"PIDSlider", null); -}); +Clazz.declarePackage ("jalview.appletgui"); +Clazz.load (["awt2swing.Panel", "java.awt.event.ActionListener", "$.AdjustmentListener", "$.MouseListener", "awt2swing.Button", "$.Checkbox", "$.Label", "$.Scrollbar", "$.TextField", "java.awt.BorderLayout", "$.FlowLayout"], "jalview.appletgui.SliderPanel", ["awt2swing.Frame", "jalview.bin.JalviewLite", "jalview.util.MessageManager", "java.awt.Color", "$.Font", "java.awt.event.WindowAdapter"], function () { +c$ = Clazz.decorateAsClass (function () { +this.ap = null; +this.forConservation = true; +this.cs = null; +this.slider = null; +this.valueField = null; +this.label = null; +this.jPanel1 = null; +this.jPanel2 = null; +this.applyButton = null; +this.undoButton = null; +this.flowLayout1 = null; +this.allGroupsCheck = null; +this.borderLayout1 = null; +this.borderLayout2 = null; +this.flowLayout2 = null; +Clazz.instantialize (this, arguments); +}, jalview.appletgui, "SliderPanel", awt2swing.Panel, [java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.MouseListener]); +Clazz.prepareFields (c$, function () { +this.slider = new awt2swing.Scrollbar (); +this.valueField = new awt2swing.TextField (); +this.label = new awt2swing.Label (); +this.jPanel1 = new awt2swing.Panel (); +this.jPanel2 = new awt2swing.Panel (); +this.applyButton = new awt2swing.Button (); +this.undoButton = new awt2swing.Button (); +this.flowLayout1 = new java.awt.FlowLayout (); +this.allGroupsCheck = new awt2swing.Checkbox (); +this.borderLayout1 = new java.awt.BorderLayout (); +this.borderLayout2 = new java.awt.BorderLayout (); +this.flowLayout2 = new java.awt.FlowLayout (); +}); +c$.setConservationSlider = Clazz.defineMethod (c$, "setConservationSlider", +function (ap, cs, source) { +var sp = null; +if (jalview.appletgui.SliderPanel.conservationSlider == null) { +sp = new jalview.appletgui.SliderPanel (ap, cs.getConservationInc (), true, cs); +jalview.appletgui.SliderPanel.conservationSlider = new awt2swing.Frame (); +jalview.appletgui.SliderPanel.conservationSlider.add (sp); +} else { +sp = jalview.appletgui.SliderPanel.conservationSlider.getComponent (0); +sp.cs = cs; +}jalview.appletgui.SliderPanel.conservationSlider.setTitle (jalview.util.MessageManager.formatMessage ("label.conservation_colour_increment", Clazz.newArray (-1, [source]))); +if (ap.av.getAlignment ().getGroups () != null) { +sp.setAllGroupsCheckEnabled (true); +} else { +sp.setAllGroupsCheckEnabled (false); +}return sp.getValue (); +}, "jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S"); +c$.showConservationSlider = Clazz.defineMethod (c$, "showConservationSlider", +function () { +try { +jalview.appletgui.SliderPanel.PIDSlider.setVisible (false); +jalview.appletgui.SliderPanel.PIDSlider = null; +} catch (ex) { +if (Clazz.exceptionOf (ex, Exception)) { +} else { +throw ex; +} +} +if (!jalview.appletgui.SliderPanel.conservationSlider.isVisible ()) { +jalview.bin.JalviewLite.addFrame (jalview.appletgui.SliderPanel.conservationSlider, jalview.appletgui.SliderPanel.conservationSlider.getTitle (), 420, 100); +jalview.appletgui.SliderPanel.conservationSlider.addWindowListener (((Clazz.isClassDefined ("jalview.appletgui.SliderPanel$1") ? 0 : jalview.appletgui.SliderPanel.$SliderPanel$1$ ()), Clazz.innerTypeInstance (jalview.appletgui.SliderPanel$1, this, null))); +}}); +c$.setPIDSliderSource = Clazz.defineMethod (c$, "setPIDSliderSource", +function (ap, cs, source) { +var pid = null; +if (jalview.appletgui.SliderPanel.PIDSlider == null) { +pid = new jalview.appletgui.SliderPanel (ap, 50, false, cs); +jalview.appletgui.SliderPanel.PIDSlider = new awt2swing.Frame (); +jalview.appletgui.SliderPanel.PIDSlider.add (pid); +} else { +pid = jalview.appletgui.SliderPanel.PIDSlider.getComponent (0); +pid.cs = cs; +}jalview.appletgui.SliderPanel.PIDSlider.setTitle (jalview.util.MessageManager.formatMessage ("label.percentage_identity_thereshold", Clazz.newArray (-1, [source]))); +if (ap.av.getAlignment ().getGroups () != null) { +pid.setAllGroupsCheckEnabled (true); +} else { +pid.setAllGroupsCheckEnabled (false); +}return pid.getValue (); +}, "jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S"); +c$.showPIDSlider = Clazz.defineMethod (c$, "showPIDSlider", +function () { +try { +jalview.appletgui.SliderPanel.conservationSlider.setVisible (false); +jalview.appletgui.SliderPanel.conservationSlider = null; +} catch (ex) { +if (Clazz.exceptionOf (ex, Exception)) { +} else { +throw ex; +} +} +if (!jalview.appletgui.SliderPanel.PIDSlider.isVisible ()) { +jalview.bin.JalviewLite.addFrame (jalview.appletgui.SliderPanel.PIDSlider, jalview.appletgui.SliderPanel.PIDSlider.getTitle (), 420, 100); +jalview.appletgui.SliderPanel.PIDSlider.addWindowListener (((Clazz.isClassDefined ("jalview.appletgui.SliderPanel$2") ? 0 : jalview.appletgui.SliderPanel.$SliderPanel$2$ ()), Clazz.innerTypeInstance (jalview.appletgui.SliderPanel$2, this, null))); +}}); +Clazz.makeConstructor (c$, +function (ap, value, forConserve, cs) { +Clazz.superConstructor (this, jalview.appletgui.SliderPanel, []); +try { +this.jbInit (); +} catch (e) { +if (Clazz.exceptionOf (e, Exception)) { +e.printStackTrace (); +} else { +throw e; +} +} +this.ap = ap; +this.cs = cs; +this.forConservation = forConserve; +this.undoButton.setVisible (false); +this.applyButton.setVisible (false); +if (this.forConservation) { +this.label.setText (jalview.util.MessageManager.getString ("label.modify_conservation_visibility")); +this.slider.setMinimum (0); +this.slider.setMaximum (50 + this.slider.getVisibleAmount ()); +this.slider.setUnitIncrement (1); +} else { +this.label.setText (jalview.util.MessageManager.getString ("label.colour_residues_above_occurence")); +this.slider.setMinimum (0); +this.slider.setMaximum (100 + this.slider.getVisibleAmount ()); +this.slider.setBlockIncrement (1); +}this.slider.addAdjustmentListener (this); +this.slider.addMouseListener (this); +this.slider.setValue (value); +this.valueField.setText (value + ""); +}, "jalview.appletgui.AlignmentPanel,~N,~B,jalview.schemes.ColourSchemeI"); +Clazz.defineMethod (c$, "valueChanged", +function (i) { +if (this.cs == null) { +return; +}var toChange = this.cs; +var allGroups = null; +if (this.allGroupsCheck.getState ()) { +allGroups = this.ap.av.getAlignment ().getGroups ().listIterator (); +}while (toChange != null) { +if (this.forConservation) { +toChange.setConservationInc (i); +} else { +toChange.setThreshold (i, this.ap.av.isIgnoreGapsConsensus ()); +}if (allGroups != null && allGroups.hasNext ()) { +while ((toChange = allGroups.next ().cs) == null && allGroups.hasNext ()) { +;} +} else { +toChange = null; +}} +this.ap.seqPanel.seqCanvas.repaint (); +}, "~N"); +Clazz.defineMethod (c$, "setAllGroupsCheckEnabled", +function (b) { +this.allGroupsCheck.setEnabled (b); +}, "~B"); +Clazz.overrideMethod (c$, "actionPerformed", +function (evt) { +if (evt.getSource () === this.applyButton) { +this.applyButton_actionPerformed (); +} else if (evt.getSource () === this.undoButton) { +this.undoButton_actionPerformed (); +} else if (evt.getSource () === this.valueField) { +this.valueField_actionPerformed (); +}}, "java.awt.event.ActionEvent"); +Clazz.overrideMethod (c$, "adjustmentValueChanged", +function (evt) { +this.valueField.setText (this.slider.getValue () + ""); +this.valueChanged (this.slider.getValue ()); +}, "java.awt.event.AdjustmentEvent"); +Clazz.defineMethod (c$, "valueField_actionPerformed", +function () { +try { +var i = Integer.parseInt (this.valueField.getText ()); +this.slider.setValue (i); +} catch (ex) { +if (Clazz.exceptionOf (ex, Exception)) { +this.valueField.setText (this.slider.getValue () + ""); +} else { +throw ex; +} +} +}); +Clazz.defineMethod (c$, "setValue", +function (value) { +this.slider.setValue (value); +}, "~N"); +Clazz.defineMethod (c$, "getValue", +function () { +return Integer.parseInt (this.valueField.getText ()); +}); +Clazz.defineMethod (c$, "jbInit", +($fz = function () { +this.setLayout (this.borderLayout2); +this.slider.setBackground (java.awt.Color.white); +this.slider.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.slider.setOrientation (0); +this.valueField.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.valueField.setText (" "); +this.valueField.addActionListener (this); +this.valueField.setColumns (3); +this.label.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.label.setText (jalview.util.MessageManager.getString ("label.set_this_label_text")); +this.jPanel1.setLayout (this.borderLayout1); +this.jPanel2.setLayout (this.flowLayout1); +this.applyButton.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.applyButton.setLabel (jalview.util.MessageManager.getString ("action.apply")); +this.applyButton.addActionListener (this); +this.undoButton.setEnabled (false); +this.undoButton.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.undoButton.setLabel (jalview.util.MessageManager.getString ("action.undo")); +this.undoButton.addActionListener (this); +this.allGroupsCheck.setEnabled (false); +this.allGroupsCheck.setFont ( new java.awt.Font ("Verdana", 0, 11)); +this.allGroupsCheck.setLabel (jalview.util.MessageManager.getString ("action.apply_threshold_all_groups")); +this.allGroupsCheck.setName (jalview.util.MessageManager.getString ("action.apply_all_groups")); +this.setBackground (java.awt.Color.white); +this.setForeground (java.awt.Color.black); +this.jPanel2.add (this.label, null); +this.jPanel2.add (this.applyButton, null); +this.jPanel2.add (this.undoButton, null); +this.jPanel2.add (this.allGroupsCheck); +this.jPanel1.add (this.valueField, "East"); +this.jPanel1.add (this.slider, "Center"); +this.add (this.jPanel1, "South"); +this.add (this.jPanel2, "Center"); +}, $fz.isPrivate = true, $fz)); +Clazz.defineMethod (c$, "applyButton_actionPerformed", +function () { +}); +Clazz.defineMethod (c$, "undoButton_actionPerformed", +function () { +}); +Clazz.overrideMethod (c$, "mousePressed", +function (evt) { +}, "java.awt.event.MouseEvent"); +Clazz.overrideMethod (c$, "mouseReleased", +function (evt) { +this.ap.paintAlignment (true); +}, "java.awt.event.MouseEvent"); +Clazz.overrideMethod (c$, "mouseClicked", +function (evt) { +}, "java.awt.event.MouseEvent"); +Clazz.overrideMethod (c$, "mouseEntered", +function (evt) { +}, "java.awt.event.MouseEvent"); +Clazz.overrideMethod (c$, "mouseExited", +function (evt) { +}, "java.awt.event.MouseEvent"); +c$.$SliderPanel$1$ = function () { +Clazz.pu$h (); +c$ = Clazz.declareAnonymous (jalview.appletgui, "SliderPanel$1", java.awt.event.WindowAdapter); +Clazz.overrideMethod (c$, "windowClosing", +function (e) { +jalview.appletgui.SliderPanel.conservationSlider = null; +}, "java.awt.event.WindowEvent"); +c$ = Clazz.p0p (); +}; +c$.$SliderPanel$2$ = function () { +Clazz.pu$h (); +c$ = Clazz.declareAnonymous (jalview.appletgui, "SliderPanel$2", java.awt.event.WindowAdapter); +Clazz.overrideMethod (c$, "windowClosing", +function (e) { +jalview.appletgui.SliderPanel.PIDSlider = null; +}, "java.awt.event.WindowEvent"); +c$ = Clazz.p0p (); +}; +Clazz.defineStatics (c$, +"conservationSlider", null, +"PIDSlider", null); +});