Class OsmLinkPaster


  • public class OsmLinkPaster
    extends AbstractOsmDataPaster
    Handles the paste / drop of an OSM address.

    e.g. http://www.openstreetmap.org/node/123 downloads node 123

    Since:
    10881
    • Constructor Detail

      • OsmLinkPaster

        public OsmLinkPaster()
        Create a new Osm address paster
    • Method Detail

      • importData

        public boolean importData​(javax.swing.TransferHandler.TransferSupport support,
                                  OsmDataLayer layer,
                                  EastNorth pasteAt)
                           throws java.awt.datatransfer.UnsupportedFlavorException,
                                  java.io.IOException
        Description copied from class: AbstractOsmDataPaster
        Attempts to import the given transfer data.
        Specified by:
        importData in class AbstractOsmDataPaster
        Parameters:
        support - The transfer support to import from.
        layer - The layer to paste at. May be null.
        pasteAt - The position to paste at.
        Returns:
        true if the import was successful.
        Throws:
        java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not supported
        java.io.IOException - if an I/O error occurs