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

📄 abstractcanvas.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setObjectiveToDisplayTransform(org.opengis.referencing.operation.MathTransform)">setObjectiveToDisplayTransform</A></B>(MathTransform&nbsp;transform)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#getObjectiveCRS()">objective</A> to <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#getDisplayCRS()">display</A> transform to the specified transform. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A>&nbsp;key,                 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a rendering hint. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setTitle(org.opengis.util.InternationalString)">setTitle</A></B>(InternationalString&nbsp;title)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the localized title of this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setTitle(java.lang.String)">setTitle</A></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>&nbsp;title)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the title of this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this canvas and all its <CODE>Graphic</CODE>s. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_DisplayObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html" title="class in org.geotools.display.canvas">DisplayObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getImplHint(java.lang.String)">getImplHint</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLocale()">getLocale</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLogger()">getLogger</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#handleException(java.lang.String, java.lang.String, java.lang.Exception)">handleException</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#setImplHint(java.lang.String, java.lang.Object)">setImplHint</A></CODE></TD></TR></TABLE>&nbsp;<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#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>&nbsp;<A NAME="methods_inherited_from_class_Canvas"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface Canvas</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getDisplayToObjectiveTransform, getGraphicsAt, getGraphicsIn, getImplHint, getObjectiveToDisplayTransform, getState, getTopGraphicAt, isVisible, setImplHint</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="FINEST_RESOLUTION"><!-- --></A><H3>FINEST_RESOLUTION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> <B>FINEST_RESOLUTION</B></PRE><DL><DD>The finest rendering resolution in unit of <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#getDisplayCRS()">display CRS</A>. In <cite>Java2D</cite>, those units are usually dots (1/72 of inch). If a geometry to be rendered has a finer resolution, it will be decimated in order to speed up the rendering. By convention, a resolution of 0 means the finest resolution available.<P><DL></DL></DL><HR><A NAME="REQUIRED_RESOLUTION"><!-- --></A><H3>REQUIRED_RESOLUTION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> <B>REQUIRED_RESOLUTION</B></PRE><DL><DD>The required rendering resolution in unit of <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#getDisplayCRS()">display CRS</A>. In <cite>Java2D</cite>, those units are usually dots (1/72 of inch). If a geometry has been decimated to a worst resolution, it will be resampled in order to get a more acceptable resolution. This value should be greater than <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#FINEST_RESOLUTION"><CODE>FINEST_RESOLUTION</CODE></A>.<P><DL></DL></DL><HR><A NAME="PREFETCH"><!-- --></A><H3>PREFETCH</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> <B>PREFETCH</B></PRE><DL><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html#TRUE" title="class or interface in java.lang"><CODE>Boolean.TRUE</CODE></A> if the canvas is allowed to prefetch data before to paint graphics. Prefetching data may speed up rendering on machine with more than one processor. If this hint is not provided, then the canvas shall prefetch data if and only if the machine has at least two processors.<P><DL><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/PlanarImage.html#prefetchTiles(java.awt.Point[])" title="class or interface in javax.media.jai"><CODE>PlanarImage.prefetchTiles(java.awt.Point[])</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Runtime.html#availableProcessors()" title="class or interface in java.lang"><CODE>Runtime.availableProcessors()</CODE></A></DL></DL><HR><A NAME="hints"><!-- --></A><H3>hints</H3><PRE>protected final <A HREF="../../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> <B>hints</B></PRE><DL><DD>A set of rendering hints.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#PREFETCH"><CODE>PREFETCH</CODE></A>, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#FINEST_RESOLUTION"><CODE>FINEST_RESOLUTION</CODE></A>, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#REQUIRED_RESOLUTION"><CODE>REQUIRED_RESOLUTION</CODE></A>, <A HREF="../../../../org/geotools/factory/Hints.html#COORDINATE_OPERATION_FACTORY"><CODE>Hints.COORDINATE_OPERATION_FACTORY</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.html#KEY_RENDERING" title="class or interface in java.awt"><CODE>RenderingHints.KEY_RENDERING</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.html#KEY_COLOR_RENDERING" title="class or interface in java.awt"><CODE>RenderingHints.KEY_COLOR_RENDERING</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.html#KEY_INTERPOLATION" title="class or interface in java.awt"><CODE>RenderingHints.KEY_INTERPOLATION</CODE></A></DL></DL><!-- ========= 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="AbstractCanvas(org.opengis.go.display.DisplayFactory, org.geotools.factory.Hints)"><!-- --></A><H3>AbstractCanvas</H3><PRE>protected <B>AbstractCanvas</B>(DisplayFactory&nbsp;factory,                         <A HREF="../../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints)</PRE><DL><DD>Creates an initially empty canvas.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The display factory associated with this canvas, or  if none.<DD><CODE>hints</CODE> - The initial set of hints, or  if none.</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="getFactory()"><!-- --></A><H3>getFactory</H3><PRE>public DisplayFactory <B>getFactory</B>()</PRE><DL><DD>Returns the display factory associated with this canvas, or  if none.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getFactory</CODE> in interface <CODE>Canvas</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUID()"><!-- --></A><H3>getUID</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getUID</B>()</PRE><DL><DD>Returns the unique identifier of this , which is assigned by the implementation. The UID is immutable and may be used to retrieve a particular  from the <CODE>DisplayFactory</CODE>. <p> <strong>Note:</strong> In current implementation, a UID is valid only during the current execution of the Java Virtual Machine. There is no warranty that UID will stay the same in an other execution of the same program. It may also change in future Geotools versions.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getUID</CODE> in interface <CODE>Canvas</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the UID of this .</DL></DD></DL><HR><A NAME="getTitle()"><!-- --></A><H3>getTitle</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTitle</B>()</PRE><DL><DD>Returns the title assigned to this , or  if none. If the title was <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setTitle(org.opengis.util.InternationalString)">defined as an international string</A>, then this method returns the title in the <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLocale()">current locale</A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getTitle</CODE> in interface <CODE>Canvas</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setTitle(java.lang.String)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</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>&nbsp;title)</PRE><DL><DD>Sets the title of this . The title of a  may or may not be displayed on the titlebar of an application's window. <p> This method fires a {@value} property change event.<P><DD><DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -