Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re:

Hi Louise,

> We would like to extend VisAD, in order to change axes'depiction, like having 
> a label for each graduation.
> 
> We thought of extending the ScalarMap class, in order to overide the method 
> makeScale that builds scales.
> But most attributs and methods are private or have package privacy, we can't 
> then inherit it in another package.
> 
> Is there another way to modify axis depiction, or can some attributs of the 
> ScalarMap class become protected?
> thanks

I have just modified ScalarMap.java in the source on the VisAD
ftp server, to declare the makeScale() method as public.  Please
let me know if there are any other methods that you need public.

Another way to draw custom scales is to construct data objects
(probably just Real or RealTuple) with a RealType mapped to
Display.Shape, then to draw your custom scale as a VisADLineArray
passed to the corresponding ShapeControl.setShape().  Note something
like this is done in visad/bom/TrackManipulation.java.

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690