Class CbusBeanRenderer
java.lang.Object
jmri.jmrix.can.cbus.swing.eventtable.CbusBeanRenderer
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 -
Method Summary
Modifier and TypeMethodDescriptiongetBeanIcon(String beanTypeChar, int beanState) Get the Bean Icon, scaled to standard height.
-
Constructor Details
-
CbusBeanRenderer
Create a new Renderer Instance.- Parameters:
iconHeight- Target height of Icons
-
-
Method Details
-
getBeanIcon
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.
-