Search in sources :

Example 1 with PointOverview

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;
}
Also used : PolylineOverview(uk.me.parabola.imgfmt.app.trergn.PolylineOverview) PointOverview(uk.me.parabola.imgfmt.app.trergn.PointOverview) PolygonOverview(uk.me.parabola.imgfmt.app.trergn.PolygonOverview) ArrayList(java.util.ArrayList) Overview(uk.me.parabola.imgfmt.app.trergn.Overview) PolylineOverview(uk.me.parabola.imgfmt.app.trergn.PolylineOverview) PolygonOverview(uk.me.parabola.imgfmt.app.trergn.PolygonOverview) PointOverview(uk.me.parabola.imgfmt.app.trergn.PointOverview) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Overview (uk.me.parabola.imgfmt.app.trergn.Overview)1 PointOverview (uk.me.parabola.imgfmt.app.trergn.PointOverview)1 PolygonOverview (uk.me.parabola.imgfmt.app.trergn.PolygonOverview)1 PolylineOverview (uk.me.parabola.imgfmt.app.trergn.PolylineOverview)1