📄 maplayer.html
字号:
<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="getFeatureSource()"><!-- --></A><H3>getFeatureSource</H3><PRE>public <A HREF="../../../org/geotools/data/FeatureSource.html" title="interface in org.geotools.data">FeatureSource</A> <B>getFeatureSource</B>()</PRE><DL><DD>Get the feature collection for this layer. If features has not been set yet, then null is returned.<P><DD><DL><DT><B>Returns:</B><DD>the features for this layer.</DL></DD></DL><HR><A NAME="getStyle()"><!-- --></A><H3>getStyle</H3><PRE>public <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> <B>getStyle</B>()</PRE><DL><DD>Get the style for this layer. If style has not been set, then null is returned.<P><DD><DL><DT><B>Returns:</B><DD>The style (SLD).</DL></DD></DL><HR><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>Sets the style for this layer. If a style has not been defined a default one is used.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - The new style</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>Get the title of this layer. If title has not been defined then an empty string is returned.<P><DD><DL><DT><B>Returns:</B><DD>The title of this layer.</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>Set the title of this layer. A <CODE>LayerEvent</CODE> is fired if the new title is different from the previous one.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - The title of this layer.</DL></DD></DL><HR><A NAME="isVisible()"><!-- --></A><H3>isVisible</H3><PRE>public boolean <B>isVisible</B>()</PRE><DL><DD>Determine whether this layer is visible on a map pane or whether the layer is hidden.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the layer is visible, or <code>false</code> if the layer is hidden.</DL></DD></DL><HR><A NAME="setVisible(boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(boolean visible)</PRE><DL><DD>Specify whether this layer is visible on a map pane or whether the layer is hidden. A <CODE>LayerEvent</CODE> is fired if the visibility changed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visible</CODE> - Show the layer if <code>true</code>, or hide the layer if <code>false</code></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 (filter) for this layer. If no definition query has been defined <CODE>Query.ALL</CODE> is returned.<P><DD><DL></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 the layer wich acts as a filter for the features that the layer will draw. <p> A consumer must ensure that this query is used in combination with the bounding box filter generated on each map interaction to limit the number of features returned to those that complains both the definition query and relies inside the area of interest. </p> <p> IMPORTANT: only include attribute names in the query if you want them to be ALWAYS returned. It is desirable to not include attributes at all but let the layer user (a renderer?) to decide wich attributes are actually needed to perform its requiered operation. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - </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>Add a listener to notify when a layer property changes. Changes include layer visibility and the title text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The listener to add to the listener list.</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 a listener from the listener list for this layer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The listener to remove from the listener list.</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/MapLayer.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/MapContext.html" title="interface in org.geotools.map"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="MapLayer.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -