Class NamedIcon

java.lang.Object
mgui.resources.icons.NamedIcon
All Implemented Interfaces:
java.lang.Comparable<NamedIcon>, IconObject

public class NamedIcon
extends java.lang.Object
implements IconObject, java.lang.Comparable<NamedIcon>
Specifies a named icon.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Summary

    Constructors
    Constructor Description
    NamedIcon​(java.lang.String name, javax.swing.Icon icon)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(NamedIcon icon)  
    java.lang.String getName()  
    javax.swing.Icon getObjectIcon()
    Returns the Icon associated with this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NamedIcon

      public NamedIcon​(java.lang.String name, javax.swing.Icon icon)
  • Method Details

    • getObjectIcon

      public javax.swing.Icon getObjectIcon()
      Description copied from interface: IconObject
      Returns the Icon associated with this object.
      Specified by:
      getObjectIcon in interface IconObject
      Returns:
    • getName

      public java.lang.String getName()
    • compareTo

      public int compareTo​(NamedIcon icon)
      Specified by:
      compareTo in interface java.lang.Comparable<NamedIcon>