Package slash.navigation.converter.gui.models

Examples of slash.navigation.converter.gui.models.PositionsModel


        savePreferences();
    }

    private void insertPosition() {
        RouteConverter r = RouteConverter.getInstance();
        PositionsModel positionsModel = r.getPositionsModel();

        int[] selectedRows = r.getPositionsView().getSelectedRows();
        int row = selectedRows.length > 0 ? selectedRows[0] : positionsModel.getRowCount();
        int insertRow = row > positionsModel.getRowCount() - 1 ? row : row + 1;
        Object[] objects = listResult.getSelectedValues();
        for (int i = objects.length - 1; i >= 0; i -= 1) {
            NavigationPosition position = (NavigationPosition) objects[i];
            positionsModel.add(insertRow, position.getLongitude(), position.getLatitude(),
                    position.getElevation(), null, null, position.getDescription());

            int[] rows = new int[]{insertRow};
            r.getPositionsSelectionModel().setSelectedPositions(rows, true);
            r.getBatchPositionAugmenter().addData(rows, false, true, true);
View Full Code Here

TOP

Related Classes of slash.navigation.converter.gui.models.PositionsModel

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.