Package mgui.resources.icons
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 theIcon
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 theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Returns:
-
getName
public java.lang.String getName() -
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<NamedIcon>
-