📄 defaultmaplayer.html
字号:
</DL></DL><HR><A NAME="sourceListener"><!-- --></A><H3>sourceListener</H3><PRE>protected <A HREF="../../../org/geotools/data/FeatureListener.html" title="interface in org.geotools.data">FeatureListener</A> <B>sourceListener</B></PRE><DL><DD>Listener to forward feature source events as layer events<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DefaultMapLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style, java.lang.String)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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)</PRE><DL><DD>Creates a new instance of DefaultMapLayer<P><DT><B>Parameters:</B><DD><CODE>featureSource</CODE> - the data source for this layer<DD><CODE>style</CODE> - the style used to represent this layer<DD><CODE>title</CODE> - the layer 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><HR><A NAME="DefaultMapLayer(org.geotools.data.FeatureSource, org.geotools.styling.Style)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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>Creates a new instance of DefaultMapLayer<P><DT><B>Parameters:</B><DD><CODE>featureSource</CODE> - the data source for this layer<DD><CODE>style</CODE> - the style used to represent this layer</DL><HR><A NAME="DefaultMapLayer(org.geotools.feature.FeatureCollection, org.geotools.styling.Style, java.lang.String)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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)</PRE><DL><DD>Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter<P><DT><B>Parameters:</B><DD><CODE>collection</CODE> - the source feature collection<DD><CODE>style</CODE> - the style used to represent this layer<DD><CODE>title</CODE> - DOCUMENT ME!</DL><HR><A NAME="DefaultMapLayer(org.geotools.feature.FeatureCollection, org.geotools.styling.Style)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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>Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter<P><DT><B>Parameters:</B><DD><CODE>collection</CODE> - the source feature collection<DD><CODE>style</CODE> - the style used to represent this layer</DL><HR><A NAME="DefaultMapLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</B>(GridCoverage coverage, <A HREF="../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> style) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>* Add a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>coverage</CODE> - The new layer that has been added.<DD><CODE>style</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE>TransformException</CODE></DL><HR><A NAME="DefaultMapLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style, java.lang.String, org.opengis.parameter.GeneralParameterValue[])"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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, <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, GeneralParameterValue[] params) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Constructor which adds a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>reader</CODE> - a reader with the new layer that will be added.<DD><CODE>style</CODE> - for this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DD><CODE>title</CODE> - for this <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map"><CODE>MapLayer</CODE></A>.<DD><CODE>params</CODE> - for controlling how to read coverages out of this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE>TransformException</CODE></DL><HR><A NAME="DefaultMapLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style, java.lang.String)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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, <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) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Constructor which adds a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>reader</CODE> - a reader with the new layer that will be added.<DD><CODE>style</CODE> - for this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DD><CODE>title</CODE> - for this <A HREF="../../../org/geotools/map/MapLayer.html" title="interface in org.geotools.map"><CODE>MapLayer</CODE></A>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE>TransformException</CODE></DL><HR><A NAME="DefaultMapLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Constructor which adds a new layer and triggers a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>reader</CODE> - a reader with the new layer that will be added<DD><CODE>style</CODE> - for this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE>TransformException</CODE></DL><HR><A NAME="DefaultMapLayer(org.geotools.data.coverage.grid.AbstractGridCoverage2DReader, org.geotools.styling.Style, org.opengis.parameter.GeneralParameterValue[])"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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, GeneralParameterValue[] params) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Constructor which adds a new layer and triggers a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>reader</CODE> - a reader with the new layer that will be added<DD><CODE>style</CODE> - for this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DD><CODE>params</CODE> - for controlling how to read coverages out of this <A HREF="../../../org/geotools/data/coverage/grid/AbstractGridCoverage2DReader.html" title="class in org.geotools.data.coverage.grid"><CODE>AbstractGridCoverage2DReader</CODE></A>.<DT><B>Throws:</B><DD><CODE>TransformException</CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE></DL><HR><A NAME="DefaultMapLayer(org.opengis.coverage.grid.GridCoverage, org.geotools.styling.Style, java.lang.String)"><!-- --></A><H3>DefaultMapLayer</H3><PRE>public <B>DefaultMapLayer</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) throws TransformException, <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>, <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A>, <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>* Add a new layer and trigger a <CODE>LayerListEvent</CODE>.<P><DT><B>Parameters:</B><DD><CODE>coverage</CODE> - The new layer that has been added.<DD><CODE>style</CODE> - <DD><CODE>title</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE><DD><CODE>TransformException</CODE></DL><!-- ============ 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="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>Getter for property featureSource.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#getFeatureSource()">getFeatureSource</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 featureSource.</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>Getter for property style.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/map/MapLayer.html#getStyle()">getStyle</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 style.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -