📄 basiclinegraphgenerator.html
字号:
Returns the edge which represents a line. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#getEdge(com.vividsolutions.jts.geom.Coordinate, com.vividsolutions.jts.geom.Coordinate)">getEdge</A></B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> c1, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> c2)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/line/BasicLineGraphGenerator.html#getGraph()">getGraph</A></B>()</CODE><BR> Returns the graph being generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#getGraphBuilder()">getGraphBuilder</A></B>()</CODE><BR> Returns the underlying builder.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#getNode(com.vividsolutions.jts.geom.Coordinate)">getNode</A></B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Coordinate.html" title="class or interface in com.vividsolutions.jts.geom">Coordinate</A> c)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#getNodeMap()">getNodeMap</A></B>()</CODE><BR> Returns the coordinate to node map used to build nodes representing line endpoint coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#remove(java.lang.Object)">remove</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</CODE><BR> Removes the edge from the graph that represents a line.</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/graph/build/line/BasicLineGraphGenerator.html#setGraphBuilder(org.geotools.graph.build.GraphBuilder)">setGraphBuilder</A></B>(<A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A> builder)</CODE><BR> Sets the underlying builder used to physically construct the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#setObject(org.geotools.graph.structure.Edge, java.lang.Object)">setObject</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> e, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/BasicLineGraphGenerator.html#setObject(org.geotools.graph.structure.Node, java.lang.Object)">setObject</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> n, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</CODE><BR> </TD></TR></TABLE> <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> <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="BasicLineGraphGenerator()"><!-- --></A><H3>BasicLineGraphGenerator</H3><PRE>public <B>BasicLineGraphGenerator</B>()</PRE><DL><DD>Constructs a new BasicLineGraphGenerator.<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="add(java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A> <B>add</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Adds a line to the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#add(java.lang.Object)">add</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html" title="interface in org.geotools.graph.build">GraphGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - An instance of LineSegment.<DT><B>Returns:</B><DD>A BasicEdge.<DT><B>See Also:</B><DD><A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/LineSegment.html" title="class or interface in com.vividsolutions.jts.geom"><CODE>LineSegment</CODE></A>, <A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#add(java.lang.Object)"><CODE>GraphGenerator.add(Object)</CODE></A></DL></DD></DL><HR><A NAME="get(java.lang.Object)"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A> <B>get</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Returns the edge which represents a line. Note that if the exact same line has been added to the graph multiple times, then only one of the edges that represents it will be returned. It is undefined which edge will be returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#get(java.lang.Object)">get</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html" title="interface in org.geotools.graph.build">GraphGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - An instance of LineSegment.<DT><B>Returns:</B><DD>Edge that represents the line.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#get(java.lang.Object)"><CODE>GraphGenerator.get(Object)</CODE></A></DL></DD></DL><HR><A NAME="remove(java.lang.Object)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="../../../../../org/geotools/graph/structure/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A> <B>remove</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Removes the edge from the graph that represents a line.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#remove(java.lang.Object)">remove</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html" title="interface in org.geotools.graph.build">GraphGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - The object modelled by the component.<DT><B>Returns:</B><DD>Edge that represents the line.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#remove(java.lang.Object)"><CODE>GraphGenerator.remove(Object)</CODE></A></DL></DD></DL><HR><A NAME="setGraphBuilder(org.geotools.graph.build.GraphBuilder)"><!-- --></A><H3>setGraphBuilder</H3><PRE>public void <B>setGraphBuilder</B>(<A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A> builder)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html" title="interface in org.geotools.graph.build">GraphGenerator</A></CODE></B></DD><DD>Sets the underlying builder used to physically construct the graph.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -