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: Change colors in Display

  • To: "Tolga Sakman" <tsakman@xxxxxxxxxxx>
  • Subject: Re: Change colors in Display
  • From: Mathias Stü <AtzeS@xxxxxx>
  • Date: Sat, 16 Jun 2001 00:45:51 +0200 (MEST)
Hi Tolga,

Try DisplayRenderer.setBackgroundColor(...) (DisplayRendererJ2D,
DisplayRendererJ3D) and DisplayRenderer.setForegroundColor(...) to change the
background- or foregroundcolor of your display. There is also a 
setBoxColor(...) in
DisplayRenderer to set the color of the box. You can get the DisplayRenderer via
DisplayImpl.getDisplayRenderer(). If you want to change the color of your
axis use the ScalarMap.setScaleColor(...).

Cheers, Mathias

> When you use DisplayImplJ2D, by default the background is black and the 
> foreground is white. How do you change the default colors? I checked out 
> the docs but could not see a method to change the colors. Can anybody 
> give a hint?
> 
> Thanks,
> 
> Tolga
> 
> < < <  t o l g a : | | : s a k m a n  > > >
> engineer, cfd consultant
> analytic & computational research, inc -- acri
> los angeles, ca
> 310-471-3023
> tolga.sakman@xxxxxxxxxxx || www.acricfd.com
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Verdana Ref" color=#000080 size=2>When you use
DisplayImplJ2D, 
by default the background is black and the foreground is white. How do
you 
change the default colors? I checked out the docs but could not see a
method to 
change the colors. Can anybody give a hint?</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2>Thanks,</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2>Tolga</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080 size=2><BR>&lt; &lt;
&lt;&nbsp; t o 
l g a : | | : s a k m a n&nbsp; &gt; &gt; &gt;<BR>engineer, cfd 
consultant<BR>analytic &amp; computational research, inc -- acri<BR>los
angeles, 
ca<BR>310-471-3023<BR><A 
href="mailto:tolga.sakman@xxxxxxxxxxx";>tolga.sakman@xxxxxxxxxxx</A> ||
<A 
href="http://www.acricfd.com";>www.acricfd.com</A></FONT></DIV></BODY></
HTML>

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