From: Johannes Z. <jza...@us...> - 2006-02-28 11:23:22
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23808/src/net/sf/magicmap/client/delegate Modified Files: MapDelegate.java Log Message: added support for info objects and rfid antennas and tags Index: MapDelegate.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate/MapDelegate.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MapDelegate.java 23 Feb 2006 17:01:43 -0000 1.6 --- MapDelegate.java 28 Feb 2006 11:23:16 -0000 1.7 *************** *** 13,18 **** --- 13,21 ---- import localhost.magicmap.services.MapFacade.MapFacadeServiceLocator; import localhost.magicmap.services.MapFacade.MapFacadeSoapBindingStub; + import net.sf.magicmap.client.controller.Controller; import net.sf.magicmap.client.delegate.exception.ExceptionHandler; import net.sf.magicmap.client.delegate.interfaces.MapFacadeInterface; + import net.sf.magicmap.client.model.node.InfoObject; + import net.sf.magicmap.client.model.node.RFIDAntenna; import net.sf.magicmap.client.utils.Settings; import net.sf.magicmap.server.dto.GeoPointDTO; *************** *** 116,119 **** --- 119,137 ---- } } + + + /* (non-Javadoc) + * @see net.sf.magicmap.client.delegate.interfaces.MapFacadeInterface#createInfoObject(long, java.lang.String, int, int, java.lang.String, int) + */ + public void createInfoObject(long sessionId, String mapName, int x, int y, String url, int type) { + Controller.getInstance().getInfoObjects().add(new InfoObject(url, type, x, y, mapName)); + } + + /* (non-Javadoc) + * @see net.sf.magicmap.client.delegate.interfaces.MapFacadeInterface#createRFIDAntenna(long, java.lang.String, int, int, java.lang.String) + */ + public void createRFIDAntenna(long sessionId, String mapName, int x, int y, String url) { + Controller.getInstance().getRfidAntennas().add(new RFIDAntenna(url, x, y, mapName)); + } } \ No newline at end of file |