use of uk.me.parabola.imgfmt.app.trergn.PointOverview in project mkgmap by openstreetmap.
the class MapDetails method getOverviews.
/**
* Get the overviews. We construct them at this point from the information
* that we have built up.
* Perhaps this could be a separate class rather than a list.
*
* @return A list of overviews.
*/
public List<Overview> getOverviews() {
List<Overview> ovlist = new ArrayList<Overview>();
for (Map.Entry<Integer, Integer> ent : pointOverviews.entrySet()) {
Overview ov = new PointOverview(ent.getKey(), ent.getValue());
ovlist.add(ov);
}
for (Map.Entry<Integer, Integer> ent : lineOverviews.entrySet()) {
Overview ov = new PolylineOverview(ent.getKey(), ent.getValue());
ovlist.add(ov);
}
for (Map.Entry<Integer, Integer> ent : shapeOverviews.entrySet()) {
Overview ov = new PolygonOverview(ent.getKey(), ent.getValue());
ovlist.add(ov);
}
return ovlist;
}
Aggregations