Re: 20000817: swapping black and white in a display?

Hi Henner,

> >can somebody give me a hint how i can get a white background and black axes
> >in a DisplayImpl?
> >up to now i only tried setting the background of displayImpl.getComponent()
> >to black but that didn't work.
> 
> You can change the colors of the background using
> DisplayRenderer.setBackgroundColor() method.  You can get the
> DisplayRenderer using display.getDisplayRenderer().  You might
> need to change the cursor color also (DisplayRenderer.setCursorColor())
> to get the cursor visible and also the readouts on the display if
> you set the bacground color to white.
> 
> You could also get the RendererControl for the renderer
> (display.getDisplayRenderer().getRendererControl) and use it's
> methods to change the characteristics of the display.
> 
> Test53 and Test54 in the examples directory show examples of
> changing the background, box and cursor colors.

To get black axis scales, use:

  float[] color = {0.0f, 0.0f, 0.0f};
  xmap.setScaleColor(color);
  etc for ScalarMaps to XAxis, YAxis and ZAxis

Cheers,
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


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