⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapcontext.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                     <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>&nbsp;style)</PRE><DL><DD>Add a new layer and trigger a <CODE>LayerListEvent</CODE><P><DD><DL><DT><B>Parameters:</B><DD><CODE>gridCoverage</CODE> - a GridCoverage with the new layer that will be added.</DL></DD></DL><HR><A NAME="addLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid">AbstractGridCoverage2DReader</A>&nbsp;gridCoverage,                     <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A>&nbsp;style)</PRE><DL><DD>Add a new layer and trigger a <CODE>LayerListEvent</CODE><P><DD><DL><DT><B>Parameters:</B><DD><CODE>gridCoverage</CODE> - an AbstractGridCoverage2DReader with the new layer that will be added.</DL></DD></DL><HR><A NAME="removeLayer(org.geotools.map.MapLayer)"><!-- --></A><H3>removeLayer</H3><PRE>public boolean <B>removeLayer</B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>&nbsp;layer)</PRE><DL><DD>Remove a layer, if present, and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - a MapLayer that will be added.<DT><B>Returns:</B><DD>true if the layer has been removed</DL></DD></DL><HR><A NAME="removeLayer(int)"><!-- --></A><H3>removeLayer</H3><PRE>public <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> <B>removeLayer</B>(int&nbsp;index)</PRE><DL><DD>Remove a layer and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the layer that it's going to be removed<DT><B>Returns:</B><DD>the layer removed, if any</DL></DD></DL><HR><A NAME="addLayers(org.geotools.map.MapLayer[])"><!-- --></A><H3>addLayers</H3><PRE>public int <B>addLayers</B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[]&nbsp;layers)</PRE><DL><DD>Add an array of new layers and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>layers</CODE> - The new layers that are to be added.<DT><B>Returns:</B><DD>the number of layers actually added to the MapContext</DL></DD></DL><HR><A NAME="removeLayers(org.geotools.map.MapLayer[])"><!-- --></A><H3>removeLayers</H3><PRE>public void <B>removeLayers</B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[]&nbsp;layers)</PRE><DL><DD>Remove an array of layers and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>layers</CODE> - The layers that are to be removed.</DL></DD></DL><HR><A NAME="clearLayerList()"><!-- --></A><H3>clearLayerList</H3><PRE>public void <B>clearLayerList</B>()</PRE><DL><DD>Clears the whole layer list. Will fire a LayerListChangedEvent<P><DD><DL></DL></DD></DL><HR><A NAME="getLayers()"><!-- --></A><H3>getLayers</H3><PRE>public <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] <B>getLayers</B>()</PRE><DL><DD>Return this model's list of layers. If no layers are present, then an empty array is returned.<P><DD><DL><DT><B>Returns:</B><DD>This model's list of layers.</DL></DD></DL><HR><A NAME="getLayer(int)"><!-- --></A><H3>getLayer</H3><PRE>public <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> <B>getLayer</B>(int&nbsp;index)                  throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></PRE><DL><DD>Return the requested layer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of layer to return.<DT><B>Returns:</B><DD>the layer at the specified position<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the index is out of range</DL></DD></DL><HR><A NAME="moveLayer(int, int)"><!-- --></A><H3>moveLayer</H3><PRE>public void <B>moveLayer</B>(int&nbsp;sourcePosition,                      int&nbsp;destPosition)</PRE><DL><DD>Moves a layer from a position to another. Will fire a MapLayerListEvent<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sourcePosition</CODE> - the layer current position<DD><CODE>destPosition</CODE> - the layer new position</DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>iterator</B>()</PRE><DL><DD>Returns an iterator over the layers in this context in proper sequence.<P><DD><DL><DT><B>Returns:</B><DD>an iterator over the layers in this context in proper sequence.</DL></DD></DL><HR><A NAME="indexOf(org.geotools.map.MapLayer)"><!-- --></A><H3>indexOf</H3><PRE>public int <B>indexOf</B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>&nbsp;layer)</PRE><DL><DD>Returns the index of the first occurrence of the specified layer, or -1 if this list does not contain this element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the MapLayer to search for<DT><B>Returns:</B><DD>DOCUMENT ME!</DL></DD></DL><HR><A NAME="getLayerCount()"><!-- --></A><H3>getLayerCount</H3><PRE>public int <B>getLayerCount</B>()</PRE><DL><DD>Returns the number of layers in this map context<P><DD><DL><DT><B>Returns:</B><DD>the number of layers in this map context</DL></DD></DL><HR><A NAME="getLayerBounds()"><!-- --></A><H3>getLayerBounds</H3><PRE>public <A HREF="../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A> <B>getLayerBounds</B>()                                  throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Get the bounding box of all the layers in this MapContext. If all the layers cannot determine the bounding box in the speed required for each layer, then null is returned. The bounds will be expressed in the MapContext coordinate system.<P><DD><DL><DT><B>Returns:</B><DD>The bounding box of the features or null if unknown and too         expensive for the method to calculate.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an IOException occurs while accessing the FeatureSource             bounds</DL></DD></DL><HR><A NAME="addMapLayerListListener(org.geotools.map.event.MapLayerListListener)"><!-- --></A><H3>addMapLayerListListener</H3><PRE>public void <B>addMapLayerListListener</B>(<A HREF="../../../org/geotools/map/event/MapLayerListListener.html" title="interface in org.geotools.map.event">MapLayerListListener</A>&nbsp;listener)</PRE><DL><DD>Register interest in receiving a <CODE>LayerListEvent</CODE>. A <code>LayerListEvent</code> is sent if a layer is added or removed, but not if the data within a layer changes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The object to notify when Layers have changed.</DL></DD></DL><HR><A NAME="removeMapLayerListListener(org.geotools.map.event.MapLayerListListener)"><!-- --></A><H3>removeMapLayerListListener</H3><PRE>public void <B>removeMapLayerListListener</B>(<A HREF="../../../org/geotools/map/event/MapLayerListListener.html" title="interface in org.geotools.map.event">MapLayerListListener</A>&nbsp;listener)</PRE><DL><DD>Remove interest in receiving <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The object to stop sending <code>LayerListEvent</code>s.</DL></DD></DL><HR><A NAME="setAreaOfInterest(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>setAreaOfInterest</H3><PRE>public void <B>setAreaOfInterest</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A>&nbsp;areaOfInterest,                              CoordinateReferenceSystem&nbsp;coordinateReferenceSystem)                       throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Set a new area of interest and trigger a <CODE>BoundingBoxEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>areaOfInterest</CODE> - The new areaOfInterest.<DD><CODE>coordinateReferenceSystem</CODE> - The coordinate system being using by this model.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an argument is <code>null</code>.</DL></DD></DL><HR><A NAME="setAreaOfInterest(com.vividsolutions.jts.geom.Envelope)"><!-- --></A><H3>setAreaOfInterest</H3><PRE>public void <B>setAreaOfInterest</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A>&nbsp;areaOfInterest)                       throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>Set a new area of interest and trigger an <CODE>BoundingBoxEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>areaOfInterest</CODE> - The new area of interest.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an argument is <code>null</code>.</DL></DD></DL><HR><A NAME="setAreaOfInterest(org.geotools.geometry.jts.ReferencedEnvelope)"><!-- --></A><H3>setAreaOfInterest</H3><PRE>public void <B>setAreaOfInterest</B>(<A HREF="../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A>&nbsp;areaOfInterest)</PRE><DL><DD>Set a new area of interest and trigger an <CODE>BoundingBoxEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>areaOfInterest</CODE> - The new area of interest.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an argument is <code>null</code>.</DL></DD></DL><HR><A NAME="getAreaOfInterest()"><!-- --></A><H3>getAreaOfInterest</H3><PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -