From: Martin F. <mar...@us...> - 2008-04-02 20:28:18
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26894/src/games/stendhal/client/gui Modified Files: IDraggable.java Log Message: extend draggable interface to return the image size Index: IDraggable.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/IDraggable.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IDraggable.java 30 Mar 2008 21:35:30 -0000 1.1 --- IDraggable.java 2 Apr 2008 20:28:20 -0000 1.2 *************** *** 18,21 **** --- 18,22 ---- package games.stendhal.client.gui; + import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; *************** *** 46,52 **** /** * Draws the dragged item. */ ! void drawDragged(Graphics g); /** --- 47,60 ---- /** + * Get the image size of the dragged object. + * + * @return The image size. + */ + Dimension getSize(); + + /** * Draws the dragged item. */ ! void drawDragged(Graphics g, Dimension size); /** |