public class DataSource extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Bounds |
bounds
The bounds of this data source
|
java.lang.String |
origin
The textual description of the origin (example: "OpenStreetMap Server")
|
Constructor and Description |
---|
DataSource(Bounds bounds,
java.lang.String origin)
Constructs a new
DataSource . |
DataSource(DataSource source)
Cosntructs a new
DataSource |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.awt.geom.Area |
getDataSourceArea(java.util.Collection<DataSource> dataSources)
Returns the total area of downloaded data (the "yellow rectangles").
|
static java.util.List<Bounds> |
getDataSourceBounds(java.util.Collection<DataSource> dataSources)
Replies the list of data source bounds.
|
int |
hashCode() |
java.lang.String |
toString() |
public final java.lang.String origin
public DataSource(Bounds bounds, java.lang.String origin)
DataSource
.bounds
- The bounds of this data sourceorigin
- The textual description of the origin (example: "OpenStreetMap Server")java.lang.IllegalArgumentException
- if bounds is null
public DataSource(DataSource source)
DataSource
source
- The source to copy the data from.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.awt.geom.Area getDataSourceArea(java.util.Collection<DataSource> dataSources)
dataSources
- list of data sourcesData.getDataSourceArea()
public static java.util.List<Bounds> getDataSourceBounds(java.util.Collection<DataSource> dataSources)
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.
dataSources
- list of data sourcesData.getDataSourceBounds()