source: josm/trunk/src/org/openstreetmap/josm/data/Data.java@ 9375

Last change on this file since 9375 was 8512, checked in by Don-vip, 9 years ago

checkstyle: redundant modifiers

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data;
3
4import java.awt.geom.Area;
5import java.util.Collection;
6import java.util.List;
7
8/**
9 * Generic data, holding data downloaded from various data sources.
10 * @since 7575
11 */
12public interface Data {
13
14 /**
15 * Returns the collection of data sources.
16 * @return the collection of data sources.
17 */
18 Collection<DataSource> getDataSources();
19
20 /**
21 * Returns the total area of downloaded data (the "yellow rectangles").
22 * @return Area object encompassing downloaded data.
23 */
24 Area getDataSourceArea();
25
26 /**
27 * <p>Replies the list of data source bounds.</p>
28 *
29 * <p>Dataset maintains a list of data sources which have been merged into the
30 * data set. Each of these sources can optionally declare a bounding box of the
31 * data it supplied to the dataset.</p>
32 *
33 * <p>This method replies the list of defined (non {@code null}) bounding boxes.</p>
34 *
35 * @return the list of data source bounds. An empty list, if no non-null data source
36 * bounds are defined.
37 */
38 List<Bounds> getDataSourceBounds();
39}
Note: See TracBrowser for help on using the repository browser.