⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basicgraphbuilder.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a clone of the builder. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#getEdges()">getEdges</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the edges belonging to the graph being built.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#getGraph()">getGraph</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the graph being built.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#getNodes()">getNodes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the nodes belonging to the graph being built.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#importGraph(org.geotools.graph.structure.Graph)">importGraph</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a graph builder from a pre built graph. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#removeEdge(org.geotools.graph.structure.Edge)">removeEdge</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A>&nbsp;edge)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an edge from the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#removeEdges(java.util.Collection)">removeEdges</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;edges)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a collection of edges from the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#removeNode(org.geotools.graph.structure.Node)">removeNode</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A>&nbsp;node)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an node from the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/basic/BasicGraphBuilder.html#removeNodes(java.util.Collection)">removeNodes</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;nodes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a collection of nodes from the graph.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="BasicGraphBuilder()"><!-- --></A><H3>BasicGraphBuilder</H3><PRE>public <B>BasicGraphBuilder</B>()</PRE><DL><DD>Constructs a new empty graph builder.<P></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="buildNode()"><!-- --></A><H3>buildNode</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> <B>buildNode</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></B></DD><DD>Builds a new node for the graph. This method does not add the new node to  the graph, this must be done with the addNode(Node) method.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#buildNode()">buildNode</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Node The newly built node.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#buildNode()"><CODE>GraphBuilder.buildNode()</CODE></A></DL></DD></DL><HR><A NAME="buildEdge(org.geotools.graph.structure.Node, org.geotools.graph.structure.Node)"><!-- --></A><H3>buildEdge</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> <B>buildEdge</B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A>&nbsp;nodeA,                      <A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A>&nbsp;nodeB)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></B></DD><DD>Builds a new edge for the graph. This method does not add the new node to  the graph, this must be done with the addEdge(Edge) method.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#buildEdge(org.geotools.graph.structure.Node, org.geotools.graph.structure.Node)">buildEdge</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodeA</CODE> - Adjacent node to edge.<DD><CODE>nodeB</CODE> - Adjacent node to edge.<DT><B>Returns:</B><DD>Edge the newly built Edge.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#buildEdge(org.geotools.graph.structure.Node, org.geotools.graph.structure.Node)"><CODE>GraphBuilder.buildEdge(Node, Node)</CODE></A></DL></DD></DL><HR><A NAME="addNode(org.geotools.graph.structure.Node)"><!-- --></A><H3>addNode</H3><PRE>public void <B>addNode</B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A>&nbsp;node)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></B></DD><DD>Adds a node to the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#addNode(org.geotools.graph.structure.Node)">addNode</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to be added to graph.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#addNode(org.geotools.graph.structure.Node)"><CODE>GraphBuilder.addNode(Node)</CODE></A></DL></DD></DL><HR><A NAME="addEdge(org.geotools.graph.structure.Edge)"><!-- --></A><H3>addEdge</H3><PRE>public void <B>addEdge</B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A>&nbsp;edge)</PRE><DL><DD>Checks for loops in which case it only added the edge to the adjacency  list of one of the nodes (both of its nodes are the same node).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#addEdge(org.geotools.graph.structure.Edge)">addEdge</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>edge</CODE> - Edge to be added to graph.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#addEdge(org.geotools.graph.structure.Edge)"><CODE>GraphBuilder.addEdge(Edge)</CODE></A></DL></DD></DL><HR><A NAME="removeNode(org.geotools.graph.structure.Node)"><!-- --></A><H3>removeNode</H3><PRE>public void <B>removeNode</B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A>&nbsp;node)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></B></DD><DD>Removes an node from the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#removeNode(org.geotools.graph.structure.Node)">removeNode</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to be removed from graph.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#removeNode(org.geotools.graph.structure.Node)"><CODE>GraphBuilder.removeNode(Node)</CODE></A></DL></DD></DL><HR><A NAME="removeNodes(java.util.Collection)"><!-- --></A><H3>removeNodes</H3><PRE>public void <B>removeNodes</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;nodes)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></B></DD><DD>Removes a collection of nodes from the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html#removeNodes(java.util.Collection)">removeNodes</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></DL></DD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -