📄 referencedgraphic2d.html
字号:
<DT><B>Parameters:</B><DD><CODE>crs</CODE> - The new objective CRS.<DT><B>Throws:</B><DD><CODE>TransformException</CODE> - If this method do not accept the new CRS. In such case, this method should keep the old CRS and leaves this graphic in a consistent state.</DL></DD></DL><HR><A NAME="setEnvelope(org.opengis.spatialschema.geometry.Envelope)"><!-- --></A><H3>setEnvelope</H3><PRE>protected void <B>setEnvelope</B>(Envelope envelope) throws TransformException</PRE><DL><DD>Set the envelope for this graphic. Subclasses should invokes this method as soon as they known their envelope.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html#setEnvelope(org.opengis.spatialschema.geometry.Envelope)">setEnvelope</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html" title="class in org.geotools.display.canvas">ReferencedGraphic</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>TransformException</CODE> - if the specified envelope can't be transformed to the <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html#getObjectiveCRS()">objective CRS</A>.</DL></DD></DL><HR><A NAME="refresh()"><!-- --></A><H3>refresh</H3><PRE>public void <B>refresh</B>()</PRE><DL><DD>Advises that this graphic need to be repainted. The graphic will not be repainted immediately, but at some later time depending on the widget implementation (e.g. <cite>Swing</cite>). This method can be invoked from any thread; it doesn't need to be the <cite>Swing</cite> thread. <p> Note that this method repaint only the area painted during the last <A HREF="../../../../org/geotools/display/canvas/GraphicPrimitive2D.html#paint(org.geotools.display.canvas.RenderingContext)">rendering</A>. If this graphic now cover a wider area, then the area to repaint must be specified with a call to <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic2D.html#refresh(java.awt.geom.Rectangle2D)"><CODE>refresh(Rectangle2D)</CODE></A> instead.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>refresh</CODE> in interface <CODE>Graphic</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#refresh()">refresh</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html" title="class in org.geotools.display.canvas">AbstractGraphic</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="refresh(java.awt.geom.Rectangle2D)"><!-- --></A><H3>refresh</H3><PRE>public void <B>refresh</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> bounds)</PRE><DL><DD>Advises that some region need to be repainted. This graphic will not be repainted immediately, but at some later time depending on the widget implementation (e.g. <cite>Swing</cite>). This method can be invoked from any thread; it doesn't need to be the <cite>Swing</cite> thread.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - The dirty region to refreshed, in the "real world" <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html#getObjectiveCRS()">objective coordinate reference system</A>. A value refresh everything.</DL></DD></DL><HR><A NAME="zoomChanged(java.awt.geom.AffineTransform)"><!-- --></A><H3>zoomChanged</H3><PRE>protected void <B>zoomChanged</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> change)</PRE><DL><DD>Invoked every time the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getScale()">canvas scale</A> changed. The default implementation updates the display bounds as below: <ul> <li><p>Since the display bounds is express in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A> and since the display CRS is scale-dependent, a scale change implies a display bounds change as well.</p></li> <li><p>Since the display bounds may be clipped to the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#getDisplayBounds()">canvas bounds</A>, a scale change may bring some new area inside the canvas bounds. This new area may need to be rendered, so we need to conservatively add it to this graphic display bounds.</p></li> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>change</CODE> - The zoom <strong>change</strong> in <strong>Java2D</strong> coordinate reference system (<A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>), or if unknow. If , then this graphic will be fully redrawn during the next rendering.</DL></DD></DL><HR><A NAME="clearCache()"><!-- --></A><H3>clearCache</H3><PRE>protected void <B>clearCache</B>()</PRE><DL><DD>Clears all cached data.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#clearCache()">clearCache</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html" title="class in org.geotools.display.canvas">DisplayObject</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#dispose()"><CODE>DisplayObject.dispose()</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> </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/ReferencedGraphic2D.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/display/canvas/ReferencedGraphic.html" title="class in org.geotools.display.canvas"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/display/canvas/RenderingContext.html" title="class in org.geotools.display.canvas"><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="ReferencedGraphic2D.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 | <A HREF="#fields_inherited_from_class_DisplayObject">FIELD</A> | <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 + -