📄 defaultmaplayer.html
字号:
<A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</CODE><BR> Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#DefaultMapLayer(org.geotools.feature.FeatureCollection, org.geotools.styling.Style, java.lang.String)">DefaultMapLayer</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, <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> Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#DefaultMapLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style)">DefaultMapLayer</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> Creates a new instance of DefaultMapLayer</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#DefaultMapLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style, java.lang.String)">DefaultMapLayer</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, <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> Creates a new instance of DefaultMapLayer</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#DefaultMapLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style)">DefaultMapLayer</A></B>(GridCoverage coverage, <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><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#DefaultMapLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style, java.lang.String)">DefaultMapLayer</A></B>(GridCoverage coverage, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style, <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> * Add a new layer and trigger a <CODE>LayerListEvent</CODE>.</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/DefaultMapLayer.html#addMapLayerListener(org.geotools.map.event.MapLayerListener)">addMapLayerListener</A></B>(<A HREF="../../../org/geotools/map/event/MapLayerListener.html" title="interface in org.geotools.map.event">MapLayerListener</A> listener)</CODE><BR> Registers MapLayerListener to receive events.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/data/FeatureSource.html" title="interface in org.geotools.data">FeatureSource</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#getFeatureSource()">getFeatureSource</A></B>()</CODE><BR> Getter for property featureSource.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#getQuery()">getQuery</A></B>()</CODE><BR> Returns the definition query established for this layer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#getStyle()">getStyle</A></B>()</CODE><BR> Getter for property style.</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/DefaultMapLayer.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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/map/DefaultMapLayer.html#isVisible()">isVisible</A></B>()</CODE><BR> Getter for property visible.</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/DefaultMapLayer.html#removeMapLayerListener(org.geotools.map.event.MapLayerListener)">removeMapLayerListener</A></B>(<A HREF="../../../org/geotools/map/event/MapLayerListener.html" title="interface in org.geotools.map.event">MapLayerListener</A> listener)</CODE><BR> Removes MapLayerListener 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/DefaultMapLayer.html#setQuery(org.geotools.data.Query)">setQuery</A></B>(<A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> query)</CODE><BR> Sets a definition query for this layer. </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/DefaultMapLayer.html#setStyle(org.geotools.styling.Style)">setStyle</A></B>(<A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</CODE><BR> Setter for property style.</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/DefaultMapLayer.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> Setter for property title.</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/DefaultMapLayer.html#setVisible(boolean)">setVisible</A></B>(boolean visible)</CODE><BR> Setter for property visible.</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/DefaultMapLayer.html#toString()">toString</A></B>()</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="featureSource"><!-- --></A><H3>featureSource</H3><PRE>protected <A HREF="../../../org/geotools/data/FeatureSource.html" title="interface in org.geotools.data">FeatureSource</A> <B>featureSource</B></PRE><DL><DD>Holds value of property FeatureSource.<P><DL></DL></DL><HR><A NAME="style"><!-- --></A><H3>style</H3><PRE>protected <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> <B>style</B></PRE><DL><DD>The style to symbolize the features of this layer<P><DL></DL></DL><HR><A NAME="query"><!-- --></A><H3>query</H3><PRE>protected <A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> <B>query</B></PRE><DL><DD>The query to limit the number of rendered features based on its filter<P><DL></DL></DL><HR><A NAME="title"><!-- --></A><H3>title</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>title</B></PRE><DL><DD>Holds value of property title.<P><DL></DL></DL><HR><A NAME="visible"><!-- --></A><H3>visible</H3><PRE>protected boolean <B>visible</B></PRE><DL><DD>Whether this layer is visible or not.<P><DL></DL></DL><HR><A NAME="listenerList"><!-- --></A><H3>listenerList</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/EventListenerList.html" title="class or interface in javax.swing.event">EventListenerList</A> <B>listenerList</B></PRE><DL><DD>Utility field used by event firing mechanism.<P><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -