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

📄 bufferedcanvas2d.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
             This transform is usually provided by <A HREF="../../../../org/geotools/gui/swing/ZoomPane.html#zoom"><CODE>ZoomPane.zoom</CODE></A>.</DL></DD></DL><HR><A NAME="repaint(org.opengis.go.display.primitive.Graphic, java.awt.geom.Rectangle2D, java.awt.Rectangle)"><!-- --></A><H3>repaint</H3><PRE>public void <B>repaint</B>(Graphic&nbsp;graphic,                    <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>&nbsp;objectiveArea,                    <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;displayArea)</PRE><DL><DD>Advises that at least a portion of this canvas need to be repainted. This canvas will not be repainted immediately, but at some later time depending on the widget implementation. This  method can be invoked from any thread; it doesn't need to be the <cite>Swing</cite> thread. <p> Usually only one of  and  arguments is provided. If both arguments are non-null, then this method repaint the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html#add(int, int)" title="class or interface in java.awt">union</A> of those rectangles in display coordinates. <p> This method is invoked by <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic2D.html#refresh()"><CODE>ReferencedGraphic2D.refresh()</CODE></A> and usually don't need to be invoked directly.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#repaint(org.opengis.go.display.primitive.Graphic, java.awt.geom.Rectangle2D, java.awt.Rectangle)">repaint</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html" title="class in org.geotools.display.canvas">ReferencedCanvas2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>graphic</CODE> - The graphic to repaint, or  if unknown.<DD><CODE>objectiveArea</CODE> - The dirty region to repaint in terms of        <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective CRS</A>, or .<DD><CODE>displayArea</CODE> - The dirty region to repaint in terms of        <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>, or .</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>&nbsp;change)</PRE><DL><DD>Invoked when the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#objectiveToDisplay">objective to display transform</A> changed. This method updates cached informations like the envelope in every graphics.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#zoomChanged(java.awt.geom.AffineTransform)">zoomChanged</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html" title="class in org.geotools.display.canvas">ReferencedCanvas2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>change</CODE> - The zoom <strong>change</strong> in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>, or  if unknown. If , then all graphics will        be fully redrawn during the next rendering (i.e. all offscreen buffers are flushed).<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic2D.html#zoomChanged(java.awt.geom.AffineTransform)"><CODE>ReferencedGraphic2D.zoomChanged(java.awt.geom.AffineTransform)</CODE></A></DL></DD></DL><HR><A NAME="getOffscreenBuffered(double)"><!-- --></A><H3>getOffscreenBuffered</H3><PRE>public <A HREF="../../../../org/geotools/display/canvas/ImageType.html" title="class in org.geotools.display.canvas">ImageType</A> <B>getOffscreenBuffered</B>(double&nbsp;zOrder)</PRE><DL><DD>Returns the offscreen buffer type for the given z-order. This is the value of the  argument given to the last call to <A HREF="../../../../org/geotools/display/canvas/BufferedCanvas2D.html#setOffscreenBuffered(double, double, org.geotools.display.canvas.ImageType)"><CODE>setOffscreenBuffered(...)</CODE></A> for a range that contains the supplied  value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>zOrder</CODE> - The z-order to query.<DT><B>Returns:</B><DD>One of <A HREF="../../../../org/geotools/display/canvas/ImageType.html#NONE"><CODE>ImageType.NONE</CODE></A>, <A HREF="../../../../org/geotools/display/canvas/ImageType.html#VOLATILE"><CODE>ImageType.VOLATILE</CODE></A> or         <A HREF="../../../../org/geotools/display/canvas/ImageType.html#BUFFERED"><CODE>ImageType.BUFFERED</CODE></A> enumeration.</DL></DD></DL><HR><A NAME="setOffscreenBuffered(double, double, org.geotools.display.canvas.ImageType)"><!-- --></A><H3>setOffscreenBuffered</H3><PRE>public void <B>setOffscreenBuffered</B>(double&nbsp;lower,                                 double&nbsp;upper,                                 <A HREF="../../../../org/geotools/display/canvas/ImageType.html" title="class in org.geotools.display.canvas">ImageType</A>&nbsp;type)</PRE><DL><DD>Enables or disables the use of offscreen buffer for all graphics in the given range of z-orders. When enabled, all graphics in the given range will be rendered once in an offscreen buffer (for example an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/VolatileImage.html" title="class or interface in java.awt.image"><CODE>VolatileImage</CODE></A>); the image will then been reused as much as possible. The offscreen buffer may be invalidate at any time by some external event (including a call to any of <CODE>Graphic.refresh()</CODE> methods) and will be recreated as needed. Using offscreen buffer for background graphics that do not change often (e.g. a background map) help to make the GUI more responsive to frequent changes in foreground graphics (e.g. a glass pane with highlighted selections). <p> An arbitrary amount of ranges can be specified. Each <strong>distinct</strong> range will use its own offscreen buffer. This means that if this method is invoked twice for enabling buffering in overlapping range of z-values, then the union of the two ranges will shares the same offscreen image.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lower</CODE> - The lower z-order, inclusive.<DD><CODE>upper</CODE> - The upper z-order, inclusive.<DD><CODE>type</CODE> - <A HREF="../../../../org/geotools/display/canvas/ImageType.html#VOLATILE"><CODE>ImageType.VOLATILE</CODE></A> or <A HREF="../../../../org/geotools/display/canvas/ImageType.html#BUFFERED"><CODE>ImageType.BUFFERED</CODE></A> for enabling offscreen              buffering for the specified range, or <A HREF="../../../../org/geotools/display/canvas/ImageType.html#NONE"><CODE>ImageType.NONE</CODE></A> for disabling it.</DL></DD></DL><HR><A NAME="clearCache()"><!-- --></A><H3>clearCache</H3><PRE>protected void <B>clearCache</B>()</PRE><DL><DD>Clears all cached data. Invoking this method may help to release some resources for other applications. It should be invoked when we know that the map is not going to be rendered for a while. Note that this method doesn't changes the renderer setting; it will just slow down the first rendering after this method call.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#clearCache()">clearCache</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html" title="class in org.geotools.display.canvas">ReferencedCanvas</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="dispose()"><!-- --></A><H3>dispose</H3><PRE>public void <B>dispose</B>()</PRE><DL><DD>Method that may be called when a  is no longer needed. The results of referencing a canvas or any of its graphics after a call to  are undefined.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>dispose</CODE> in interface <CODE>Canvas</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#dispose()">dispose</A></CODE> in class <CODE><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas">AbstractCanvas</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#dispose()"><CODE>AbstractGraphic.dispose()</CODE></A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PlanarImage.html#dispose()" title="class or interface in javax.media.jai"><CODE>PlanarImage.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>&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/BufferedCanvas2D.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/display/canvas/AbstractGraphic.html" title="class in org.geotools.display.canvas"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/display/canvas/DefaultCanvasState.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>  &nbsp;&nbsp;<A HREF="BufferedCanvas2D.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;<A HREF="#fields_inherited_from_class_ReferencedCanvas2D">FIELD</A>&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 + -