📄 mapcontext.html
字号:
<BR> Get the current coordinate system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getKeywords()">getKeywords</A></B>()</CODE><BR> Get an array of keywords associated with this context, returns an empty array if no keywords have been set. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getLayer(int)">getLayer</A></B>(int index)</CODE><BR> Return the requested layer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getLayerBounds()">getLayerBounds</A></B>()</CODE><BR> Get the bounding box of all the layers in this MapContext. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getLayerCount()">getLayerCount</A></B>()</CODE><BR> Returns the number of layers in this map context</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getLayers()">getLayers</A></B>()</CODE><BR> Return this model's list of layers. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#getTitle()">getTitle</A></B>()</CODE><BR> Get the title, returns an empty string if it has not been set yet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#indexOf(org.geotools.map.MapLayer)">indexOf</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</CODE><BR> Returns the index of the first occurrence of the specified layer, or -1 if this list does not contain this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#iterator()">iterator</A></B>()</CODE><BR> Returns an iterator over the layers in this context in proper sequence.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#moveLayer(int, int)">moveLayer</A></B>(int sourcePosition, int destPosition)</CODE><BR> Moves a layer from a position to another. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removeLayer(int)">removeLayer</A></B>(int index)</CODE><BR> Remove a layer and trigger a <CODE>LayerListEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removeLayer(org.geotools.map.MapLayer)">removeLayer</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</CODE><BR> Remove a layer, if present, and trigger a <CODE>LayerListEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removeLayers(org.geotools.map.MapLayer[])">removeLayers</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers)</CODE><BR> Remove an array of layers and trigger a <CODE>LayerListEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removeMapBoundsListener(org.geotools.map.event.MapBoundsListener)">removeMapBoundsListener</A></B>(<A HREF="../../../org/geotools/map/event/MapBoundsListener.html" title="interface in org.geotools.map.event">MapBoundsListener</A> listener)</CODE><BR> Remove interest in receiving a <CODE>BoundingBoxEvent</CODE>s.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removeMapLayerListListener(org.geotools.map.event.MapLayerListListener)">removeMapLayerListListener</A></B>(<A HREF="../../../org/geotools/map/event/MapLayerListListener.html" title="interface in org.geotools.map.event">MapLayerListListener</A> listener)</CODE><BR> Remove interest in receiving <CODE>LayerListEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A> listener)</CODE><BR> Removes PropertyChangeListener from the list of listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setAbstract(java.lang.String)">setAbstract</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> conAbstract)</CODE><BR> Set an abstract which describes this context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setAreaOfInterest(com.vividsolutions.jts.geom.Envelope)">setAreaOfInterest</A></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> areaOfInterest)</CODE><BR> <B>Deprecated.</B> <I></I> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setAreaOfInterest(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem)">setAreaOfInterest</A></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> areaOfInterest, CoordinateReferenceSystem coordinateReferenceSystem)</CODE><BR> Set a new area of interest and trigger a <CODE>BoundingBoxEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setAreaOfInterest(org.geotools.geometry.jts.ReferencedEnvelope)">setAreaOfInterest</A></B>(<A HREF="../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A> areaOfInterest)</CODE><BR> Set a new area of interest and trigger an <CODE>BoundingBoxEvent</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setContactInformation(java.lang.String)">setContactInformation</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contactInformation)</CODE><BR> Set contact inforation associated with this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)">setCoordinateReferenceSystem</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Set the <code>CoordinateReferenceSystem</code> for this map context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setKeywords(java.lang.String[])">setKeywords</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] keywords)</CODE><BR> Set an array of keywords to associate with this context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#setTitle(java.lang.String)">setTitle</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title)</CODE><BR> Set the title of this context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/MapContext.html#transform(java.awt.geom.AffineTransform)">transform</A></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> transform)</CODE><BR> Transform the coordinates according to the provided transform. </TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addLayer(org.geotools.map.MapLayer)"><!-- --></A><H3>addLayer</H3><PRE>public boolean <B>addLayer</B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</PRE><DL><DD>Add a new layer if not already present and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - the layer to be inserted<DT><B>Returns:</B><DD>true if the layer has been added, false otherwise</DL></DD></DL><HR><A NAME="addLayer(int, org.geotools.map.MapLayer)"><!-- --></A><H3>addLayer</H3><PRE>public boolean <B>addLayer</B>(int index, <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</PRE><DL><DD>Add a new layer in the specified position and trigger a <CODE>LayerListEvent</CODE>. Layer won't be added if it's already in the list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the layer will be inserted<DD><CODE>layer</CODE> - the layer to be inserted<DT><B>Returns:</B><DD>true if the layer has been added, false otherwise</DL></DD></DL><HR><A NAME="addLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../org/geotools/data/FeatureSource.html" title="interface in org.geotools.data">FeatureSource</A> featureSource, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</PRE><DL><DD>Add a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureSource</CODE> - a FeatureSource with the new layer that will be added.</DL></DD></DL><HR><A NAME="addLayer(org.geotools.feature.FeatureCollection, org.geotools.styling.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(<A HREF="../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A> collection, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</PRE><DL><DD>Add a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>collection</CODE> - a FeatureCollection with the new layer that will be added.</DL></DD></DL><HR><A NAME="addLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style)"><!-- --></A><H3>addLayer</H3><PRE>public void <B>addLayer</B>(GridCoverage gridCoverage,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -