Hello,
i have a problem in receiving Mousevents from the SelectMouseMode.
My Layers are all subclasses of a abstractlayer which looks like this:
public abstract class AbstractLayer
extends Layer
implements ComponentListener, ActionListener,
IRedrawLayer, MapMouseListener
{
public String[] getMouseModeServiceList()
{
return new String[] { SelectMouseMode.modeID };
}
public MapMouseListener getMapMouseListener()
{
return this;
}
public void mouseMoved()
{
System.out.println( "MouseMoved" );
}
....
}
and the following code in the main-class:
mapBean = new BufferedMapBean();
informationDelegator = new InformationDelegator();
informationDelegator.setMap( mapBean );
mouseDelegator = new MouseDelegator( mapBean );
mouseDelegator.addPropertyChangeListener( informationDelegator );
layerHandler = new LayerHandler();
layerHandler.addLayerListener( mapBean );
layerHandler.setLayers( knownLayers );
mouseDelegator.setActiveMouseMode( selectMouseMode );
But I never receive a mouse event.
Yours Ruediger
-- [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 Wed May 15 09:30:55 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT