/* * Created on Jul 15, 2004 */ package treeDraw; import java.awt.Graphics2D; /** * @author dickey */ public interface IDrawableNode extends INode { /** Draw the node. This parameter list is chosen to be * compatible with the Icon interface, and for future flexibility. * * @param c The component on which the drawing takes place. * You can use this to determine the size of the drawing area. * @param g The graphics context. This is the object on which * you make actual drawing calls, like g.draw(Shape), etc. * @param x Location where the drawing should be relative to the * component (you can probably ignore this). * @param y Location where the drawing show be relative to the component * (you can probably ignore this). */ void paint(java.awt.Component c, Graphics2D g, int x, int y); }