Class IconFactory


  • public final class IconFactory
    extends java.lang.Object
    Holds icons used by Java auto-completion.
    Version:
    1.0
    • Constructor Detail

      • IconFactory

        private IconFactory()
    • Method Detail

      • get

        public static IconFactory get()
        Returns the singleton instance of this class.
        Returns:
        The singleton instance.
      • getIcon

        public javax.swing.Icon getIcon​(java.lang.String key,
                                        boolean deprecated)
        Returns a known icon, possibly marked as deprecated.
        Parameters:
        key - The icon to retrieve.
        deprecated - Whether to render it as deprecated.
        Returns:
        The icon.
        See Also:
        getIcon(String), getIcon(IconData)
      • getIcon

        public javax.swing.Icon getIcon​(IconFactory.IconData data)
        Creates and returns an icon based on the properties provided.
        Parameters:
        data - Properties about the icon to create.
        Returns:
        The icon.
        See Also:
        getIcon(String)
      • loadIcon

        private javax.swing.Icon loadIcon​(java.lang.String name)