📄 defaultmaplayer.html
字号:
<A NAME="setStyle(org.geotools.styling.Style)"><!-- --></A><H3>setStyle</H3><PRE>public void <B>setStyle</B>(<A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style)</PRE><DL><DD>Setter for property style.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#setStyle(org.geotools.styling.Style)">setStyle</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - New value of property style.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="getTitle()"><!-- --></A><H3>getTitle</H3><PRE>public <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>getTitle</B>()</PRE><DL><DD>Getter for property title.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#getTitle()">getTitle</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of property title.</DL></DD></DL><HR><A NAME="setTitle(java.lang.String)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</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)</PRE><DL><DD>Setter for property title.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#setTitle(java.lang.String)">setTitle</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - New value of property title.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="isVisible()"><!-- --></A><H3>isVisible</H3><PRE>public boolean <B>isVisible</B>()</PRE><DL><DD>Getter for property visible.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#isVisible()">isVisible</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of property visible.</DL></DD></DL><HR><A NAME="setVisible(boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(boolean visible)</PRE><DL><DD>Setter for property visible.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#setVisible(boolean)">setVisible</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>visible</CODE> - New value of property visible.</DL></DD></DL><HR><A NAME="getQuery()"><!-- --></A><H3>getQuery</H3><PRE>public <A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> <B>getQuery</B>()</PRE><DL><DD>Returns the definition query established for this layer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#getQuery()">getQuery</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the definition query established for this layer. If not set, just returns <CODE>Query.ALL</CODE>, if set, returns a copy of the actual query object to avoid external modification<DT><B>See Also:</B><DD><A HREF="../../../org/geotools/map/MapLayer.html#getQuery()"><CODE>MapLayer.getQuery()</CODE></A></DL></DD></DL><HR><A NAME="setQuery(org.geotools.data.Query)"><!-- --></A><H3>setQuery</H3><PRE>public void <B>setQuery</B>(<A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> query)</PRE><DL><DD>Sets a definition query for this layer. <p> If present (other than <code>Query.ALL</code>, a renderer or consumer must use it to limit the number of returned features based on the filter it holds and the value of the maxFeatures attributes, and also can use it as a performance hto limit the number of requested attributes </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#setQuery(org.geotools.data.Query)">setQuery</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - the full filter for this layer.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if no query is passed on. If you want to reset a definition query, pass it <CODE>Query.ALL</CODE> instead of <code>null</code><DT><B>See Also:</B><DD><A HREF="../../../org/geotools/map/MapLayer.html#setQuery(org.geotools.data.Query)"><CODE>MapLayer.setQuery(org.geotools.data.Query)</CODE></A><DT><B>'TODO:'</B></DT> <DD>TODO: test that the query filter is siutable for the layer's <code>FeatureSource</code> schema</DD></DL></DD></DL><HR><A NAME="addMapLayerListener(org.geotools.map.event.MapLayerListener)"><!-- --></A><H3>addMapLayerListener</H3><PRE>public void <B>addMapLayerListener</B>(<A HREF="../../../org/geotools/map/event/MapLayerListener.html" title="interface in org.geotools.map.event">MapLayerListener</A> listener)</PRE><DL><DD>Registers MapLayerListener to receive events.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#addMapLayerListener(org.geotools.map.event.MapLayerListener)">addMapLayerListener</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The listener to register.</DL></DD></DL><HR><A NAME="removeMapLayerListener(org.geotools.map.event.MapLayerListener)"><!-- --></A><H3>removeMapLayerListener</H3><PRE>public void <B>removeMapLayerListener</B>(<A HREF="../../../org/geotools/map/event/MapLayerListener.html" title="interface in org.geotools.map.event">MapLayerListener</A> listener)</PRE><DL><DD>Removes MapLayerListener from the list of listeners.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#removeMapLayerListener(org.geotools.map.event.MapLayerListener)">removeMapLayerListener</A></CODE> in interface <CODE><A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map">MapLayer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The listener to remove.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <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>toString</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultMapLayer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/map/DefaultMapContext.html" title="class in org.geotools.map"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/map/GraphicEnhancedMapContext.html" title="class in org.geotools.map"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DefaultMapLayer.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -