📄 featureevent.html
字号:
<!-- ============ 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="FEATURES_ADDED"><!-- --></A><H3>FEATURES_ADDED</H3><PRE>public static final int <B>FEATURES_ADDED</B></PRE><DL><DD>Event type constant denoting the adding of a feature. <p> This EventType is used when FeatureWriter.write() is called when <code>FeatureWriter.hasNext()</code> has previously returned <code>false</code>. This action represents a newly create Feature being passed to the DataStore. </p> <p> The FeatureWriter making the modification will need to check that <code>typeName</code> it is modifing matches the <code>FeatureSource.getSchema().getTypeName()</code> before sending notification to any listeners on the FeatureSource. </p> <p> If the FeatureWriter is opperating against a Transaction it will need ensure that to check the FeatureSource.getTransaction() for a match before sending notification to any listeners on the FeatureSource. </p> <p> FeatureEvent.getBounds() should reflect the the Bounding Box of the newly created Features. </p><P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.data.FeatureEvent.FEATURES_ADDED">Constant Field Values</A></DL></DL><HR><A NAME="FEATURES_CHANGED"><!-- --></A><H3>FEATURES_CHANGED</H3><PRE>public static final int <B>FEATURES_CHANGED</B></PRE><DL><DD>Event type constant denoting that features in the collection has been modified. <p> This EventType is used when a FeatureWriter.write() is called when <code>FeatureWriter.hasNext()</code> returns <code>true</code> and the current Feature has been changed. This EventType is also used when a Transaction <code>commit()</code> or <code>rolledback</code> is called. </p> <p> The FeatureWriter making the modification will need to check that <code>typeName</code> it is modifing matches the <code>FeatureSource.getSchema().getTypeName()</code> before sending notification to any listeners on the FeatureSource. </p> <p> If the FeatureWriter is opperating against a Transaction it will need ensure that to check the FeatureSource.getTransaction() for a match before sending notification to any listeners on the FeatureSource. All FeatureSources of the same typename will need to be informed of a <code>commit</code>, except ones in the same Transaction, and only FeatureSources in the same Transaction will need to be informed of a rollback. </p> <p> FeatureEvent.getBounds() should reflect the the BoundingBox of the FeatureWriter modified Features. This may not be possible during a <code>commit()</code> or <code>rollback()</code> opperation. </p><P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.data.FeatureEvent.FEATURES_CHANGED">Constant Field Values</A></DL></DL><HR><A NAME="FEATURES_REMOVED"><!-- --></A><H3>FEATURES_REMOVED</H3><PRE>public static final int <B>FEATURES_REMOVED</B></PRE><DL><DD>Event type constant denoting the removal of a feature. <p> This EventType is used when FeatureWriter.remove() is called. This action represents a Feature being removed from the DataStore. </p> <p> The FeatureWriter making the modification will need to check that <code>typeName</code> it is modifing matches the <code>FeatureSource.getSchema().getTypeName()</code> before sending notification to any listeners on the FeatureSource. </p> <p> If the FeatureWriter is opperating against a Transaction it will need ensure that to check the FeatureSource.getTransaction() for a match before sending notification to any listeners on the FeatureSource. </p> <p> FeatureEvent.getBounds() should reflect the the Bounding Box of the removed Features. </p><P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.data.FeatureEvent.FEATURES_REMOVED">Constant Field Values</A></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="FeatureEvent(org.geotools.data.FeatureSource, int, com.vividsolutions.jts.geom.Envelope)"><!-- --></A><H3>FeatureEvent</H3><PRE>public <B>FeatureEvent</B>(<A HREF="../../../org/geotools/data/FeatureSource.html" title="interface in org.geotools.data">FeatureSource</A> featureSource, int eventType, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> bounds)</PRE><DL><DD>Constructs a new FeatureEvent.<P><DT><B>Parameters:</B><DD><CODE>featureSource</CODE> - The DataStore that fired the event<DD><CODE>eventType</CODE> - One of FEATURE_CHANGED, FEATURE_REMOVED or FEATURE_ADDED<DD><CODE>bounds</CODE> - The area modified by this change</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>Provides access to the FeatureSource which fired the event.<P><DD><DL><DT><B>Returns:</B><DD>The FeatureSource which was the event's source.</DL></DD></DL><HR><A NAME="getEventType()"><!-- --></A><H3>getEventType</H3><PRE>public int <B>getEventType</B>()</PRE><DL><DD>Provides information on the type of change that has occured. Possible types are: add, remove, change<P><DD><DL><DT><B>Returns:</B><DD>an int which must be one of FEATURES_ADDED, FEATURES_REMOVED, FEATURES_CHANGED</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> <B>getBounds</B>()</PRE><DL><DD>Provides access to the area modified (if known).<P><DD><DL><DT><B>Returns:</B><DD>A bounding box of the modifications or <code>null</code> if unknown.</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/FeatureEvent.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/data/EmptyFeatureWriter.html" title="class in org.geotools.data"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/data/FeatureListenerManager.html" title="class in org.geotools.data"><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="FeatureEvent.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 + -