I have data plotted on the map using CSVLocationHandler and am able to popup
a menu that contains menu items that I have added beyond the standard popup
menu by adding to fillLocationPopUpMenu(). My addition allows the user to
set the visibility and whether or not the object is selected using the
setVisbile() and setSelected() methods. In order to get the OMGraphic
object on the map, I use:
clp.getLoc().getLocationMarker().setVisible(false);
where clp is the LocationPopupMenu set in LocationMenuItem. I have extended
LocationMenuItem so I can override the actionPerformed method to add events
for my menu items that I added to the fillLocationPopUpMenu method.
I print the values from the method actionPerformed from my new class.:
System.out.println("isSelected?: " +
clp.getLoc().getLocationMarker().isSelected());
System.out.println("isVisible?: " +
clp.getLoc().getLocationMarker().isVisible());
And they say the particular data point is selected or invisible depending
upon which menu item I selected.
When I traverse through the graphicsList using another routine I wrote, I
check to see the selection or visibility status of the data point. When
printing out the values in that routine.
System.out.println("isSelected? " +
((URLRasterLocation)graphicsList.get(j)).isSelected());
System.out.println("isVisible?? " +
((URLRasterLocation)graphicsList.get(j)).isVisible());
It returns false for isSelected and true for isVisble. Is the graphicsList
separate from the point at the location? How can I get this to work?
Luke
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri May 23 23:57:07 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT