Package ehistory.web.server.frontend

Examples of ehistory.web.server.frontend.MapBean


        }

        if (request.getMapDeltaX() != null || request.getMapDeltaY() != null ||
                request.getMapZoom() != null || request.getWidthChanged() != null) {
            FlexMap map = new FlexMap();
            MapBean mapBean = clientBean.getMapBean();
            if (request.getWidthChanged() != null) {
                mapBean.setWidth(request.getWidthChanged());
            }
            if (request.getMapDeltaX() != null || request.getMapDeltaY() != null) {
                int mapDeltaX = request.getMapDeltaX() == null ? 0 : request.getMapDeltaX();
                int mapDeltaY = request.getMapDeltaY() == null ? 0 : request.getMapDeltaY();
                mapBean.move(mapDeltaX, mapDeltaY);
            }
            if (request.getMapZoom() != null) {
                mapBean.zoom(request.getMapZoom());
            }
            map.setObjectsTitles(mapBean.getObjectTitles());
            map.setObjectsAreas(mapBean.getObjectsToIntArray());
            response.setMap(map);
        }

        return response;
    }
View Full Code Here

TOP

Related Classes of ehistory.web.server.frontend.MapBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.