📄 liteshape.html
字号:
boundary and provides access to the geometry of the <code>Shape</code> outline. If an optional <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom"><CODE>AffineTransform</CODE></A> is specified, the coordinates returned in the iteration are transformed accordingly. <p> Each call to this method returns a fresh <code>PathIterator</code> object that traverses the geometry of the <code>Shape</code> object independently from any other <code>PathIterator</code> objects in use at the same time. </p> <p> It is recommended, but not guaranteed, that objects implementing the <code>Shape</code> interface isolate iterations that are in process from any changes that might occur to the original object's geometry during such iterations. </p> <p> Before using a particular implementation of the <code>Shape</code> interface in more than one thread simultaneously, refer to its documentation to verify that it guarantees that iterations are isolated from modifications. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html#getPathIterator(java.awt.geom.AffineTransform)" title="class or interface in java.awt">getPathIterator</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>at</CODE> - an optional <code>AffineTransform</code> to be applied to the coordinates as they are returned in the iteration, or <code>null</code> if untransformed coordinates are desired<DT><B>Returns:</B><DD>a new <code>PathIterator</code> object, which independently traverses the geometry of the <code>Shape</code>.</DL></DD></DL><HR><A NAME="getPathIterator(java.awt.geom.AffineTransform, double)"><!-- --></A><H3>getPathIterator</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/PathIterator.html" title="class or interface in java.awt.geom">PathIterator</A> <B>getPathIterator</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom">AffineTransform</A> at, double flatness)</PRE><DL><DD>Returns an iterator object that iterates along the <code>Shape</code> boundary and provides access to a flattened view of the <code>Shape</code> outline geometry. <p> Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types are returned by the iterator. </p> <p> If an optional <code>AffineTransform</code> is specified, the coordinates returned in the iteration are transformed accordingly. </p> <p> The amount of subdivision of the curved segments is controlled by the <code>flatness</code> parameter, which specifies the maximum distance that any point on the unflattened transformed curve can deviate from the returned flattened path segments. Note that a limit on the accuracy of the flattened path might be silently imposed, causing very small flattening parameters to be treated as larger values. This limit, if there is one, is defined by the particular implementation that is used. </p> <p> Each call to this method returns a fresh <code>PathIterator</code> object that traverses the <code>Shape</code> object geometry independently from any other <code>PathIterator</code> objects in use at the same time. </p> <p> It is recommended, but not guaranteed, that objects implementing the <code>Shape</code> interface isolate iterations that are in process from any changes that might occur to the original object's geometry during such iterations. </p> <p> Before using a particular implementation of this interface in more than one thread simultaneously, refer to its documentation to verify that it guarantees that iterations are isolated from modifications. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html#getPathIterator(java.awt.geom.AffineTransform, double)" title="class or interface in java.awt">getPathIterator</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>at</CODE> - an optional <code>AffineTransform</code> to be applied to the coordinates as they are returned in the iteration, or <code>null</code> if untransformed coordinates are desired<DD><CODE>flatness</CODE> - the maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve<DT><B>Returns:</B><DD>a new <code>PathIterator</code> that independently traverses the <code>Shape</code> geometry.</DL></DD></DL><HR><A NAME="intersects(java.awt.geom.Rectangle2D)"><!-- --></A><H3>intersects</H3><PRE>public boolean <B>intersects</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> r)</PRE><DL><DD>Tests if the interior of the <code>Shape</code> intersects the interior of a specified <code>Rectangle2D</code>. This method might conservatively return <code>true</code> when: <ul> <li> there is a high probability that the <code>Rectangle2D</code> and the <code>Shape</code> intersect, but </li> <li> the calculations to accurately determine this intersection are prohibitively expensive. </li> </ul> This means that this method might return <code>true</code> even though the <code>Rectangle2D</code> does not intersect the <code>Shape</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html#intersects(java.awt.geom.Rectangle2D)" title="class or interface in java.awt">intersects</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the specified <code>Rectangle2D</code><DT><B>Returns:</B><DD><code>true</code> if the interior of the <code>Shape</code> and the interior of the specified <code>Rectangle2D</code> intersect, or are both highly likely to intersect and intersection calculations would be too expensive to perform; <code>false</code> otherwise.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/renderer/lite/LiteShape.html#intersects(double, double, double, double)"><CODE>intersects(double, double, double, double)</CODE></A></DL></DD></DL><HR><A NAME="intersects(double, double, double, double)"><!-- --></A><H3>intersects</H3><PRE>public boolean <B>intersects</B>(double x, double y, double w, double h)</PRE><DL><DD>Tests if the interior of the <code>Shape</code> intersects the interior of a specified rectangular area. The rectangular area is considered to intersect the <code>Shape</code> if any point is contained in both the interior of the <code>Shape</code> and the specified rectangular area. <p> This method might conservatively return <code>true</code> when: <ul> <li> there is a high probability that the rectangular area and the <code>Shape</code> intersect, but </li> <li> the calculations to accurately determine this intersection are prohibitively expensive. </li> </ul> This means that this method might return <code>true</code> even though the rectangular area does not intersect the <code>Shape</code>. The <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Area.html" title="class or interface in java.awt.geom"><CODE>Area</CODE></A> class can be used to perform more accurate computations of geometric intersection for any <code>Shape</code> object if a more precise answer is required. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html#intersects(double, double, double, double)" title="class or interface in java.awt">intersects</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the coordinates of the specified rectangular area, x value<DD><CODE>y</CODE> - the coordinates of the specified rectangular area, y value<DD><CODE>w</CODE> - the width of the specified rectangular area<DD><CODE>h</CODE> - the height of the specified rectangular area<DT><B>Returns:</B><DD><code>true</code> if the interior of the <code>Shape</code> and the interior of the rectangular area intersect, or are both highly likely to intersect and intersection calculations would be too expensive to perform; <code>false</code> otherwise.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Area.html" title="class or interface in java.awt.geom"><CODE>Area</CODE></A></DL></DD></DL><HR><A NAME="getAffineTransform()"><!-- --></A><H3>getAffineTransform</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/AffineTransform.html" title="class or interface in java.awt.geom">AffineTransform</A> <B>getAffineTransform</B>()</PRE><DL><DD>Returns the affine transform for this lite shape<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getGeometry()"><!-- --></A><H3>getGeometry</H3><PRE>public <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> <B>getGeometry</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></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> </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/LiteShape.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/renderer/lite/LiteRenderer2.html" title="class in org.geotools.renderer.lite"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/renderer/lite/LiteShape2.html" title="class in org.geotools.renderer.lite"><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="LiteShape.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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 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 + -