|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.portal.context.MapParameter
public class MapParameter
encapsulates the part of the general web map context extension parameters that targets the map operation and feature info format options. These are informations about the possible values and the current selected value for each of the encapsulated parameters:
feature info formats pan factors (% of the map size) zoom factors (% of the map factors) minimum displayable scale (WMS scale definition) maximum displayable scale (WMS scale definition)
Constructor Summary | |
---|---|
MapParameter(Format[] offeredInfoFormats,
MapOperationFactor[] offeredPanFactors,
MapOperationFactor[] offeredZoomFactors,
double minScale,
double maxScale)
Creates a new MapParameter object. |
Method Summary | |
---|---|
void |
addInfoFormat(Format infoFormat)
adds an info format to a map context |
void |
addPanFactor(MapOperationFactor panFactor)
add a pan factor to a map context |
void |
addZoomFactor(MapOperationFactor zoomFactor)
adds a zoom factor to a map context |
java.lang.String |
exportAsXML()
|
double |
getMaxScale()
returns the maximum map scale as defined at the OGC WMS specs that is offered by the map context |
double |
getMinScale()
returns the minimum map scale as defined at the OGC WMS specs that is offered by the map context |
Format[] |
getOfferedInfoFormats()
returns the list of map formats offered by the map context |
MapOperationFactor[] |
getOfferedPanFactors()
returns the list of pan factors offered by this map context |
MapOperationFactor[] |
getOfferedZoomFactors()
returns the list of zoom factors offered by the map context |
Format |
getSelectedInfoFormat()
returns the info format that is marked as selected. |
MapOperationFactor |
getSelectedPanFactor()
returns the pan factor that is marked as selected. |
MapOperationFactor |
getSelectedZoomFactor()
returns the zoom factor that is marked as selected. |
void |
removeInfoFormat(Format format)
removes an info format from a map context |
void |
removePanFactor(MapOperationFactor panFactor)
removes a pan factor from a context |
void |
removeZoomFactor(MapOperationFactor zoomFactor)
removes a zomm factor from a map context |
void |
setMaxScale(double maxScale)
sets the maximum map scale as defined at the OGC WMS specs that is offered by the map context |
void |
setMinScale(double minScale)
sets the minimum map scale as defined at the OGC WMS specs that is offered by the map context |
void |
setOfferedInfoFormats(Format[] infoFormats)
sets the info formats offered by a map context |
void |
setOfferedPanFactors(MapOperationFactor[] panFactors)
sets the offered pan factors (% of the map size) for a map context |
void |
setOfferedZoomFactors(MapOperationFactor[] zoomFactors)
sets the offered zoom factors (% of the map size) for a map context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapParameter(Format[] offeredInfoFormats, MapOperationFactor[] offeredPanFactors, MapOperationFactor[] offeredZoomFactors, double minScale, double maxScale)
offeredInfoFormats
- feature info formatsofferedPanFactors
- pan factors (% of the map size)offeredZoomFactors
- pan factors (% of the map size)minScale
- minimum displayable scale (WMS scale definition)maxScale
- maximum displayable scale (WMS scale definition)Method Detail |
---|
public void setOfferedPanFactors(MapOperationFactor[] panFactors)
panFactors
- public void addPanFactor(MapOperationFactor panFactor)
panFactor
- public MapOperationFactor[] getOfferedPanFactors()
public MapOperationFactor getSelectedPanFactor()
public void removePanFactor(MapOperationFactor panFactor) throws ContextException
panFactor
-
ContextException
- if the map operation factior is selected.public void setOfferedZoomFactors(MapOperationFactor[] zoomFactors)
zoomFactors
- public void addZoomFactor(MapOperationFactor zoomFactor)
zoomFactor
- public MapOperationFactor[] getOfferedZoomFactors()
public MapOperationFactor getSelectedZoomFactor()
public void removeZoomFactor(MapOperationFactor zoomFactor) throws ContextException
zoomFactor
-
ContextException
- if the map operation factor is selected.public void setOfferedInfoFormats(Format[] infoFormats)
infoFormats
- public void addInfoFormat(Format infoFormat)
infoFormat
- public Format[] getOfferedInfoFormats()
public Format getSelectedInfoFormat()
public void removeInfoFormat(Format format) throws ContextException
format
-
ContextException
- the format is the current format.public double getMinScale()
public void setMinScale(double minScale)
minScale
- public double getMaxScale()
public void setMaxScale(double maxScale)
maxScale
- public java.lang.String exportAsXML()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org