de.grogra.icon
Class IconSourceBase

java.lang.Object
  extended by de.grogra.icon.IconSourceBase
All Implemented Interfaces:
IconSource
Direct Known Subclasses:
IconOverlay

public abstract class IconSourceBase
extends java.lang.Object
implements IconSource


Constructor Summary
IconSourceBase()
           
 
Method Summary
 Icon getIcon(java.awt.Dimension size, int state)
           
protected abstract  Icon getIconImpl(java.awt.Dimension size, int state)
           
 java.awt.Dimension getPreferredIconSize(boolean small)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconSourceBase

public IconSourceBase()
Method Detail

getIcon

public final Icon getIcon(java.awt.Dimension size,
                          int state)
Specified by:
getIcon in interface IconSource

getIconImpl

protected abstract Icon getIconImpl(java.awt.Dimension size,
                                    int state)

getPreferredIconSize

public java.awt.Dimension getPreferredIconSize(boolean small)
Specified by:
getPreferredIconSize in interface IconSource