📄 literenderer2.html
字号:
getImageLoadingTimeout</H3><PRE>public static long <B>getImageLoadingTimeout</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the amount of time the renderer waits for loading an external image before giving up and examining the other images in the Graphic object<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the timeout in milliseconds</DL></DD></DL><HR><A NAME="setImageLoadingTimeout(long)"><!-- --></A><H3>setImageLoadingTimeout</H3><PRE>public static void <B>setImageLoadingTimeout</B>(long newTimeout)</PRE><DL><DD><B>Deprecated.</B> <DD>Sets the maximum time to wait for getting an external image. Set it to -1 to wait undefinitely. The default value is 10 seconds<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newTimeout</CODE> - the new timeout value in milliseconds</DL></DD></DL><HR><A NAME="getConcatTransforms()"><!-- --></A><H3>getConcatTransforms</H3><PRE>public boolean <B>getConcatTransforms</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Flag which controls behaviour for applying affine transformation to the graphics object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean flag. If true then the transform will be concatenated to the existing transform. If false it will be replaced.</DL></DD></DL><HR><A NAME="setOutput(java.awt.Graphics, java.awt.Rectangle)"><!-- --></A><H3>setOutput</H3><PRE>public void <B>setOutput</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Graphics.html" title="class or interface in java.awt">Graphics</A> g, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A> bounds)</PRE><DL><DD><B>Deprecated.</B> <I>Graphics and bounds is to be set in renderer().</I><P><DD>Called before <CODE>render</CODE>, this sets where any output will be sent.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/Renderer.html#setOutput(java.awt.Graphics, java.awt.Rectangle)">setOutput</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/Renderer.html" title="interface in org.geotools.renderer">Renderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - A graphics object for future rendering to be sent to. Note: must be an instance of lite renderer.<DD><CODE>bounds</CODE> - The size of the output area, required so that scale can be calculated.</DL></DD></DL><HR><A NAME="addRenderListener(org.geotools.renderer.RenderListener)"><!-- --></A><H3>addRenderListener</H3><PRE>public void <B>addRenderListener</B>(<A HREF="../../../../org/geotools/renderer/RenderListener.html" title="interface in org.geotools.renderer">RenderListener</A> listener)</PRE><DL><DD><B>Deprecated.</B> <DD>adds a listener that responds to error events of feature rendered events.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to add.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/renderer/RenderListener.html" title="interface in org.geotools.renderer"><CODE>RenderListener</CODE></A></DL></DD></DL><HR><A NAME="removeRenderListener(org.geotools.renderer.RenderListener)"><!-- --></A><H3>removeRenderListener</H3><PRE>public void <B>removeRenderListener</B>(<A HREF="../../../../org/geotools/renderer/RenderListener.html" title="interface in org.geotools.renderer">RenderListener</A> listener)</PRE><DL><DD><B>Deprecated.</B> <DD>Removes a render listener.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/renderer/RenderListener.html" title="interface in org.geotools.renderer"><CODE>RenderListener</CODE></A></DL></DD></DL><HR><A NAME="setScaleDenominator(double)"><!-- --></A><H3>setScaleDenominator</H3><PRE>protected void <B>setScaleDenominator</B>(double scaleDenominator)</PRE><DL><DD><B>Deprecated.</B> <DD>Setter for property scaleDenominator.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>scaleDenominator</CODE> - New value of property scaleDenominator.</DL></DD></DL><HR><A NAME="stopRendering()"><!-- --></A><H3>stopRendering</H3><PRE>public void <B>stopRendering</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>If you call this method from another thread than the one that called <code>paint</code> or <code>render</code> the rendering will be forcefully stopped before termination<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.Rectangle, 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> graphics, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A> paintArea, <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> transform)</PRE><DL><DD><B>Deprecated.</B> <DD>Render features based on the LayerList, BoundBox and Style specified in this.context. Don't mix calls to paint and setOutput, when calling this method the graphics set in the setOutput method is discarded.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/Renderer2D.html#paint(java.awt.Graphics2D, java.awt.Rectangle, java.awt.geom.AffineTransform)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/Renderer2D.html" title="interface in org.geotools.renderer">Renderer2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>graphics</CODE> - The graphics object to draw to.<DD><CODE>paintArea</CODE> - The size of the output area in output units (eg: pixels).<DD><CODE>transform</CODE> - A transform which converts World coordinates to Screen coordinates.<DT><B>'TODO:'</B></DT> <DD>Need to check if the Layer CoordinateSystem is different to the BoundingBox rendering CoordinateSystem and if so, then transform the coordinates.</DD></DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.Rectangle, com.vividsolutions.jts.geom.Envelope)"><!-- --></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> graphics, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A> paintArea, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> envelope)</PRE><DL><DD><B>Deprecated.</B> <DD>TODO summary sentence for paint ...<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>graphics</CODE> - <DD><CODE>paintArea</CODE> - <DD><CODE>envelope</CODE> - </DL></DD></DL><HR><A NAME="calculateScale(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem, int, int, double)"><!-- --></A><H3>calculateScale</H3><PRE>public static double <B>calculateScale</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> envelope, CoordinateReferenceSystem coordinateReferenceSystem, int imageWidth, int imageHeight, double DPI) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD><B>Deprecated.</B> <DD>Find the scale denominator of the map. Method: 1. find the diagonal distance (meters) 2. find the diagonal distance (pixels) 3. find the diagonal distance (meters) -- use DPI 4. calculate scale (#1/#2) NOTE: return the scale denominator not the actual scale (1/scale = denominator) TODO: (SLD spec page 28): Since it is common to integrate the output of multiple servers into a single displayed result in the web-mapping environment, it is important that different map servers have consistent behaviour with respect to processing scales, so that all of the independent servers will select or deselect rules at the same scales. To insure consistent behaviour, scales relative to coordinate spaces must be handled consistently between map servers. For geographic coordinate systems, which use angular units, the angular coverage of a map should be converted to linear units for computation of scale by using the circumference of the Earth at the equator and by assuming perfectly square linear units. For linear coordinate systems, the size of the coordinate space should be used directly without compensating for distortions in it with respect to the shape of the real Earth. NOTE: we are actually doing a a much more exact calculation, and accounting for non-square pixels (which are allowed in WMS)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>envelope</CODE> - <DD><CODE>coordinateReferenceSystem</CODE> - <DD><CODE>imageWidth</CODE> - <DD><CODE>imageHeight</CODE> - <DD><CODE>DPI</CODE> - screen dots per inch (OGC standard is 90)<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="render(org.geotools.feature.FeatureCollection, com.vividsolutions.jts.geom.Envelope, org.geotools.styling.Style)"><!-- --></A><H3>render</H3><PRE>public void <B>render</B>(<A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A> features, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> map, <A HREF="../../../../org/geotools/styling/Style.html" title="interface in org.geotools.styling">Style</A> s)</PRE><DL><DD><B>Deprecated.</B> <DD>Performs the actual rendering process to the graphics context set in setOutput. <p> The style parameter controls the appearance features. Rules within the style object may cause some features to be rendered multiple times or not at all. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/Renderer.html#render(org.geotools.feature.FeatureCollection, com.vividsolutions.jts.geom.Envelope, org.geotools.styling.Style)">render</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/Renderer.html" title="interface in org.geotools.renderer">Renderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>features</CODE> - the feature collection to be rendered<DD><CODE>map</CODE> - Controls the full extent of the input space. Used in the calculation of scale.<DD><CODE>s</CODE> - A style object. Contains a set of FeatureTypeStylers that are to be applied in order to control the rendering process.</DL></DD></DL><HR><A NAME="worldToScreenTransform(com.vividsolutions.jts.geom.Envelope, java.awt.Rectangle)"><!-- --></A><H3>worldToScreenTransform</H3><PRE>public <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> <B>worldToScreenTransform</B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> mapExtent, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A> screenSize)</PRE><DL><DD><B>Deprecated.</B> <DD>Sets up the affine transform<P><DD><DL></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -