Class ImagenPorValor

All Implemented Interfaces:
ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, spgn.pgn.gui.cliente.graficos.ElementoAnimado

public class ImagenPorValor extends ComponenteSA implements ComponentListener
Clase que muestra una imagen segun el valor numerico de una tag
Author:
Ruben Palomino
See Also:
  • Constructor Details

    • ImagenPorValor

      public ImagenPorValor()
      Constructor
  • Method Details

    • getValor0

      public int getValor0()
      Devuelve el valor del indice 0
      Returns:
      the valor0
    • setValor0

      public void setValor0(int valor0)
      Asigna el valor del indice 0
      Parameters:
      valor0 - the valor0 to set
    • getValor1

      public int getValor1()
      * Devuelve el valor del indice 1
      Returns:
      the valor1
    • setValor1

      public void setValor1(int valor1)
      Asigna el valor del indice 1
      Parameters:
      valor1 - the valor1 to set
    • getValor2

      public int getValor2()
      * Devuelve el valor del indice 2
      Returns:
      the valor2
    • setValor2

      public void setValor2(int valor2)
      Asigna el valor del indice 2
      Parameters:
      valor2 - the valor2 to set
    • getValor4

      public int getValor4()
      Devuelve el valor del indice 4
      Returns:
      the valor4
    • setValor4

      public void setValor4(int valor4)
      Asigna el valor del indice 4
      Parameters:
      valor4 - the valor4 to set
    • getValor3

      public int getValor3()
      Devuelve el valor del indice 5
      Returns:
      the valor3
    • setValor3

      public void setValor3(int valor3)
      Asigna el valor del indice 3
      Parameters:
      valor3 - the valor3 to set
    • getValor5

      public int getValor5()
      Devuelve el valor del indice 5
      Returns:
      the valor5
    • setValor5

      public void setValor5(int valor5)
      Asigna el valor del indice 5
      Parameters:
      valor5 - the valor5 to set
    • getValor6

      public int getValor6()
      Devuelve el valor del indice 6
      Returns:
      the valor6
    • setValor6

      public void setValor6(int valor6)
      Asigna el valor del indice 6
      Parameters:
      valor6 - the valor6 to set
    • getValor7

      public int getValor7()
      Devuelve el valor del indice 7
      Returns:
      the valor7
    • setValor7

      public void setValor7(int valor7)
      Asigna el valor del indice 7
      Parameters:
      valor7 - the valor7 to set
    • getValor8

      public int getValor8()
      Devuelve el valor del indice 8
      Returns:
      the valor8
    • setValor8

      public void setValor8(int valor8)
      Asigna el valor del indice 8
      Parameters:
      valor8 - the valor8 to set
    • getValor9

      public int getValor9()
      Devuelve el valor del indice 9
      Returns:
      the valor9
    • setValor9

      public void setValor9(int valor9)
      Asigna el valor del indice 9
      Parameters:
      valor9 - the valor9 to set
    • getIcon00

      public Icon getIcon00()
      Devuelve el icono para el valor 0
      Returns:
      the icon0
    • setIcon00

      public void setIcon00(Icon icon0)
      Asigna el icono del valor 0
      Parameters:
      icon0 - the icon0 to set
    • getIcon01

      public Icon getIcon01()
      Devuelve el icono para el valor1
      Returns:
      the icon1
    • setIcon01

      public void setIcon01(Icon icon1)
      Asigna el icono del valor 1
      Parameters:
      icon1 - the icon1 to set
    • getIcon02

      public Icon getIcon02()
      Devuelve el icono para el valor 2
      Returns:
      the icon2
    • setIcon02

      public void setIcon02(Icon icon2)
      Asigna el icono del valor 2
      Parameters:
      icon2 - the icon2 to set
    • getIcon03

      public Icon getIcon03()
      Devuelve el icono para el valor 3
      Returns:
      the icon3
    • setIcon03

      public void setIcon03(Icon icon3)
      Asigna el icono del valor 3
      Parameters:
      icon3 - the icon3 to set
    • getIcon04

      public Icon getIcon04()
      Devuelve el icono para el valor 4
      Returns:
      the icon4
    • setIcon04

      public void setIcon04(Icon icon4)
      Asigna el icono del valor 4
      Parameters:
      icon4 - the icon4 to set
    • getIcon05

      public Icon getIcon05()
      Devuelve el icono para el valor 5
      Returns:
      the icon5
    • setIcon05

      public void setIcon05(Icon icon5)
      Asigna el icono del valor 5
      Parameters:
      icon5 - the icon5 to set
    • getIcon06

      public Icon getIcon06()
      Devuelve el icono para el valor 6
      Returns:
      the icon6
    • setIcon06

      public void setIcon06(Icon icon6)
      Asigna el icono del valor 6
      Parameters:
      icon6 - the icon6 to set
    • getIcon07

      public Icon getIcon07()
      Devuelve el icono para el valor 7
      Returns:
      the icon7
    • setIcon07

      public void setIcon07(Icon icon7)
      Asigna el icono del valor 7
      Parameters:
      icon7 - the icon7 to set
    • getIcon08

      public Icon getIcon08()
      Devuelve el icono para el valor 8
      Returns:
      the icon8
    • setIcon08

      public void setIcon08(Icon icon8)
      Asigna el icono del valor 8
      Parameters:
      icon8 - the icon8 to set
    • getIcon09

      public Icon getIcon09()
      Devuelve el icono para el valor 9
      Returns:
      the icon9
    • setIcon09

      public void setIcon09(Icon icon9)
      Asigna el icono del valor 9
      Parameters:
      icon9 - the icon9 to set
    • setOpaque

      public void setOpaque(boolean opaque)
      Overrides:
      setOpaque in class ComponenteSA
    • paintComponent

      public void paintComponent(Graphics g)
    • setTag

      public void setTag(String tag)
      Devuelve el path de la Tag que controla el cambio de imagen
      Parameters:
      tag - the tag to set
    • getTag

      public String getTag()
      Devuelve el path de la tag que controla el cambio de imagen
      Returns:
      el path de la tag
    • setValor

      public void setValor(spgn.pgn.opc.tag.ValorTag vt)
      Metodo al que llama el sincronizador grafico para informar de un cambio en el valor de la tag
      Parameters:
      vt - valorTag
      See Also:
      • ValorTag
    • setIconDefecto

      public void setIconDefecto(Icon icon)
      Asocia el icono al control
      Parameters:
      icon - el icono
    • isExpandido

      public boolean isExpandido()
      Devuelve si esta activa la propiedad de expandido
      Returns:
      the expandido
    • setExpandido

      public void setExpandido(boolean expandido)
      Activa o desactiva la propiedad de expandido
      Parameters:
      expandido - the expandido to set
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener
    • componentResized

      public void componentResized(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Specified by:
      componentShown in interface ComponentListener