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.
Hi Chen Zang- Chen Zhang wrote: > > i have 2 small issues about the visaAD display (i use DisplayImplJ2D) > > 1. is it possible to change the background color? Use the RendererControl.setBackgroundColor() method. You can call display.getDisplayRenderer().getRendererControl() to get the RendererControl. Test53 in the examples shows this. > 2. is it possible to draw more grid lines and more numbers on the scales > (right now, only two numbers at the beginning and the end)? See the visad.AxisScale class. There are several methods to change the properties of the AxisScale. In particular for your question: setMajorTickSpacing() setMinorTickSpacing() createStandardLabels() setLabelTable() methods should help. See Test26 in the examples. Don Murray ************************************************************* Don Murray UCAR Unidata Program dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000 (303) 497-8628 Boulder, CO 80307 http://www.unidata.ucar.edu/staff/donm *************************************************************
visad
archives: