Package com.mapmidlet.routing.Route

Examples of com.mapmidlet.routing.Route.RouteDirection


                        for (int j = 0; j < elem.getChildCount(); j++) {
                            Object child2 = elem.getChild(j);
                            if (child2 instanceof Element) {
                                Element elem2 = (Element) child2;
                                if (elem2.getName().equals("rtept")) {
                                    RouteDirection d = new RouteDirection();
                                    for (int k = 0; k < elem2.getChildCount(); k++) {
                                        Object child3 = elem2.getChild(k);
                                        if (child3 instanceof Element) {
                                            Element elem3 = (Element) child3;
                                            if (elem3.getName().equals("desc")) {
View Full Code Here


        } else if (gpsState.state >= GpsState.CONNECTED_FIX) {
            if (options.route != null) {
                if (options.navContext.directionIdx == -1) {
                    img = "nav_offroad.png";
                } else {
                    RouteDirection direction = (RouteDirection) options.route.routeDirections
                            .elementAt(options.navContext.directionIdx);
                    img = "turn" + (direction.turn == null ? "C" : direction.turn) + ".png";
                    g.drawString("[" + options.navContext.directionIdx + "] " + direction.text, 10, 70, Graphics.TOP
                            | Graphics.LEFT);
View Full Code Here

TOP

Related Classes of com.mapmidlet.routing.Route.RouteDirection

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.