Class CbusBeanRenderer
- java.lang.Object
-
- jmri.jmrix.can.cbus.swing.eventtable.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.
-
-
-
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.
-
-