Package org.openstreetmap.josm.gui

Examples of org.openstreetmap.josm.gui.OsmPrimitivRenderer


    private JLabel lblDelete;
    private JScrollPane spDelete;

    protected void build() {
        setLayout(new GridBagLayout());
        OsmPrimitivRenderer renderer = new OsmPrimitivRenderer();
        // initialize the three lists for uploaded primitives, but don't add
        // them to the dialog yet,  see setUploadedPrimitives()
        //
        lstAdd = new PrimitiveList();
        lstAdd.setCellRenderer(renderer);
View Full Code Here


                new MatchListSelectionHandler());
        matchTable.getColumnModel().getSelectionModel().addListSelectionListener(
                new MatchListSelectionHandler());

        // FIXME: doesn't work right now
        matchTable.getColumnModel().getColumn(0).setCellRenderer(new OsmPrimitivRenderer());
        matchTable.getColumnModel().getColumn(1).setCellRenderer(new OsmPrimitivRenderer());
        matchTable.getColumnModel().getColumn(4).setCellRenderer(new ColorTableCellRenderer("Tags"));
       
        matchTable.setRowSelectionAllowed(true);
        matchTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

        referenceOnlyListModel = new UnmatchedObjectListModel();
        referenceOnlyList = new UnmatchedJList(referenceOnlyListModel);
        referenceOnlyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        referenceOnlyList.setCellRenderer(new OsmPrimitivRenderer());
        referenceOnlyList.setTransferHandler(null); // no drag & drop

        subjectOnlyListModel = new UnmatchedObjectListModel();
        subjectOnlyList = new UnmatchedJList(subjectOnlyListModel);
        subjectOnlyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        subjectOnlyList.setCellRenderer(new OsmPrimitivRenderer());
        subjectOnlyList.setTransferHandler(null); // no drag & drop

        //add popup menu for zoom on selection
        zoomToListSelectionAction = new ZoomToListSelectionAction();
        selectionPopup = new SelectionPopup();
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.OsmPrimitivRenderer

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.