📄 displayobject.html
字号:
close to equivalent: <p> <ol> <li><code>setRenderingHint(<A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/JAI.html#KEY_TILE_CACHE" title="class or interface in javax.media.jai">JAI.KEY_TILE_CACHE</A>, value);</code></li> <li><code>setImplHint("KEY_TILE_CACHE", value);</code></li> </ol> <p> The main differences are that approach 1 is more type-safe but will fails on a machine without JAI installation, while approach 2 is not type-safe but will silently ignore the hint on a machine without JAI installation. Likewise, a user can write for example <code>setImplHint("FINEST_RESOLUTION", value)</code> for setting the <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#FINEST_RESOLUTION"><CODE>FINEST_RESOLUTION</CODE></A> hint without immediate dependency to the <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas"><CODE>AbstractCanvas</CODE></A> Geotools implementation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the hint.<DD><CODE>value</CODE> - The hint value. A value remove the hint.</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A> listener)</PRE><DL><DD>Adds a property change listener to the listener list. The listener is registered for all properties. For example, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#add(org.opengis.go.display.primitive.Graphic)">adding</A> or <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#remove(org.opengis.go.display.primitive.Graphic)">removing</A> graphics in a canvas may fire {@value} change events and, indirectly, some other side-effect events like {@value}.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The property change listener to be added</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> propertyName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A> listener)</PRE><DL><DD>Adds a property change listener for a specific property. The listener will be invoked only when that specific property changes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The name of the property to listen on.<DD><CODE>listener</CODE> - The property change listener to be added.</DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A> listener)</PRE><DL><DD>Removes a property change listener from the listener list. This removes a listener that was registered for all properties.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The property change listener to be removed</DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> propertyName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A> listener)</PRE><DL><DD>Remove a property change listener for a specific property.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The name of the property that was listened on.<DD><CODE>listener</CODE> - The property change listener to be removed.</DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Returns the locale for this object. The default implementation returns the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html#getDefault()" title="class or interface in java.util">system locale</A>.<P><DD><DL></DL></DD></DL><HR><A NAME="getLogger()"><!-- --></A><H3>getLogger</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Logger.html" title="class or interface in java.util.logging">Logger</A> <B>getLogger</B>()</PRE><DL><DD>Returns the logger for all messages to be logged by the Geotools implementation of GO-1.<P><DD><DL></DL></DD></DL><HR><A NAME="handleException(java.lang.String, java.lang.String, java.lang.Exception)"><!-- --></A><H3>handleException</H3><PRE>protected void <B>handleException</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> sourceClassName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> sourceMethodName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> exception)</PRE><DL><DD>Invoked when an unexpected exception occured. This exception may happen while a rendering is in process, so this method should not popup any dialog box and returns fast. The default implementation sends a record to the <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLogger()">logger</A> with the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Level.html#WARNING" title="class or interface in java.util.logging"><CODE>WARNING</CODE></A> level.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sourceClassName</CODE> - The caller's class name, for logging purpose.<DD><CODE>sourceMethodName</CODE> - The caller's method name, for logging purpose.<DD><CODE>exception</CODE> - The exception.</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. For example it may be invoked from <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/applet/Applet.html#stop()" title="class or interface in java.applet"><CODE>Applet</CODE></A>. 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>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#dispose()"><CODE>dispose()</CODE></A></DL></DD></DL><HR><A NAME="dispose()"><!-- --></A><H3>dispose</H3><PRE>public void <B>dispose</B>()</PRE><DL><DD>Method that can be called when an object is no longer needed. Implementations may use this method to release resources, if needed. Implementations may also implement this method to return an object to an object pool. It is an error to reference a <CODE>Graphic</CODE> or <CODE>Canvas</CODE> in any way after its dispose method has been called.<P><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/DisplayObject.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/DefaultCanvasState.html" title="class in org.geotools.display.canvas"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/display/canvas/GraphicPrimitive2D.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="DisplayObject.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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 + -