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

📄 referencedcanvas2d.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../org/geotools/referencing/operation/matrix/AffineTransform2D.html" title="class in org.geotools.referencing.operation.matrix">AffineTransform2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#objectiveToDisplay">objectiveToDisplay</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The affine transform from the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective CRS</A> to the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>. </TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_AbstractCanvas"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html" title="class in org.geotools.display.canvas">AbstractCanvas</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#FINEST_RESOLUTION">FINEST_RESOLUTION</A>, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#hints">hints</A>, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#PREFETCH">PREFETCH</A>, <A HREF="../../../../org/geotools/display/canvas/AbstractCanvas.html#REQUIRED_RESOLUTION">REQUIRED_RESOLUTION</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_DisplayObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields 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#DISPLAY_BOUNDS_PROPERTY">DISPLAY_BOUNDS_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#DISPLAY_CRS_PROPERTY">DISPLAY_CRS_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#ENVELOPE_PROPERTY">ENVELOPE_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#GRAPHICS_PROPERTY">GRAPHICS_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#listeners">listeners</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#NAME_PROPERTY">NAME_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#OBJECTIVE_CRS_PROPERTY">OBJECTIVE_CRS_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#PARENT_PROPERTY">PARENT_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#SCALE_PROPERTY">SCALE_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#TITLE_PROPERTY">TITLE_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#VISIBLE_PROPERTY">VISIBLE_PROPERTY</A>, <A HREF="../../../../org/geotools/display/canvas/DisplayObject.html#Z_ORDER_HINT_PROPERTY">Z_ORDER_HINT_PROPERTY</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#ReferencedCanvas2D(org.opengis.go.display.DisplayFactory)">ReferencedCanvas2D</A></B>(DisplayFactory&nbsp;factory)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an initially empty canvas with a default CRS.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#format(org.geotools.display.event.ReferencedEvent, java.lang.StringBuffer)">format</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</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/javax/swing/Action.html" title="class or interface in javax.swing">Action</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#getAction(org.geotools.display.event.ReferencedEvent)">getAction</A></B>(<A HREF="../../../../org/geotools/display/event/ReferencedEvent.html" title="interface in org.geotools.display.event">ReferencedEvent</A>&nbsp;event)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</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/awt/Shape.html" title="class or interface in java.awt">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#getDisplayBounds()">getDisplayBounds</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the display bounds in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>. </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/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#getEnvelope2D()">getEnvelope2D</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a rectangle that completly encloses all <A HREF="../../../../org/geotools/display/canvas/ReferencedGraphic.html#getEnvelope()">graphic envelopes</A> managed by this canvas. </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/ReferencedCanvas2D.html#getToolTipText(org.geotools.display.event.ReferencedEvent)">getToolTipText</A></B>(<A HREF="../../../../org/geotools/display/event/ReferencedEvent.html" title="interface in org.geotools.display.event">ReferencedEvent</A>&nbsp;event)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#isVisible(org.opengis.spatialschema.geometry.DirectPosition)">isVisible</A></B>(DirectPosition&nbsp;coordinate)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns  if the given coordinate is visible on this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#objectiveToDisplay(java.awt.geom.Rectangle2D)">objectiveToDisplay</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A>&nbsp;bounds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms the specified rectangle from the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective CRS</A> to the <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A> used by <cite>Java2D</cite>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#paintFinished(boolean)">paintFinished</A></B>(boolean&nbsp;success)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked when this canvas painting finished, either successfully or after a failure. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#paintStarted(java.awt.Shape)">paintStarted</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A>&nbsp;dirtyArea)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked when this canvas is about to be painted. </TD></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/ReferencedCanvas2D.html#repaint(org.opengis.go.display.primitive.Graphic, java.awt.geom.Rectangle2D, java.awt.Rectangle)">repaint</A></B>(Graphic&nbsp;graphic,        <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A>&nbsp;objectiveArea,        <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A>&nbsp;displayArea)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Advises that at least a portion of this canvas need to be repainted. </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/ReferencedCanvas2D.html#setDisplayBounds(java.awt.Shape)">setDisplayBounds</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html" title="class or interface in java.awt">Shape</A>&nbsp;bounds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the display bounds in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">display CRS</A>. </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/ReferencedCanvas2D.html#setObjectiveCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)">setObjectiveCRS</A></B>(CoordinateReferenceSystem&nbsp;crs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the objective Coordinate Reference System for this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

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