3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.ext
.geo
;
12 import java
.awt
.Color
;
13 import java
.util
.List
;
16 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
17 import eu
.etaxonomy
.cdm
.model
.description
.PresenceAbsenceTermBase
;
18 import eu
.etaxonomy
.cdm
.model
.description
.TaxonDescription
;
19 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
20 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
23 * @author a.kohlbecker
28 public interface IEditGeoService
{
31 * Retrieve a parameter string to pass to an EditGeoService endpoint
32 * The endpoint will deliver a a map generated by the Edit Geo Service for the given
33 * <code>TaxonDescription</code>
35 * @param taxonDescriptions
36 * A List of <code>TaxonDescription</code> holding the distribution data
37 * @param presenceAbsenceTermColors
38 * A map that classifies which <code>PresenceAbsenceTermBase</code> should
39 * be assigned which <code>Color</code>
41 * The width of the map image
43 * The height of the map image
50 public String
getDistributionServiceRequestParameterString(
51 List
<TaxonDescription
> taxonDescriptions
,
52 Map
<PresenceAbsenceTermBase
<?
>, Color
> presenceAbsenceTermColors
,
53 int width
, int height
, String bbox
, String backLayer
,
54 List
<Language
> langs
);
57 * Retrieve a parameter string to pass to an EditGeoService endpoint
58 * The endpoint will deliver a a map generated by the Edit Geo Service for the given
59 * <code>TaxonDescription</code>
62 * The <code>TaxonDescription</code> holding the distribution data
63 * @param presenceAbsenceTermColors
64 * A map that classifies which <code>PresenceAbsenceTermBase</code> should
65 * be assigned which <code>Color</code>
67 * The width of the map image
69 * The height of the map image
76 public String
getDistributionServiceRequestParameterString(TaxonDescription description
,
77 Map
<PresenceAbsenceTermBase
<?
>,Color
> presenceAbsenceTermColors
,
82 List
<Language
> langs
);
88 * @param presenceAbsenceTermColors
95 * this method throws all distribution data from all taxon descriptions in one big pot
96 * and returns a map based on this data. However this might be useful for certain
97 * use cases it does not really make sense to mix data from different taxon descriptions.
98 * Why have they been separated in the first place?
102 public String
getDistributionServiceRequestParameterString(Taxon taxon
,
103 Map
<PresenceAbsenceTermBase
<?
>,Color
> presenceAbsenceTermColors
,
108 List
<Language
> langs
);
111 public String
getOccurrenceServiceRequestParameterString(
112 List
<SpecimenOrObservationBase
> specimensOrObersvations
,
113 Map
<Class
<?
extends SpecimenOrObservationBase
>,Color
> specimenOrObservationTypeColors
,
114 Boolean doReturnImage
,