[gui4gl-commits] [CVS gui4gl] Added comments.

  • From: cvsd@xxxxxxxxxxxxxxxxxxxx
  • To: gui4gl-commits@xxxxxxxxxxxxx
  • Date: Wed, 5 May 2004 00:00:55 +0200

Commit in gui4gl/src/org/codejive/gui4gl/widgets on MAIN
Image.java+16-61.2 -> 1.3
Added comments.

gui4gl/src/org/codejive/gui4gl/widgets
Image.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- Image.java	17 Mar 2004 00:44:59 -0000	1.2
+++ Image.java	4 May 2004 22:00:55 -0000	1.3
@@ -24,26 +24,33 @@
 import org.codejive.utils4gl.textures.Texture;
 
 /**
+ * This widget simply displays an image using a single non-repeating Texture.
  * @author gertjan
  * @version $Revision$
  */
 public class Image extends Widget {
 	private Texture m_image;
 	
-	
+	/**
+	 * Constructs a new Image using the given Texture
+	 * @param _image The Texture to use for the image
+	 */
 	public Image(Texture _image) {
-		this(null, _image);
-	}
-
-	public Image(String _sName, Texture _image) {
-		super(_sName);
 		m_image = _image;
 	}
 	
+	/**
+	 * Returns the Texture that is currently being displayed
+	 * @return The curent Texture being displayed
+	 */
 	public Texture getImage() {
 		return m_image;
 	}
 	
+	/**
+	 * Sets the Texture to be displayed
+	 * @param _image The Texture to be displayed
+	 */
 	public void setTexture(Texture _image) {
 		m_image = _image;
 	}
@@ -51,6 +58,9 @@
 }
 /*
  * $Log$
+ * Revision 1.3  2004/05/04 22:00:55  tako
+ * Added comments.
+ *
  * Revision 1.2  2004/03/17 00:44:59  tako
  * Image widget now uses the new Texture system as well.
  *
CVSspam 0.2.8

Other related posts:

  • » [gui4gl-commits] [CVS gui4gl] Added comments.