📄 deferredplanarimage.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:22 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>DeferredPlanarImage (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.image.DeferredPlanarImage class"><META NAME="keywords" CONTENT="getTile()"><META NAME="keywords" CONTENT="tileComputed()"><META NAME="keywords" CONTENT="tileCancelled()"><META NAME="keywords" CONTENT="tileComputationFailure()"><META NAME="keywords" CONTENT="tileUpdate()"><META NAME="keywords" CONTENT="addTileObserver()"><META NAME="keywords" CONTENT="removeTileObserver()"><META NAME="keywords" CONTENT="getWritableTile()"><META NAME="keywords" CONTENT="releaseWritableTile()"><META NAME="keywords" CONTENT="hasTileWriters()"><META NAME="keywords" CONTENT="isTileWritable()"><META NAME="keywords" CONTENT="getWritableTileIndices()"><META NAME="keywords" CONTENT="setData()"><META NAME="keywords" CONTENT="dispose()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="DeferredPlanarImage (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/DeferredPlanarImage.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"> PREV CLASS <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image"><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="DeferredPlanarImage.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_PlanarImage">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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.image</FONT><BR>Class DeferredPlanarImage</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PlanarImage.html" title="class or interface in javax.media.jai">PlanarImage</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>DeferredPlanarImage</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html" title="class or interface in java.util">EventListener</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/ImageJAI.html" title="class or interface in javax.media.jai">ImageJAI</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PropertyChangeEmitter.html" title="class or interface in javax.media.jai">PropertyChangeEmitter</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PropertySource.html" title="class or interface in javax.media.jai">PropertySource</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/TileComputationListener.html" title="class or interface in javax.media.jai">TileComputationListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/TileObserver.html" title="class or interface in java.awt.image">TileObserver</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/WritablePropertySource.html" title="class or interface in javax.media.jai">WritablePropertySource</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/WritableRenderedImage.html" title="class or interface in java.awt.image">WritableRenderedImage</A></DD></DL><HR><DL><DT>public final class <B>DeferredPlanarImage</B><DT>extends <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PlanarImage.html" title="class or interface in javax.media.jai">PlanarImage</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/WritableRenderedImage.html" title="class or interface in java.awt.image">WritableRenderedImage</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/TileObserver.html" title="class or interface in java.awt.image">TileObserver</A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/TileComputationListener.html" title="class or interface in javax.media.jai">TileComputationListener</A></DL><P>A tiled image to be used by renderer when the actual image may take a while to compute. This image wraps an arbitrary <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">rendered image</A>, which may (or may not) be some image expensive to compute. When a tile is requested (through a call to <A HREF="../../../org/geotools/image/DeferredPlanarImage.html#getTile(int, int)"><CODE>getTile(int, int)</CODE></A> but the tile is not available in the wrapped image, then this class returns some default (usually black) tile and start the real tile computation in a background thread. When the actual tile is available, this class fire a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/TileObserver.html#tileUpdate(java.awt.image.WritableRenderedImage, int, int, boolean)" title="class or interface in java.awt.image"><CODE>tileUpdate</CODE></A> event, thus given a chance to a renderer to repaint again this image with the new tiles. <p> Simple example of use: <blockquote><pre> public class Renderer extends JPanel implements TileObserver { private DeferredPlanarImage image; public Renderer(RenderedImage toPaint) { image = new DeferredPlanarImage(toPaint); image.addTileObserver(this); } public void tileUpdate(WritableRenderedImage source, int tileX, int tileY, boolean willBeWritable) { repaint();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -