📄 liteshape2.html
字号:
<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/renderer/lite/LiteShape2.html#setGeometry(com.vividsolutions.jts.geom.Geometry)">setGeometry</A></B>(<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> g)</CODE><BR> Sets the geometry contained in this lite shape. </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="LiteShape2(com.vividsolutions.jts.geom.Geometry, org.opengis.referencing.operation.MathTransform, org.geotools.renderer.lite.Decimator, boolean, double)"><!-- --></A><H3>LiteShape2</H3><PRE>public <B>LiteShape2</B>(<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> geom, MathTransform mathTransform, <A HREF="../../../../org/geotools/renderer/lite/Decimator.html" title="class in org.geotools.renderer.lite">Decimator</A> decimator, boolean generalize, double maxDistance) throws TransformException, FactoryException</PRE><DL><DD>Creates a new LiteShape object.<P><DT><B>Parameters:</B><DD><CODE>geom</CODE> - - the wrapped geometry<DD><CODE>mathTransform</CODE> - - the transformation applied to the geometry in order to get to the shape points<DD><CODE>decimator</CODE> - -<DD><CODE>generalize</CODE> - - set to true if the geometry need to be generalized during rendering<DD><CODE>maxDistance</CODE> - - distance used in the generalization process<DT><B>Throws:</B><DD><CODE>TransformException</CODE><DD><CODE>FactoryException</CODE></DL><HR><A NAME="LiteShape2(com.vividsolutions.jts.geom.Geometry, org.opengis.referencing.operation.MathTransform, org.geotools.renderer.lite.Decimator, boolean)"><!-- --></A><H3>LiteShape2</H3><PRE>public <B>LiteShape2</B>(<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> geom, MathTransform mathTransform, <A HREF="../../../../org/geotools/renderer/lite/Decimator.html" title="class in org.geotools.renderer.lite">Decimator</A> decimator, boolean generalize) throws TransformException, FactoryException</PRE><DL><DD>Creates a new LiteShape object.<P><DT><B>Parameters:</B><DD><CODE>geom</CODE> - - the wrapped geometry<DD><CODE>mathTransform</CODE> - - the transformation applied to the geometry in order to get to the shape points<DD><CODE>decimator</CODE> - -<DD><CODE>generalize</CODE> - - set to true if the geometry need to be generalized during rendering<DT><B>Throws:</B><DD><CODE>TransformException</CODE><DD><CODE>FactoryException</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="setGeometry(com.vividsolutions.jts.geom.Geometry)"><!-- --></A><H3>setGeometry</H3><PRE>public void <B>setGeometry</B>(<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> g) throws TransformException, FactoryException</PRE><DL><DD>Sets the geometry contained in this lite shape. Convenient to reuse this object instead of creating it again and again during rendering<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - <DT><B>Throws:</B><DD><CODE>TransformException</CODE><DD><CODE>FactoryException</CODE></DL></DD></DL><HR><A NAME="contains(java.awt.geom.Rectangle2D)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</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> entirely contains the specified <code>Rectangle2D</code>. This method might conservatively return <code>false</code> when: <ul> <li>the <code>intersect</code> method returns <code>true</code> and </li> <li>the calculations to determine whether or not the <code>Shape</code> entirely contains the <code>Rectangle2D</code> are prohibitively expensive.</li> </ul> This means that this method might return <code>false</code> even though the <code>Shape</code> contains the <code>Rectangle2D</code>. The <code>Area</code> 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><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html#contains(java.awt.geom.Rectangle2D)" title="class or interface in java.awt">contains</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> entirely contains the <code>Rectangle2D</code>; <code>false</code> otherwise or, if the <code>Shape</code> contains the <code>Rectangle2D</code> and the <code>intersects</code> method returns <code>true</code> and the containment calculations would be too expensive to perform.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/renderer/lite/LiteShape2.html#contains(double, double, double, double)"><CODE>contains(double, double, double, double)</CODE></A></DL></DD></DL><HR><A NAME="contains(java.awt.geom.Point2D)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> p)</PRE><DL><DD>Tests if a specified <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom"><CODE>Point2D</CODE></A>is inside the boundary of 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#contains(java.awt.geom.Point2D)" title="class or interface in java.awt">contains</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>p</CODE> - a specified <code>Point2D</code><DT><B>Returns:</B><DD><code>true</code> if the specified <code>Point2D</code> is inside the boundary of the <code>Shape</code>; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="contains(double, double)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(double x, double y)</PRE><DL><DD>Tests if the specified coordinates are inside the boundary of 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#contains(double, double)" title="class or interface in java.awt">contains</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 specified coordinates, x value<DD><CODE>y</CODE> - the specified coordinates, y value<DT><B>Returns:</B><DD><code>true</code> if the specified coordinates are inside the <code>Shape</code> boundary; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="contains(double, double, double, double)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(double x, double y, double w, double h)</PRE><DL><DD>Tests if the interior of the <code>Shape</code> entirely contains the specified rectangular area. All coordinates that lie inside the rectangular area must lie within the <code>Shape</code> for the entire rectanglar area to be considered contained within the <code>Shape</code>. <p> This method might conservatively return <code>false</code> when: <ul> <li>the <code>intersect</code> method returns <code>true</code> and </li> <li>the calculations to determine whether or not the <code>Shape</code> entirely contains the rectangular area are prohibitively expensive.</li> </ul> This means that this method might return <code>false</code> even though the <code>Shape</code> contains the rectangular area. The <code>Area</code> 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#contains(double, double, double, double)" title="class or interface in java.awt">contains</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> entirely contains the specified rectangular area; <code>false</code> otherwise or, if the <code>Shape</code> contains the rectangular area and the <code>intersects</code> method returns <code>true</code> and the containment calculations would be too expensive to perform.<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>, <A HREF="../../../../org/geotools/renderer/lite/LiteShape2.html#intersects(java.awt.geom.Rectangle2D)"><CODE>intersects(java.awt.geom.Rectangle2D)</CODE></A></DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A> <B>getBounds</B>()</PRE><DL><DD>Returns an integer <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt"><CODE>Rectangle</CODE></A>that completely encloses the <code>Shape</code>. Note that there is no guarantee that the returned <code>Rectangle</code> is the smallest bounding box that encloses the <code>Shape</code>, only that the <code>Shape</code> lies entirely within the indicated <code>Rectangle</code>. The returned <code>Rectangle</code> might also fail to completely enclose the <code>Shape</code> if the <code>Shape</code> overflows the limited range of the integer data type. The <code>getBounds2D</code> method generally returns a tighter bounding box due to its greater flexibility in representation.<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#getBounds()" title="class or interface in java.awt">getBounds</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>Returns:</B><DD>an integer <code>Rectangle</code> that completely encloses the <code>Shape</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/renderer/lite/LiteShape2.html#getBounds2D()"><CODE>getBounds2D()</CODE></A></DL></DD></DL><HR><A NAME="getBounds2D()"><!-- --></A><H3>getBounds2D</H3><PRE>public <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> <B>getBounds2D</B>()</PRE><DL><DD>Returns a high precision and more accurate bounding box of the <code>Shape</code> than the <code>getBounds</code> method. Note that there is no guarantee that the returned <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom"><CODE>Rectangle2D</CODE></A>is the smallest bounding box that encloses the <code>Shape</code>, only that the <code>Shape</code> lies entirely within the indicated <code>Rectangle2D</code>. The bounding box returned by this method is usually tighter than that returned by the <code>getBounds</code> method and never fails due to overflow problems since the return value can be an instance of the <code>Rectangle2D</code> that uses double precision values to store the dimensions.<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#getBounds2D()" title="class or interface in java.awt">getBounds2D</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -