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

📄 referencedcanvas2d.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="format(org.geotools.display.event.ReferencedEvent, java.lang.StringBuffer)"><!-- --></A><H3>format</H3><PRE>public boolean <B>format</B>(<A HREF="../../../../org/geotools/display/event/ReferencedEvent.html" title="interface in org.geotools.display.event">ReferencedEvent</A>&nbsp;event,                      <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/StringBuffer.html" title="class or interface in java.lang">StringBuffer</A>&nbsp;toAppendTo)</PRE><DL><DD>Formats a value for a given event. The meaning of "value" depends on the underlying graphics. For example in the particular case of a Digital Elevation Model (DEM), it could be the altitude at the event location. This value is typically to be appended to some other informations, like the event geographic coordinates. <p> This method queries registered <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html" title="class in org.geotools.display.canvas">graphics</A> in decreasing <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getZOrderHint()">z-order</A> until one is found to formats a value.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#format(org.geotools.display.event.ReferencedEvent, java.lang.StringBuffer)">format</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><DT><B>Parameters:</B><DD><CODE>event</CODE> - The event.<DD><CODE>toAppendTo</CODE> - The destination buffer for formatting a value. The <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/StringBuffer.html" title="class or interface in java.lang"><CODE>StringBuffer</CODE></A>         argument type allows efficient use of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/text/Format.html" title="class or interface in java.text"><CODE>Format</CODE></A> for example.<DT><B>Returns:</B><DD> if this method has formatted a value, or  otherwise.</DL></DD></DL><HR><A NAME="getToolTipText(org.geotools.display.event.ReferencedEvent)"><!-- --></A><H3>getToolTipText</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>getToolTipText</B>(<A HREF="../../../../org/geotools/display/event/ReferencedEvent.html" title="interface in org.geotools.display.event">ReferencedEvent</A>&nbsp;event)</PRE><DL><DD>Returns the string to be used as the tooltip for a given event. This method queries registered <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html" title="class in org.geotools.display.canvas">graphics</A> in decreasing <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getZOrderHint()">z-order</A> until one is found to returns a non-null string.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getToolTipText(org.geotools.display.event.ReferencedEvent)">getToolTipText</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><DT><B>Parameters:</B><DD><CODE>event</CODE> - The event.<DT><B>Returns:</B><DD>The tool tip text, or  if there is no tool tip for the given location.</DL></DD></DL><HR><A NAME="getAction(org.geotools.display.event.ReferencedEvent)"><!-- --></A><H3>getAction</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Action.html" title="class or interface in javax.swing">Action</A> <B>getAction</B>(<A HREF="../../../../org/geotools/display/event/ReferencedEvent.html" title="interface in org.geotools.display.event">ReferencedEvent</A>&nbsp;event)</PRE><DL><DD>Returns the action to be used for a given event. This method queries registered <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html" title="class in org.geotools.display.canvas">graphics</A> in decreasing <A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html#getZOrderHint()">z-order</A> until one is found to returns a non-null action.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getAction(org.geotools.display.event.ReferencedEvent)">getAction</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><DT><B>Parameters:</B><DD><CODE>event</CODE> - The event.<DT><B>Returns:</B><DD>The action, or  if there is no action for the given location.</DL></DD></DL><HR><A NAME="updateNormalizationFactor(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>updateNormalizationFactor</H3><PRE>protected void <B>updateNormalizationFactor</B>(CoordinateReferenceSystem&nbsp;crs)</PRE><DL><DD>Updates <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#normalizeToDots"><CODE>normalizeToDots</CODE></A> affine transform for the specified <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective coordinate reference system</A>. This method is invoked automatically by <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#setObjectiveCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>setObjectiveCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)</CODE></A>. Users don't need to invoke this method directly, but subclasses may override it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>crs</CODE> - The new objective CRS.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#updateNormalizationFactor(org.opengis.referencing.crs.CoordinateReferenceSystem)"><CODE>updateNormalizationFactor(org.opengis.referencing.crs.CoordinateReferenceSystem)</CODE></A></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>Notifies all listeners that the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#objectiveToDisplay"><CODE>objectiveToDisplay</CODE></A> transform changed. This change is more often the consequence of some zoom action. The  argument can be computed as below: <blockquote><pre> AffineTransform change = <var>oldObjectiveToDisplay</var>.createInverse(); change.preConcatenate(<var>newObjectiveToTransform</var>); </pre></blockquote> The default implementation invokes <code><A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic2D.html#zoomChanged(java.awt.geom.AffineTransform)">zoomChanged</A>(change)</code> for all registered <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic2D.html" title="class in org.geotools.display.canvas"><CODE>ReferencedGraphic2D</CODE></A>.<P><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.<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><!-- ========= 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/ReferencedCanvas2D.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/ReferencedCanvas.html" title="class in org.geotools.display.canvas"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.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="ReferencedCanvas2D.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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 + -