NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: DefaultDisplayRendererJ2D with param doesn't compile

Hi Charles,

> Recently here I was advised to pass my own mouse handler class to
> a DisplayRenderer by using the parametric constructor 
> DefaultDisplayRendererJ2D(MyMouse.
> class). Although the javadoc for class DefaultDisplayRendererJ2D
> shows such a constructor, I get a compile error "Wrong number of
> arguments in constructor", and inspection of the source code for
> this class shows that only the default, parameterless constructor
> exists.

Perhaps you have an old version of source or old visad.jar.
I just downloaded from our ftp server and found the following
constructor:

  /**
   * @param mbClass - sub Class of MouseBehaviorJ2D
  */
  public DefaultDisplayRendererJ2D (Class mbj2dClass) {
    super();
    mouseBehaviorJ2DClass = mbj2dClass;
  }

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: