📄 optlinegraphgenerator.html
字号:
<CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/OptLineGraphGenerator.html#generateNodes()">generateNodes</A></B>()</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/Graphable.html" title="interface in org.geotools.graph.structure">Graphable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/build/line/OptLineGraphGenerator.html#get(java.lang.Object)">get</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> 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/OptLineGraphGenerator.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/OptLineGraphGenerator.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/OptLineGraphGenerator.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>protected <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/graph/build/line/OptLineGraphGenerator.html#getLines()">getLines</A></B>()</CODE><BR> Returns the lines added to the graph.</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/OptLineGraphGenerator.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/OptLineGraphGenerator.html#getNodeMap()">getNodeMap</A></B>()</CODE><BR> Returns the coordinate to node map. </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/OptLineGraphGenerator.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> Unsupported operation.</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/OptLineGraphGenerator.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></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="OptLineGraphGenerator()"><!-- --></A><H3>OptLineGraphGenerator</H3><PRE>public <B>OptLineGraphGenerator</B>()</PRE><DL><DD>Constructs a new OptLineGraphGenerator.<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. Note that this method returns null since actual building of the graph components is delayed until generate() is called.<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> - A LineSegment object.<DT><B>Returns:</B><DD>null because the actual building of the graph components is delayed until generate() is called.</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. This method must be called after the call to generate(). 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>Unsupported operation.<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>The graph component used to model the object.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE></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><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#setGraphBuilder(org.geotools.graph.build.GraphBuilder)">setGraphBuilder</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>builder</CODE> - The new underlying GraphBuilder.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#setGraphBuilder(org.geotools.graph.build.GraphBuilder)"><CODE>GraphGenerator.setGraphBuilder(GraphBuilder)</CODE></A></DL></DD></DL><HR><A NAME="getGraphBuilder()"><!-- --></A><H3>getGraphBuilder</H3><PRE>public <A HREF="../../../../../org/geotools/graph/build/GraphBuilder.html" title="interface in org.geotools.graph.build">GraphBuilder</A> <B>getGraphBuilder</B>()</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>Returns the underlying builder.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html#getGraphBuilder()">getGraphBuilder</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/build/GraphGenerator.html" title="interface in org.geotools.graph.build">GraphGenerator</A></CODE></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -