Package slash.navigation.converter.gui

Examples of slash.navigation.converter.gui.RouteConverter$PrintProfileAction


* @author Christian Pesch
*/

public class AddNumberToPositionsAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        int[] selectedRows = r.getPositionsView().getSelectedRows();
        if (selectedRows.length > 0) {
            r.getBatchPositionAugmenter().addNumbers(selectedRows);
        }
    }
View Full Code Here


* @author Christian Pesch
*/

public class AddCoordinatesToPositionsAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        int[] selectedRows = r.getPositionsView().getSelectedRows();
        if (selectedRows.length > 0) {
            r.getBatchPositionAugmenter().addCoordinates(selectedRows);
        }
    }
View Full Code Here

        super(RouteConverter.getInstance().getFrame(), "downloads");
        setTitle(RouteConverter.getBundle().getString("downloads-title"));
        setContentPane(contentPane);
        getRootPane().setDefaultButton(buttonClose);

        final RouteConverter r = RouteConverter.getInstance();

        tableDownloads.setModel(r.getDataSourceManager().getDownloadManager().getModel());
        tableDownloads.setDefaultRenderer(Object.class, new DownloadsTableCellRenderer());
        TableCellRenderer headerRenderer = new SimpleHeaderRenderer("description", "state");
        TableColumnModel columns = tableDownloads.getColumnModel();
        for (int i = 0; i < columns.getColumnCount(); i++) {
            TableColumn column = columns.getColumn(i);
View Full Code Here

                position.getSpeed(), position.getTime(), description);
        return positionsModel.getPosition(row);
    }

    private void complementRow(int row) {
        RouteConverter r = RouteConverter.getInstance();
        r.getBatchPositionAugmenter().addData(new int[]{row}, true, true, true);
    }
View Full Code Here

        RouteConverter r = RouteConverter.getInstance();
        r.getBatchPositionAugmenter().addData(new int[]{row}, true, true, true);
    }

    public void run() {
        RouteConverter r = RouteConverter.getInstance();

        boolean hasInsertedRowInMapCenter = false;
        List<NavigationPosition> insertedPositions = new ArrayList<NavigationPosition>();
        int[] rowIndices = revert(table.getSelectedRows());
        // append to table if there is nothing selected
        boolean areRowsSelected = rowIndices.length > 0;                        // TODO complicated logic, unify with BaseMapView#getAddRow
        if (!areRowsSelected)
            rowIndices = new int[]{table.getRowCount()};
        for (int row : rowIndices) {
            int insertRow = row > positionsModel.getRowCount() - 1 ? row : row + 1;

            NavigationPosition center = areRowsSelected ? calculateCenter(row) :
                    positionsModel.getRowCount() > 0 ? calculateCenter(positionsModel.getRowCount() - 1) : null;
            if (center == null) {
                // only insert row in map center once
                if (hasInsertedRowInMapCenter)
                    continue;
                center = r.getMapCenter();
                hasInsertedRowInMapCenter = true;
            }

            insertedPositions.add(insertRow(insertRow, center));
        }
View Full Code Here

* @author Christian Pesch
*/

public class AddTimeToPositionsAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        int[] selectedRows = r.getPositionsView().getSelectedRows();
        if (selectedRows.length > 0) {
            r.getBatchPositionAugmenter().addTimes(selectedRows);
        }
    }
View Full Code Here

* @author Christian Pesch
*/

public class AddSpeedToPositionsAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        int[] selectedRows = r.getPositionsView().getSelectedRows();
        if (selectedRows.length > 0) {
            r.getBatchPositionAugmenter().addSpeeds(selectedRows);
        }
    }
View Full Code Here

* @author Christian Pesch
*/

public class AddUrlAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        r.addUrlToCatalog("");
    }
View Full Code Here

* @author Christian Pesch
*/

public class AddElevationToPositionsAction extends FrameAction {
    public void run() {
        RouteConverter r = RouteConverter.getInstance();
        int[] selectedRows = r.getPositionsView().getSelectedRows();
        if (selectedRows.length > 0) {
            r.getBatchPositionAugmenter().addElevations(selectedRows);
        }
    }
View Full Code Here

TOP

Related Classes of slash.navigation.converter.gui.RouteConverter$PrintProfileAction

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.