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

📄 defaultmapcontext.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#addLayers(org.geotools.map.MapLayer[])">addLayers</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layers</CODE> - The new layers that are to be added.<DT><B>Returns:</B><DD>DOCUMENT ME!</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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#removeLayers(org.geotools.map.MapLayer[])">removeLayers</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layers</CODE> - The layers that are to be removed.</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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#getLayers()">getLayers</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#getLayer(int)">getLayer</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><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="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><B>Description copied from interface: <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></B></DD><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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#indexOf(org.geotools.map.MapLayer)">indexOf</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the MapLayer to search for<DT><B>Returns:</B><DD>DOCUMENT ME!<DT><B>See Also:</B><DD><A HREF="../../../org/geotools/map/MapContext.html#indexOf(org.geotools.map.MapLayer)"><CODE>MapContext.indexOf(org.geotools.map.MapLayer)</CODE></A></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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#iterator()">iterator</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an iterator over the layers in this context in proper sequence.</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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#getLayerBounds()">getLayerBounds</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><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. TODO: when coordinate         system information will be added reproject the bounds according         to the current coordinate system<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> - DOCUMENT ME!</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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#setAreaOfInterest(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem)">setAreaOfInterest</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><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)</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>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#setAreaOfInterest(com.vividsolutions.jts.geom.Envelope)">setAreaOfInterest</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><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>public <A HREF="../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A> <B>getAreaOfInterest</B>()</PRE><DL><DD>Gets the current area of interest. If no area of interest is the, the default is to fall back on the layer bounds<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#getAreaOfInterest()">getAreaOfInterest</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Current area of interest</DL></DD></DL><HR><A NAME="getCoordinateReferenceSystem()"><!-- --></A><H3>getCoordinateReferenceSystem</H3><PRE>public CoordinateReferenceSystem <B>getCoordinateReferenceSystem</B>()</PRE><DL><DD>Get the current coordinate system.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#getCoordinateReferenceSystem()">getCoordinateReferenceSystem</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the coordinate system of this box.</DL></DD></DL><HR><A NAME="transform(java.awt.geom.AffineTransform)"><!-- --></A><H3>transform</H3><PRE>public void <B>transform</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom">AffineTransform</A>&nbsp;transform)</PRE><DL><DD>Transform the coordinates according to the provided transform. Useful for zooming and panning processes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#transform(java.awt.geom.AffineTransform)">transform</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transform</CODE> - The transform to change area of interest.</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>DOCUMENT ME!<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapContext.html#moveLayer(int, int)">moveLayer</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapContext.html" title="interface in 

⌨️ 快捷键说明

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