samples/extensibleicon/src/org/apidesign/extensibleicon/ExtIcon.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:53:51 +0200
changeset 89 06f2e2a3d986
permissions -rw-r--r--
review2: ExtIcon example used to demonstrate the beauty of query pattern. two sections merged into one, a bit of reordering. Please review.
     1 package org.apidesign.extensibleicon;
     2 
     3 import java.awt.Component;
     4 import java.awt.Graphics;
     5 import javax.swing.Icon;
     6 import org.openide.util.Lookup;
     7 
     8 // BEGIN: ext.Icon
     9 public interface ExtIcon extends Icon, Lookup.Provider {
    10     public void paintIcon(Component c, Graphics g, int x, int y);
    11     public int getIconWidth();
    12     public int getIconHeight();
    13     
    14     public Lookup getLookup();
    15 }
    16 // END: ext.Icon