📄 defaultmapcontext.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext()">DefaultMapContext</A></B>()</CODE><BR> <B>Deprecated.</B> <I></I> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext(org.opengis.referencing.crs.CoordinateReferenceSystem)">DefaultMapContext</A></B>(CoordinateReferenceSystem crs)</CODE><BR> Creates a default empty map context</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext(org.geotools.map.MapLayer[])">DefaultMapContext</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers)</CODE><BR> <B>Deprecated.</B> <I></I> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext(org.geotools.map.MapLayer[], org.opengis.referencing.crs.CoordinateReferenceSystem)">DefaultMapContext</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers, CoordinateReferenceSystem crs)</CODE><BR> Creates a map context with the provided layers and title</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext(org.geotools.map.MapLayer[], java.lang.String, java.lang.String, java.lang.String, java.lang.String[])">DefaultMapContext</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers, <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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contextAbstract, <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, <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> <B>Deprecated.</B> <I></I> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#DefaultMapContext(org.geotools.map.MapLayer[], java.lang.String, java.lang.String, java.lang.String, java.lang.String[], org.opengis.referencing.crs.CoordinateReferenceSystem)">DefaultMapContext</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers, <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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contextAbstract, <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, <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, CoordinateReferenceSystem crs)</CODE><BR> Creates a map context</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/DefaultMapContext.html#addLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style)">addLayer</A></B>(<A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid">AbstractGridCoverage2DReader</A> reader, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</CODE><BR> Add a new 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#addLayer(org.geotools.feature.FeatureCollection, org.geotools.styling.Style)">addLayer</A></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)</CODE><BR> Add a new 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#addLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style)">addLayer</A></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)</CODE><BR> Add a new 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#addLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style)">addLayer</A></B>(GridCoverage gc, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</CODE><BR> Add a new 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/DefaultMapContext.html#addLayer(int, org.geotools.map.MapLayer)">addLayer</A></B>(int index, <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</CODE><BR> Add a new layer if not already 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#addLayer(org.geotools.map.MapLayer)">addLayer</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A> layer)</CODE><BR> Add a new 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#addLayers(org.geotools.map.MapLayer[])">addLayers</A></B>(<A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A>[] layers)</CODE><BR> Add an array of new 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/DefaultMapContext.html#addMapBoundsListener(org.geotools.map.event.MapBoundsListener)">addMapBoundsListener</A></B>(<A HREF="../../../org/geotools/map/event/MapBoundsListener.html" title="interface in org.geotools.map.event">MapBoundsListener</A> listener)</CODE><BR> Registers MapBoundsListener to receive events.</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/DefaultMapContext.html#addMapLayerListListener(org.geotools.map.event.MapLayerListListener)">addMapLayerListListener</A></B>(<A HREF="../../../org/geotools/map/event/MapLayerListListener.html" title="interface in org.geotools.map.event">MapLayerListListener</A> listener)</CODE><BR> Registers MapLayerListListener to receive events.</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/DefaultMapContext.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</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> Registers PropertyChangeListener to receive events.</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/DefaultMapContext.html#clearLayerList()">clearLayerList</A></B>()</CODE><BR> DOCUMENT ME!</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/DefaultMapContext.html#getAbstract()">getAbstract</A></B>()</CODE><BR> Getter for property abstracts.</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/DefaultMapContext.html#getAreaOfInterest()">getAreaOfInterest</A></B>()</CODE><BR> Gets the current area of interest. </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/DefaultMapContext.html#getContactInformation()">getContactInformation</A></B>()</CODE><BR> Getter for property contactInformation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> CoordinateReferenceSystem</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapContext.html#getCoordinateReferenceSystem()">getCoordinateReferenceSystem</A></B>()</CODE><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/DefaultMapContext.html#getKeywords()">getKeywords</A></B>()</CODE><BR> Getter for property keywords.</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/DefaultMapContext.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/DefaultMapContext.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/DefaultMapContext.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/DefaultMapContext.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/DefaultMapContext.html#getTitle()">getTitle</A></B>()</CODE><BR> Getter for property title.</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/DefaultMapContext.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">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -