Class NumberSpectrumStateBarChartViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IDevStateSpectrumListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.ISpectrumListener, fr.esrf.tangoatk.core.IStringSpectrumListener, IJLChartListener, ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener

public class NumberSpectrumStateBarChartViewer extends JLChart implements IJLChartListener, fr.esrf.tangoatk.core.ISpectrumListener, fr.esrf.tangoatk.core.IDevStateSpectrumListener, fr.esrf.tangoatk.core.IStringSpectrumListener, PropertyChangeListener
Author:
poncet
See Also:
  • Field Details

  • Constructor Details

    • NumberSpectrumStateBarChartViewer

      public NumberSpectrumStateBarChartViewer()
  • Method Details

    • getDefaultBarChartColor

      public Color getDefaultBarChartColor()
    • setDefaultBarChartColor

      public void setDefaultBarChartColor(Color col)
    • getBarChartFillMethod

      public int getBarChartFillMethod()
    • setBarChartFillMethod

      public void setBarChartFillMethod(int fillMethod)
    • getDrawOnNaN

      public boolean getDrawOnNaN()
    • setDrawOnNaN

      public void setDrawOnNaN(boolean don)
    • getMinAlarmVisible

      public boolean getMinAlarmVisible()
    • setMinAlarmVisible

      public void setMinAlarmVisible(boolean vis)
    • getMaxAlarmVisible

      public boolean getMaxAlarmVisible()
    • setMaxAlarmVisible

      public void setMaxAlarmVisible(boolean vis)
    • getMinAlarmColor

      public Color getMinAlarmColor()
    • setMinAlarmColor

      public void setMinAlarmColor(Color macol)
    • getMaxAlarmColor

      public Color getMaxAlarmColor()
    • setMaxAlarmColor

      public void setMaxAlarmColor(Color macol)
    • getMinAlarmStyle

      public int getMinAlarmStyle()
    • setMinAlarmStyle

      public void setMinAlarmStyle(int maStyle)
    • getMaxAlarmStyle

      public int getMaxAlarmStyle()
    • setMaxAlarmStyle

      public void setMaxAlarmStyle(int maStyle)
    • getModel

      public fr.esrf.tangoatk.core.INumberSpectrum getModel()
      getModel Gets the numberspectrum model.
      Returns:
      the numberspectrum model.
    • setModel

      public void setModel(fr.esrf.tangoatk.core.INumberSpectrum ins)
      setModel Sets the numberspectrum model.
      Parameters:
      ins - the numberspectrum attribute to assign to model.
    • clearNumberModel

      public void clearNumberModel()
      clearNumberModel removes the numberspectrum model.
    • getStatesModel

      public fr.esrf.tangoatk.core.IDevStateSpectrum getStatesModel()
      getStatesModel Gets the devState spectrum model.
      Returns:
      the devState spectrum model.
    • setModel

      public void setModel(fr.esrf.tangoatk.core.IDevStateSpectrum idss)
      setModel Set the devstate spectrum model.
      Parameters:
      idss - the devstate spectrum attribute to assign to model.
    • clearStateModel

      public void clearStateModel()
      clearNumberModel removes the numberspectrum model.
    • getNamesModel

      public fr.esrf.tangoatk.core.IStringSpectrum getNamesModel()
      getNamesModel Gets the string spectrum model.
      Returns:
      the string spectrum model.
    • setModel

      public void setModel(fr.esrf.tangoatk.core.IStringSpectrum iss)
      setModel Set the string spectrum model.
      Parameters:
      iss - the string spectrum attribute to assign to model.
    • clearNameModel

      public void clearNameModel()
      clearNameModel removes the string spectrum model.
    • clickOnChart

      public String[] clickOnChart(JLChartEvent evt)
      Description copied from interface: IJLChartListener
      Called when the user click on the chart
      Specified by:
      clickOnChart in interface IJLChartListener
      Parameters:
      evt - Event object (containing click inforamtion)
      Returns:
      A set of string to display in the value tooltip. Does not display the tooltip if an empty array is returned. Keep default behavior when null is returned
    • setXAxisAffineTransform

      public void setXAxisAffineTransform(double a0, double a1)
      Sets an affine transform to the X axis. This allows to transform spectra index displayed on X axis.
      Parameters:
      a0 - a0 Coefficient
      a1 - a1 Coefficient
    • spectrumChange

      public void spectrumChange(fr.esrf.tangoatk.core.NumberSpectrumEvent nse)
      Specified by:
      spectrumChange in interface fr.esrf.tangoatk.core.ISpectrumListener
    • devStateSpectrumChange

      public void devStateSpectrumChange(fr.esrf.tangoatk.core.DevStateSpectrumEvent dsse)
      Specified by:
      devStateSpectrumChange in interface fr.esrf.tangoatk.core.IDevStateSpectrumListener
    • stringSpectrumChange

      public void stringSpectrumChange(fr.esrf.tangoatk.core.StringSpectrumEvent evt)
      Specified by:
      stringSpectrumChange in interface fr.esrf.tangoatk.core.IStringSpectrumListener
    • refreshAlarmDv

      public void refreshAlarmDv(JLDataView alarmDv, double alarmValue)
    • stateChange

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

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

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

      public static void main(String[] args)
      Parameters:
      args - the command line arguments