Class CbusBeanRenderer

java.lang.Object
jmri.jmrix.can.cbus.swing.eventtable.CbusBeanRenderer

public class CbusBeanRenderer
extends 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 Details

  • Method Details

    • getBeanIcon

      public ImageIcon getBeanIcon​(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.