Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 1.04 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Java Android, putting hint/description on object methods/functions
  2. /**
  3.  * This method returns the x value.
  4.  *
  5.  * @return the x value
  6.  */
  7. public int getValue()
  8. {
  9.     return x;
  10. }
  11.        
  12. /**
  13.  * Returns an Image object that can then be painted on the screen.
  14.  * The url argument must specify an absolute {@link URL}. The name
  15.  * argument is a specifier that is relative to the url argument.
  16.  * <p>
  17.  * This method always returns immediately, whether or not the
  18.  * image exists. When this applet attempts to draw the image on
  19.  * the screen, the data will be loaded. The graphics primitives
  20.  * that draw the image will incrementally paint on the screen.
  21.  *
  22.  * @param  url  an absolute URL giving the base location of the image
  23.  * @param  name the location of the image, relative to the url argument
  24.  * @return      the image at the specified URL
  25.  * @see         Image
  26.  */
  27.  public Image getImage(URL url, String name) {
  28.         try {
  29.             return getImage(new URL(url, name));
  30.         } catch (MalformedURLException e) {
  31.             return null;
  32.         }
  33.  }