dsto.dfc.swing.icons
Class SimpleIconic

java.lang.Object
  extended by dsto.dfc.swing.icons.SimpleIconic
All Implemented Interfaces:
Iconic

public class SimpleIconic
extends Object
implements Iconic

Simple Iconic data class.

Version:
$Revision$
Author:
Matthew Phillips

Field Summary
 
Fields inherited from interface dsto.dfc.swing.icons.Iconic
NULL_ICON
 
Constructor Summary
SimpleIconic(String name)
           
SimpleIconic(String name, Icon icon)
           
SimpleIconic(String name, Icon icon, Icon largeIcon)
           
 
Method Summary
 Icon getIcon()
          The small (16x16) icon for the object.
 Icon getLargeIcon()
          The large (32x32) icon.
 String getName()
          The human-readable name for the object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleIconic

public SimpleIconic(String name)

SimpleIconic

public SimpleIconic(String name,
                    Icon icon)

SimpleIconic

public SimpleIconic(String name,
                    Icon icon,
                    Icon largeIcon)
Method Detail

getName

public String getName()
Description copied from interface: Iconic
The human-readable name for the object.

Specified by:
getName in interface Iconic

getIcon

public Icon getIcon()
Description copied from interface: Iconic
The small (16x16) icon for the object. May be null if no small icon is available.

Specified by:
getIcon in interface Iconic

getLargeIcon

public Icon getLargeIcon()
Description copied from interface: Iconic
The large (32x32) icon.

Specified by:
getLargeIcon in interface Iconic
Returns:
The large icon, or null if no large icon is available.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 Commonwealth of Australia