Interface Data

  • All Known Subinterfaces:
    OsmData<O,​N,​W,​R>
    All Known Implementing Classes:
    DataSet, GpxData, ImageData, NoteData, VectorDataSet
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Data
    Generic data, holding data downloaded from various data sources.
    Since:
    7575
    • Method Detail

      • getDataSources

        java.util.Collection<DataSourcegetDataSources()
        Returns the collection of data sources.
        Returns:
        the collection of data sources.
      • getDataSourceArea

        default java.awt.geom.Area getDataSourceArea()
        Returns the total area of downloaded data (the "yellow rectangles").
        Returns:
        Area object encompassing downloaded data.
      • getDataSourceBounds

        default java.util.List<BoundsgetDataSourceBounds()

        Replies the list of data source bounds.

        Dataset maintains a list of data sources which have been merged into the data set. Each of these sources can optionally declare a bounding box of the data it supplied to the dataset.

        This method replies the list of defined (non null) bounding boxes.

        Returns:
        the list of data source bounds. An empty list, if no non-null data source bounds are defined.