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

📄 multilinehandler.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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="MultiLineHandler(org.geotools.data.shapefile.shp.ShapeType, com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.operation.MathTransform, boolean, java.awt.Rectangle)"><!-- --></A><H3>MultiLineHandler</H3><PRE>public <B>MultiLineHandler</B>(<A HREF="../../../../org/geotools/data/shapefile/shp/ShapeType.html" title="class in org.geotools.data.shapefile.shp">ShapeType</A>&nbsp;type,                        <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>&nbsp;env,                        MathTransform&nbsp;mt,                        boolean&nbsp;hasOpacity,                        <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A>&nbsp;screenSize)                 throws TransformException</PRE><DL><DD>Create new instance<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of shape.<DD><CODE>env</CODE> - the area that is visible. If shape is not in area then skip.<DD><CODE>mt</CODE> - the transform to go from data to the envelope (and that should        be used to transform the shape coords)<DD><CODE>hasOpacity</CODE> - <DD><CODE>screenSize</CODE> - <DT><B>Throws:</B><DD><CODE>TransformException</CODE></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="getShapeType()"><!-- --></A><H3>getShapeType</H3><PRE>public <A HREF="../../../../org/geotools/data/shapefile/shp/ShapeType.html" title="class in org.geotools.data.shapefile.shp">ShapeType</A> <B>getShapeType</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></B></DD><DD>Get the ShapeType of this handler.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#getShapeType()">getShapeType</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The ShapeType.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#getShapeType()"><CODE>ShapeHandler.getShapeType()</CODE></A></DL></DD></DL><HR><A NAME="read(java.nio.ByteBuffer, org.geotools.data.shapefile.shp.ShapeType)"><!-- --></A><H3>read</H3><PRE>public <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>read</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;buffer,                   <A HREF="../../../../org/geotools/data/shapefile/shp/ShapeType.html" title="class in org.geotools.data.shapefile.shp">ShapeType</A>&nbsp;type)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></B></DD><DD>Read a geometry from the ByteBuffer. The buffer's position, byteOrder, and limit are set to that which is needed. The record has been read as well as the shape type integer. The handler need not worry about reading unused information as the ShapefileReader will correctly adjust the buffer position after this call.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#read(java.nio.ByteBuffer, org.geotools.data.shapefile.shp.ShapeType)">read</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The ByteBuffer to read from.<DT><B>Returns:</B><DD>A geometry object.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#read(java.nio.ByteBuffer, org.geotools.data.shapefile.shp.ShapeType)"><CODE>ShapeHandler.read(java.nio.ByteBuffer,      org.geotools.data.shapefile.shp.ShapeType)</CODE></A></DL></DD></DL><HR><A NAME="bboxIntersectSegment(boolean, double[], int)"><!-- --></A><H3>bboxIntersectSegment</H3><PRE>public boolean <B>bboxIntersectSegment</B>(boolean&nbsp;intersection,                                    double[]&nbsp;coords,                                    int&nbsp;index)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="intersect(double, double, double, double, double, double, double, double)"><!-- --></A><H3>intersect</H3><PRE>public static boolean <B>intersect</B>(double&nbsp;x0,                                double&nbsp;y0,                                double&nbsp;x1,                                double&nbsp;y1,                                double&nbsp;xmin,                                double&nbsp;ymin,                                double&nbsp;xmax,                                double&nbsp;ymax)</PRE><DL><DD>Uses Cohen Sutherland line clipping algorithm to determine intersection. See  Computer Graphics: Principles and Practice Foley, van Dam, Feiner, Hughes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x0</CODE> - DOCUMENT ME!<DD><CODE>y0</CODE> - DOCUMENT ME!<DD><CODE>x1</CODE> - DOCUMENT ME!<DD><CODE>y1</CODE> - DOCUMENT ME!<DD><CODE>xmin</CODE> - DOCUMENT ME!<DD><CODE>ymin</CODE> - DOCUMENT ME!<DD><CODE>xmax</CODE> - DOCUMENT ME!<DD><CODE>ymax</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!</DL></DD></DL><HR><A NAME="write(java.nio.ByteBuffer, java.lang.Object)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/ByteBuffer.html" title="class or interface in java.nio">ByteBuffer</A>&nbsp;buffer,                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;geometry)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></B></DD><DD>Write the geometry into the ByteBuffer. The position, byteOrder, and limit are all set. The handler is not responsible for writing the record or shape type integer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#write(java.nio.ByteBuffer, java.lang.Object)">write</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The ByteBuffer to write to.<DD><CODE>geometry</CODE> - The geometry to write.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#write(java.nio.ByteBuffer, java.lang.Object)"><CODE>ShapeHandler.write(java.nio.ByteBuffer,      java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="getLength(java.lang.Object)"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</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>&nbsp;geometry)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></B></DD><DD>Get the length of the given geometry Object in <b>bytes</b> not 16-bit words. This is easier to keep track of, since the ByteBuffer deals with bytes. <b>Do not include the 8 bytes of record.</b><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#getLength(java.lang.Object)">getLength</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html" title="interface in org.geotools.data.shapefile.shp">ShapeHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - The geometry to analyze.<DT><B>Returns:</B><DD>The number of <b>bytes</b> the shape will take up.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/shapefile/shp/ShapeHandler.html#getLength(java.lang.Object)"><CODE>ShapeHandler.getLength(java.lang.Object)</CODE></A></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MultiLineHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/geotools/renderer/shape/IndexInfo.html" title="class in org.geotools.renderer.shape"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/renderer/shape/MultiLineShape.html" title="class in org.geotools.renderer.shape"><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>  &nbsp;&nbsp;<A HREF="MultiLineHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -