Class RosterIconFactory

  • All Implemented Interfaces:

    public class RosterIconFactory
    extends java.lang.Object
    implements InstanceManagerAutoDefault
    Generate and cache icons at a given height. A managed instance will generate icons for a default height, while unmanaged instances can be created to generate icons at different heights.
    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    • Field Summary

      Modifier and Type Field Description
      (package private) java.util.HashMap<java.lang.String,​javax.swing.ImageIcon> icons  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.ImageIcon getIcon​(java.lang.String id)  
      javax.swing.ImageIcon getIcon​(RosterEntry re)  
      • Methods inherited from class java.lang.Object

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

      • icons

        java.util.HashMap<java.lang.String,​javax.swing.ImageIcon> icons
    • Method Detail

      • getIcon

        public javax.swing.ImageIcon getIcon​(java.lang.String id)