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.
I think the array called Scalars[] in MappingDialog.java holds the input "map from" fields. Since it is declared private, it will be difficult to access it from VisadAPI.java without making it public. I'm trying not to hack into MappingDialog.java to change it to public, but it looks like there isn't a class variable in BasicSSCell or FancySSCell that references that cell's MappingDialog box on which I could call a public accessor method that would return the Scalar[] array. Does anyone know if such a class variable for a cell's mapping dialog box already exists? Thanks, Michelle Michelle Kam (408) 742-2881 Lockheed Martin Space Systems Co. SSM/ATC/MSIS B/153 O/L922 1111 Lockheed Martin Way, Sunnyvale, CA 94089 -----Original Message----- From: Kam, Michelle C Sent: Monday, June 23, 2003 10:04 AM To: 'Michelle Kam'; Curtis Rueden Subject: RE: specifying fields from input file Hi, I was trying to find a way to select multiple cells at once by pressing "Control" and selecting the desired cells with the mouse button. Would you recommend adding more fields in SpreadSheet.java like "CurX2" and "CurY2" to represent the 2nd cell that was selected by the user? And then add a method in SpreadSheet.java to handle 2 cells? Also, for the structure that holds the input fields which are different for each file that appear in the "map from" column of the dialog box, it would seem like those fields are stored in "Scalars[]" or "MathTypes[]" declared in MappingDialog.java, but I'm not sure if one of those is the data structure holding those fields. And when I set up my array holding all the possible "Map To" fields that show up in the mapping dialog when you run the program, I counted 44 different fields in the "Map To" section but in MappingDialog.java, there are 50 different entries for MapNames[][] and MapTypes[][]. Why don't the 6 extra fields like "Hue" and "Saturation" appear in the dialog box? Thanks, Michelle Michelle Kam (408) 742-2881 Lockheed Martin Space Systems Co. SSM/ATC/MSIS B/153 O/L922 1111 Lockheed Martin Way, Sunnyvale, CA 94089 -----Original Message----- From: Michelle Kam [mailto:shellzie@xxxxxxxxxxxxxxxxxxx] Sent: Saturday, June 21, 2003 1:32 PM To: Kam, Michelle C; Curtis Rueden Subject: RE: specifying fields from input file Hi Curtis, When I load a data file into a spreadsheet cell, the input fileds such as latitude, longitude, etc are different per each file. Do you know which class I can find those fields that appear in the left column of the mapping dialog box called "Map From"? I'm looking for an array or some data structure that holds those fields so that I can map each input field to a corresponding Display type such as CylRadius that shows up in the "Map To" section of the mapping dialoge box. Also, when a user clicks with the mouse on a particular cell to select it, I can access that selected cell with the variables "CurX" and "CurY". However, do you know if there is a way in the code to access multiple cells when the user selects more than 1 cell with the "Control" button and the mouse simultaneously? Thanks, Michelle >===== Original Message From Curtis Rueden <curtis@xxxxxxxxxxxxx> ==== >>Do you know if there is a method in the Visad package that will remove the >>data files from all cells that were loaded in before? ie. I would like to >>clear the visualizations that appear in each spread sheet cell after each >>generation so I can show a new set of 16 cells. Ideally, I would like all >>cells to be cleared without the user having to select each one and then >>click done. > >SpreadSheet.newFile() will clear all SpreadSheet cells. >If you want to clear them all without asking for user >confirmation, call SpreadSheet.newFile(false). However, >that method is protected, so you'll either need to hack >the SpreadSheet and make it public, or else define an >extension of the SpreadSheet that calls it for you. > >-Curtis
visad
archives: