Package xal.app.knobs

Class KnobControl

    • Field Detail

      • KNOB

        protected final Knob KNOB
        the knob to edit
      • KNOB_WHEEL

        protected final xal.extension.widgets.swing.Wheelswitch KNOB_WHEEL
        wheel for setting the current knob value
      • KNOB_SLIDER

        protected final JSlider KNOB_SLIDER
        slider displaying the current setting as a fraction of the knob's range
      • READY_INDICATOR

        protected final JButton READY_INDICATOR
        indicator of whether the knob is ready
      • _isSynching

        protected volatile boolean _isSynching
        determine if the control is synching
    • Constructor Detail

      • KnobControl

        public KnobControl​(Knob knob)
        Constructor
    • Method Detail

      • buildView

        protected void buildView()
        build view
      • updateReadyStatus

        protected void updateReadyStatus()
        update connection status
      • createKnobWheel

        protected xal.extension.widgets.swing.Wheelswitch createKnobWheel()
        create the knob wheel
      • createZeroButton

        protected JButton createZeroButton()
        create the zero button
      • resync

        protected void resync​(boolean forceLimitsUpdate)
        resynchronize the control with the knob settings
      • nameChanged

        public void nameChanged​(Knob knob,
                                String newName)
        event indicating that the specified knob's name has changed
        Specified by:
        nameChanged in interface KnobListener
      • limitsChanged

        public void limitsChanged​(Knob knob,
                                  double lowerLimit,
                                  double upperLimit)
        event indicating that the knob's limits have changed
        Specified by:
        limitsChanged in interface KnobListener
      • currentSettingChanged

        public void currentSettingChanged​(Knob knob,
                                          double value)
        event indicating that the knob's current value setting has changed
        Specified by:
        currentSettingChanged in interface KnobListener
      • valueSettingPublished

        public void valueSettingPublished​(Knob knob)
        event indicating that the knob's most previously pending set operation has completed
        Specified by:
        valueSettingPublished in interface KnobListener