📄 referencedcanvas.html
字号:
<CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#ReferencedCanvas(org.opengis.go.display.DisplayFactory, int)">ReferencedCanvas</A></B>(DisplayFactory factory, int dimension)</CODE><BR> Creates an initially empty canvas with a default CRS of the specified number of dimensions.</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> Graphic</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#add(org.opengis.go.display.primitive.Graphic)">add</A></B>(Graphic graphic)</CODE><BR> Adds the given to this . </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/ReferencedCanvas.html#clearCache()">clearCache</A></B>()</CODE><BR> Clears all cached data. Invoking this method may help to release some resources for other applications. It should be invoked when we know that the map is not going to be rendered for a while. For example it may be invoked from <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/applet/Applet.html#stop" title="class or interface in java.applet"><CODE>Applet</CODE></A>. Note that this method doesn't changes the renderer setting; it will just slow down the first rendering after this method call.</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/ReferencedCanvas.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. </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/ReferencedCanvas.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. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> DerivedCRS</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDeviceCRS()">getDeviceCRS</A></B>()</CODE><BR> Returns the Coordinate Reference System associated with the device of this .</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> DerivedCRS</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayCRS()">getDisplayCRS</A></B>()</CODE><BR> Returns the Coordinate Reference System associated with the display of this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> MathTransform</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getDisplayToObjectiveTransform()">getDisplayToObjectiveTransform</A></B>()</CODE><BR> Returns the coordinate transformation object for this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Envelope</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getEnvelope()">getEnvelope</A></B>()</CODE><BR> Returns an envelope 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> Graphic[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getGraphicsAt(org.opengis.spatialschema.geometry.DirectPosition)">getGraphicsAt</A></B>(DirectPosition directPosition)</CODE><BR> Returns the s that occupy the given direct position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Graphic[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getGraphicsIn(org.opengis.spatialschema.geometry.Envelope)">getGraphicsIn</A></B>(Envelope bounds)</CODE><BR> Returns the s that occupy the given envelope.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> CoordinateReferenceSystem</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">getObjectiveCRS</A></B>()</CODE><BR> Returns the objective Coordinate Reference System (the projection of a georeferenced CRS) for this . This is the "real world" CRS used for displaying all graphics. Note that underlying data in graphic primitives don't need to be in terms of this CRS. Transformations will be applied on the fly as needed at rendering time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> MathTransform</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveToDisplayTransform()">getObjectiveToDisplayTransform</A></B>()</CODE><BR> Returns the coordinate transformation object for this . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getScale()">getScale</A></B>()</CODE><BR> Returns the scale factor, or <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#NaN" title="class or interface in java.lang"><CODE>NaN</CODE></A> if the scale is unknow. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> CanvasState</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getState()">getState</A></B>()</CODE><BR> Returns a copy of the current state of this . </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/ReferencedCanvas.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. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Graphic</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getTopGraphicAt(org.opengis.spatialschema.geometry.DirectPosition)">getTopGraphicAt</A></B>(DirectPosition directPosition)</CODE><BR> Returns the top-most that occupies given direct position. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getTypicalCellDimension(org.opengis.spatialschema.geometry.DirectPosition)">getTypicalCellDimension</A></B>(DirectPosition position)</CODE><BR> Returns a typical cell dimension in terms of <A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#getObjectiveCRS()">objective CRS</A>. </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/ReferencedCanvas.html#graphicPropertyChanged(org.geotools.display.canvas.AbstractGraphic, java.beans.PropertyChangeEvent)">graphicPropertyChanged</A></B>(<A HREF="../../../../org/geotools/display/canvas/AbstractGraphic.html" title="class in org.geotools.display.canvas">AbstractGraphic</A> 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> event)</CODE><BR> Invoked automatically when a graphic registered in this canvas changed. Subclasses can override this method if they need to react to some graphic change events, but should always invoke .</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/ReferencedCanvas.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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/display/canvas/ReferencedCanvas.html#remove(org.opengis.go.display.primitive.Graphic)">remove</A></B>(Graphic graphic)</CODE><BR> Removes the given from this . Note that if the graphic is going to be added back to the same canvas later, then it is more efficient to invoke <CODE>Graphic.setVisible(boolean)</CODE> instead. <p> This method fires a {@value} property change event.</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/ReferencedCanvas.html#removeAll()">removeAll</A></B>()</CODE><BR> Remove all graphics from this canvas. <p> This method fires a {@value} property change event.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -