Class NumberScalarViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.INumberScalarListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener

public class NumberScalarViewer extends WheelSwitch implements fr.esrf.tangoatk.core.INumberScalarListener, PropertyChangeListener
A class to display a scalar aligned verticaly to the NumberScalarWheelEditor
See Also:
  • Constructor Details

    • NumberScalarViewer

      public NumberScalarViewer()
  • Method Details

    • getBackgroundColor

      public Color getBackgroundColor()
      Returns:
      the current background color of this viewer. Color used for the VALID attribute quality state
    • setBackgroundColor

      public void setBackgroundColor(Color bg)
      Sets the 'VALID' background color of this viewer. Color used for the VALID attribute quality state.
      Parameters:
      bg - Background color.
      See Also:
    • setAlarmEnabled

      public void setAlarmEnabled(boolean b)
      Enables or disables alarm background (represents the attribute quality factor).
      Parameters:
      b - True to enable alarm.
      See Also:
    • isAlarmEnabled

      public boolean isAlarmEnabled()
      Determines whether the background color is overrided by the quality factor.
      Returns:
      Alarm enabled flag
      See Also:
    • getModel

      public fr.esrf.tangoatk.core.INumberScalar getModel()
    • setModel

      public void setModel(fr.esrf.tangoatk.core.INumberScalar m)
    • numberScalarChange

      public void numberScalarChange(fr.esrf.tangoatk.core.NumberScalarEvent evt)
      Specified by:
      numberScalarChange in interface fr.esrf.tangoatk.core.INumberScalarListener
    • errorChange

      public void errorChange(fr.esrf.tangoatk.core.ErrorEvent e)
      Specified by:
      errorChange in interface fr.esrf.tangoatk.core.IErrorListener
    • stateChange

      public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent e)
      Specified by:
      stateChange in interface fr.esrf.tangoatk.core.IAttributeStateListener
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • main

      public static void main(String[] args)