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

📄 bufferedcanvas2d.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getImplHint, setImplHint</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="BufferedCanvas2D(org.opengis.go.display.DisplayFactory, java.awt.Component)"><!-- --></A><H3>BufferedCanvas2D</H3><PRE>public <B>BufferedCanvas2D</B>(DisplayFactory&nbsp;factory,                        <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A>&nbsp;owner)</PRE><DL><DD>Creates an initially empty canvas with a default objective CRS.<P><DT><B>Parameters:</B><DD><CODE>factory</CODE> - The display factory associated with this canvas, or  if none.<DD><CODE>owner</CODE> - The component owner, 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="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 . If no title were <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#setTitle(java.lang.String)">explicitly set</A>, then this method returns the title of the window which contains this canvas.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getTitle</CODE> in interface <CODE>Canvas</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#getTitle()">getTitle</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></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 locale of the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt"><CODE>Component</CODE></A> that own this canvas, if any. Otherwise, a default locale will be returned.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#getLocale()">getLocale</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="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html#getLocale()" title="class or interface in java.awt"><CODE>Component.getLocale()</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html#getDefaultLocale()" title="class or interface in javax.swing"><CODE>JComponent.getDefaultLocale()</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html#getDefault()" title="class or interface in java.util"><CODE>Locale.getDefault()</CODE></A></DL></DD></DL><HR><A NAME="getDisplayBounds()"><!-- --></A><H3>getDisplayBounds</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A> <B>getDisplayBounds</B>()</PRE><DL><DD>Returns the display bounds in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>. If no bounds were <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#setDisplayBounds(java.awt.Shape)">explicitly set</A>, then this method returns the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html#getBounds()" title="class or interface in java.awt">widget bounds</A>.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#getDisplayBounds()">getDisplayBounds</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></DL></DD></DL><HR><A NAME="add(org.opengis.go.display.primitive.Graphic)"><!-- --></A><H3>add</H3><PRE>public Graphic <B>add</B>(Graphic&nbsp;graphic)</PRE><DL><DD>Adds the given  to this . This implementation respect the <var>z</var>-order retrieved by calling <CODE>Graphic.getZOrderHint()</CODE>. When two added s have the same <var>z</var>-order, the most recently added will be on top. <p> If no CRS were explicitly set to this canvas (either at construction time or through a call to <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#setObjectiveCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>setObjectiveCRS</CODE></A>), then this method will set the canvas objective CRS to the CRS of the first graphic added. <p> This method fires {@value} and {@value} property change events.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>Canvas</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#add(org.opengis.go.display.primitive.Graphic)">add</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="remove(org.opengis.go.display.primitive.Graphic)"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>(Graphic&nbsp;graphic)</PRE><DL><DD>Removes the given  from this canvas.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>Canvas</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#remove(org.opengis.go.display.primitive.Graphic)">remove</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="removeAll()"><!-- --></A><H3>removeAll</H3><PRE>public void <B>removeAll</B>()</PRE><DL><DD>Remove all graphics from this canvas.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#removeAll()">removeAll</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="graphicPropertyChanged(org.geotools.display.canvas.AbstractGraphic, java.beans.PropertyChangeEvent)"><!-- --></A><H3>graphicPropertyChanged</H3><PRE>protected void <B>graphicPropertyChanged</B>(<A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html" title="class in org.geotools.display.canvas">AbstractGraphic</A>&nbsp;graphic,                                      <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeEvent.html" title="class or interface in java.beans">PropertyChangeEvent</A>&nbsp;event)</PRE><DL><DD>Invoked automatically when a graphic registered in this canvas changed.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#graphicPropertyChanged(org.geotools.display.canvas.AbstractGraphic, java.beans.PropertyChangeEvent)">graphicPropertyChanged</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="print(java.awt.Graphics2D, java.awt.geom.AffineTransform)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Graphics2D.html" title="class or interface in java.awt">Graphics2D</A>&nbsp;output,                  <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;zoom)</PRE><DL><DD>Prints this canvas and all visible graphics it contains. This method is similar to <code><A HREF="../../../../org/geotools/display/canvas/BufferedCanvas2D.html#paint(java.awt.Graphics2D, java.awt.geom.AffineTransform)">paint</A>(output, zoom)</code>, but is more appropriate when the output device is a printer instead of a video device. Note that rendering using the  method is usually slower than rendering using the  method.<P><DD><DL></DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.geom.AffineTransform)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Graphics2D.html" title="class or interface in java.awt">Graphics2D</A>&nbsp;output,                  <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;zoom)</PRE><DL><DD>Paints this canvas and all visible graphics it contains. Before to invoke this method, <code><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#setDisplayBounds(java.awt.Shape)"><CODE>setDisplayBounds</CODE></A>(bounds)</code> must be invoked at least once, where  is typically the value returned by <A HREF="../../../../org/geotools/gui/swing/ZoomPane.html#getZoomableBounds(java.awt.Rectangle)"><CODE>ZoomPane.getZoomableBounds(java.awt.Rectangle)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>output</CODE> - The <cite>Java2D</cite> graphics handler to draw to.<DD><CODE>zoom</CODE> - A transform which converts "World coordinates" in <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective CRS</A> to output coordinates in <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>.

⌨️ 快捷键说明

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