Package slash.navigation.fpl

Examples of slash.navigation.fpl.GarminFlightPlanPosition


    public Wgs84Position asCoPilotPosition() {
        return asWgs84Position();
    }

    public GarminFlightPlanPosition asGarminFlightPlanPosition() {
        return new GarminFlightPlanPosition(getLongitude(), getLatitude(), getElevation(), getDescription());
    }
View Full Code Here


    public String getReason() {
        return reason;
    }

    public GarminFlightPlanPosition asGarminFlightPlanPosition() {
        GarminFlightPlanPosition position = new GarminFlightPlanPosition(getLongitude(), getLatitude(), getElevation(), getDescription());
        position.setWaypointType(UserWaypoint);
        WptType wptType = getOrigin(WptType.class);
        if (wptType != null) {
            String type = trim(wptType.getType());
            if (type != null) {
                WaypointType waypointType = WaypointType.fromValue(type);
                position.setWaypointType(waypointType);

                String name = wptType.getName();
                if (name != null && name.length() >= 2)
                    position.setCountryCode(CountryCode.fromValue(name.substring(0, 2)));
            }
            String description = trim(wptType.getCmt());
            if (description != null) {
                position.setDescription(description);
            }
        }
        return position;
    }
View Full Code Here

        return route.getPosition(index);
    }

    private void updateView() {
        labelPosition.setText(format(RouteConverter.getBundle().getString("position-index"), index + 1, route.getPositionCount()));
        GarminFlightPlanPosition position = getPosition();
        textFieldDescription.setText(position.getDescription());
        CountryCode countryCode = position.getCountryCode();
        comboBoxCountryCode.setSelectedItem(countryCode == null ? None : countryCode);
        textFieldIdentifier.setText(position.getIdentifier());
        comboBoxWaypointType.setSelectedItem(position.getWaypointType());
        validateModel();
    }
View Full Code Here

TOP

Related Classes of slash.navigation.fpl.GarminFlightPlanPosition

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.