Re: Dashed Lines in IsoContour

Hi Astrid,

> Astrid Wonner wrote:
> 
> Hello everybody!
> 
> I have a  DisplayImplJ2D with a IsoContour-ScalarMap. Now I want to
> show the negative lines (actually shown blue) as dashed lines. Is
> there a chance to do it?

Absolutely! But because it's saturday, I'm not going to look it up in
the javadoc for you ;-)

Instead, have a look at the tutorial, section 4.2

http://www.ssec.wisc.edu/~billh/tutorial/s4/Section4.html#section4_2

where the ContourWidget is introduced. After you've created and added an
iso-contour map to your display, create the widget with

contourWid = new ContourWidget( isoMap  );

and add it to your JFrame or to your favourite GUI component. On the
widget you should first click on the dashed-lines-below-base checkbox,
then set the base value to zero (you said dashed values are negative)
and that's about it.

Of course there's a way to do the same by calling the appropriate
methods, but I'm not acquainted with them. Anyway, I recommend using the
widget.

Cheers,

Ugo


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