📄 referencedcanvas2d.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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> 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> <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> <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> <!-- ======== 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 factory)</CODE><BR> Creates an initially empty canvas with a default CRS.</TD></TR></TABLE> <!-- ========== 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> 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> 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> toAppendTo)</CODE><BR> 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> <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> event)</CODE><BR> 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> <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> 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> <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> 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> <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> event)</CODE><BR> 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> 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 coordinate)</CODE><BR> 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 <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> bounds)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas2D.html#paintFinished(boolean)">paintFinished</A></B>(boolean success)</CODE><BR> 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 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> dirtyArea)</CODE><BR> 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 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 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> 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> displayArea)</CODE><BR> 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> 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> bounds)</CODE><BR> 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> 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 crs)</CODE><BR> 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 + -