Class IconNumberSpectrumViewer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
fr.esrf.tangoatk.widget.attribute.IconNumberSpectrumViewer
All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.ISpectrumListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class IconNumberSpectrumViewer extends JPanel implements fr.esrf.tangoatk.core.ISpectrumListener
Author:
root
See Also:
  • Field Details

    • iconViewers

      protected JLabel[] iconViewers
    • colors

      protected Color[] colors
    • columns

      protected int columns
    • icons

      protected Icon[] icons
    • invalidIcon

      protected Icon invalidIcon
    • model

      protected fr.esrf.tangoatk.core.INumberSpectrum model
    • rows

      protected int rows
    • texts

      protected String[][] texts
    • oldValue

      protected double[] oldValue
    • horizontalAlignment

      protected int horizontalAlignment
    • font

      protected Font font
    • spectrumDimension

      protected int spectrumDimension
  • Constructor Details

    • IconNumberSpectrumViewer

      public IconNumberSpectrumViewer()
      Creates new form IconNumberSpectrumViewer
  • Method Details

    • initComponents

      protected void initComponents()
      This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
    • errorChange

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

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

      protected void updateIcon(JLabel icon, int val)
    • updateText

      protected void updateText(JLabel icon, String[] texts, int val)
    • updateColor

      protected void updateColor(JLabel icon, int val)
    • spectrumChange

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

      public Color[] getColors()
      Get the value of colors.
      Returns:
      value of colors.
    • setColors

      public void setColors(Color[] v)
      Set the value of colors.
      Parameters:
      v - Value to assign to colors.
    • getTexts

      public String[][] getTexts()
      Get the value of texts.
      Returns:
      value of texts.
    • setTexts

      public void setTexts(String[][] v)
      Set the value of texts.
      Parameters:
      v - Value to assign to texts.
    • getInvalidIcon

      public Icon getInvalidIcon()
      Get the value of invalidIcon.
      Returns:
      value of invalidIcon.
    • setInvalidIcon

      public void setInvalidIcon(Icon v)
      Set the value of invalidIcon.
      Parameters:
      v - Value to assign to invalidIcon.
    • getColumns

      public int getColumns()
      Get the value of columns.
      Returns:
      value of columns.
    • setColumns

      public void setColumns(int v)
      Set the value of columns.
      Parameters:
      v - Value to assign to columns.
    • getRows

      public int getRows()
      Get the value of rows.
      Returns:
      value of rows.
    • setRows

      public void setRows(int v)
      Set the value of rows.
      Parameters:
      v - Value to assign to rows.
    • getModel

      public fr.esrf.tangoatk.core.INumberSpectrum getModel()
      Get the value of model.
      Returns:
      value of model.
    • setModel

      public void setModel(fr.esrf.tangoatk.core.INumberSpectrum v)
      Set the value of model.
      Parameters:
      v - Value to assign to model.
    • setIconBorders

      public void setIconBorders(Border border)
    • getIconBorders

      public Border getIconBorders()
    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • getFont

      public Font getFont()
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
    • setHorizontalAlignment

      public void setHorizontalAlignment(int horizontalAlignment)
    • getHorizontalAlignment

      public int getHorizontalAlignment()
    • getIcons

      public Icon[] getIcons()
      Get the value of icons.
      Returns:
      value of icons.
    • setIcons

      public void setIcons(Icon[] v)
      Set the value of icons.
      Parameters:
      v - Value to assign to icons.
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception