Class CbusBeanRenderer


  • public class CbusBeanRenderer
    extends java.lang.Object
    Renderer for Bean Icons, formatting them to similar height for use in tables. Not a permanent location for this class, location likely to change in near future.
    • Constructor Summary

      Constructors 
      Constructor Description
      CbusBeanRenderer​(int iconHeight)
      Create a new Renderer Instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.ImageIcon getBeanIcon​(java.lang.String beanTypeChar, int beanState)
      Get the Bean Icon, scaled to standard height.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CbusBeanRenderer

        public CbusBeanRenderer​(int iconHeight)
        Create a new Renderer Instance.
        Parameters:
        iconHeight - Target height of Icons
    • Method Detail

      • getBeanIcon

        public javax.swing.ImageIcon getBeanIcon​(java.lang.String beanTypeChar,
                                                 int beanState)
        Get the Bean Icon, scaled to standard height.
        Parameters:
        beanTypeChar - Standard Bean Type, currently TSL supported.
        beanState - Bean State
        Returns:
        Image of the Bean, else null ( with error log ) if unavailable.