RE: mouse clicking multiple cells

Hi Curtis,
Hi Curtis,

Do you know if there is a way to determine whether a Data object of type
Scalar is a "Real" object or a "Text" object? It looks like
DataImpl.getType() (and Data.getType()) returns a MathType but MathType.java
does not have record whether it is a ScalarType and then if it is, whether
it is a RealType or TextType. 

Alternatively, I could use DataUtility.getScalarTypes() to put the scalar
types into a vector as I did before in a method, but I still have the
problem of not being able to extract whether it was a RealType or TextType.

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: Curtis Rueden [mailto:curtis@xxxxxxxxxxxxx]
Sent: Tuesday, July 01, 2003 2:53 PM
To: Kam, Michelle C
Subject: RE: mouse clicking multiple cells


Hi Michelle,

SpreadSheet's top-level selectCell(int, int) method calls
FancySSCell.setSelected(boolean). With a little bit of
digging into the visad.ss source code, or even scanning the
Javadocs, you can uncover things like this yourself.

-Curtis

At 03:53 PM 7/1/2003, you wrote:
>Hi Curtis,
>
>I added a Vector to SpreadSheet.java so that when a user clicks on a cell,
>that cell # is stored in the vector at SpreadSheet.selectCell(). I also
>implemented DisplayListener.java with my class CellDisplayListener.java
that
>checks if the mouse was clicked and "control" was held down. In that case,
>it calls selectCell() where it updates the vector of selected cells by
>adding this one. 
>
>The cell #'s seem to be added into the vector as I click on them, but
>multiple cells cannot be highlighted at once. ie. I'll click on a cell and
>then release the mouse to click on another cell but then the first cell is
>no longer highlighted. Only the most recently selected cell is highlighted.
>Is there a way to disable the de-selection of cells once the user clicks on
>another cell? Below is CellDisplayListener.java:


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