📄 gtdelta.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:23 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>GTDelta (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.event.GTDelta interface"><META NAME="keywords" CONTENT="NO_CHILDREN"><META NAME="keywords" CONTENT="NO_INDEX"><META NAME="keywords" CONTENT="getKind()"><META NAME="keywords" CONTENT="getValue()"><META NAME="keywords" CONTENT="getOldValue()"><META NAME="keywords" CONTENT="getPosition()"><META NAME="keywords" CONTENT="getName()"><META NAME="keywords" CONTENT="getChildren()"><META NAME="keywords" CONTENT="accept()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="GTDelta (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/GTDelta.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/event/GTComponent.html" title="interface in org.geotools.event"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/event/GTDeltaVisitor.html" title="interface in org.geotools.event"><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="GTDelta.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.event</FONT><BR>Interface GTDelta</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/geotools/event/GTDeltaImpl.html" title="class in org.geotools.event">GTDeltaImpl</A></DD></DL><HR><DL><DT>public interface <B>GTDelta</B></DL><P>Indicates which style constructs have been changed. <p> Acts as a series of breadcrumbs stored up by a StyleEvent to communicate changes. </p> <p> This delta is constructed a fashion following the outline of the style document, allowing you to skip over entire branches of changes if you are not interested. </p> <h2>Example Use</h2> <p> The following examples will make use of the following allegorical data structure <pre><code> Root +--Parent +-- Child +-- List [0]--Element </code></pre> These roles are allegorical in nature any may be played in real life by arrays, beans, collections, etc.. (as example StyleLayerDescriptor is a "Root"). </p> <p> Example 0: An <b>Child</b> is changed. <pre><code> Event.POST_CHANGE +---Delta1 "" -1 NO_CHANGE(Root,null,) +---Delta2 "Parent" -1 NO_CHANGE (Parent, null ) +---Delta3 "Child" -1 CHANGED (Child, oldChild ) </code></pre> Location of <i>change</i> is indicated by delta, including name of "Child". The oldChild is provided incase you need to un-listen or something. Parent is not considered to have changed itself (it is still has the same structure). </p> <p> Example 1: An <b>Element</b> is changed: <pre><code> Event.POST_CHANGE +---Delta1 "" -1 NO_CHANGE(Root,null,) +---Delta2 "Parent" -1 NO_CHANGE (Parent, null ) +---Delta3 "List" 0 CHANGED (Element, null ) </code></pre> Location of <i>change</i> is indicated by delta, including position in list. Children in lists are children too, delta intentionally similar to the last. </p> <p> Example 2: A new <b>Element2</b> is added: <pre><code> Event.POST_CHANGE +---Delta1 "" -1 NO_CHANGE(Root,null,) +---Delta2 "Parent" -1 CHANGED (Parent, null ) +---Delta3 "List" 1 ADDED (Element2, null ) </code></pre> </p> Adding Element2 results in a change to Parent (it is structured diffrently). Position of the change in the "List" is indicated. <p> Example 3: Swap <b>Element</b> and Element2 <pre><code> Event.POST_CHANGE +---Delta1 "" -1 NO_CHANGE(Root,null,) +---Delta2 "Parent" -1 CHANGED (Parent, null ) +---Delta3 "List" 1 NO_CHANGE (Element, null ) +---Delta4 "List" 0 NO_CHANGE (Element2, null ) </code></pre> Moving things around does not change them, but it is a change to the Parent. </p> <p> Example 5: Remove <b>Element2</b> <pre><code> Event.POST_CHANGE +---Delta1 "" -1 NO_CHANGE(Root,null,) +---Delta2 "Parent" -1 CHANGED (Parent, null ) +---Delta3 "List" -1 REMOVED ( null, Element2 ) +---Delta4 "List" 0 NO_CHANGE (Element, null ) </code></pre> Removing also is a considered a change to Parent, note this is a POST_CHANGE event so Element2 is an oldValue. The NO_CHANGE for Element is similar to Example4, it still indicates a change of position. </p> <p> Example 6: Go Fish <pre><code> Event.POST_CHANGE +---Delta1 "" -1 CHANGED(Root,null,) </code></pre> Something changed somewhere, similar to "touch". </p> <p> Example 7: Shutting Down <pre><code> Event.PRE_CLOSE +---Delta1 "" -1 NO_CHANGE(Root,null,) </code></pre> That was easy then... </p> <p> You should be aware that the event system may "collapse" events that duplicate information, especially when considering batch changes resulting from the application of a visitor or transformation. </p><P><P><DL><DT><B>Author:</B></DT> <DD>Jody Garnett, Refractions Research</DD><DT><B>Module:</B></DT><DD><CODE><B>module/api</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-api/"><CODE>gt2-api.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/api/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/api/src/org/geotools/event/GTDelta.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/event/GTDelta.Kind.html" title="class in org.geotools.event">GTDelta.Kind</A></B></CODE><BR> Kind of Delta, used to indicate change.</TD></TR></TABLE> <!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/event/GTDelta.html#NO_CHILDREN">NO_CHILDREN</A></B></CODE><BR> List indicating no children are present</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/event/GTDelta.html#NO_INDEX">NO_INDEX</A></B></CODE><BR> Index position is not to be considered relevent</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== 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/event/GTDelta.html#accept(org.geotools.event.GTDeltaVisitor)">accept</A></B>(<A HREF="../../../org/geotools/event/GTDeltaVisitor.html" title="interface in org.geotools.event">GTDeltaVisitor</A> visitor)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -