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

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

Good luck,
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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