📄 streamingrenderer.html
字号:
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="StreamingRenderer()"><!-- --></A><H3>StreamingRenderer</H3><PRE>public <B>StreamingRenderer</B>()</PRE><DL><DD>Creates a new instance of LiteRenderer without a context. Use it only to gain access to utility methods of this class or if you want to render random feature collections instead of using the map context interface<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setConcatTransforms(boolean)"><!-- --></A><H3>setConcatTransforms</H3><PRE>public void <B>setConcatTransforms</B>(boolean flag)</PRE><DL><DD>Sets the flag which controls behaviour for applying affine transformation to the graphics object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - If true then the transform will be concatenated to the existing transform. If false it will be replaced.</DL></DD></DL><HR><A NAME="getConcatTransforms()"><!-- --></A><H3>getConcatTransforms</H3><PRE>public boolean <B>getConcatTransforms</B>()</PRE><DL><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="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>adds a listener that responds to error events of feature rendered events.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#addRenderListener(org.geotools.renderer.RenderListener)">addRenderListener</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</A></CODE></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>Removes a render listener.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#removeRenderListener(org.geotools.renderer.RenderListener)">removeRenderListener</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</A></CODE></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="stopRendering()"><!-- --></A><H3>stopRendering</H3><PRE>public void <B>stopRendering</B>()</PRE><DL><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#stopRendering()">stopRendering</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</A></CODE></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> worldToScreen)</PRE><DL><DD><B>Deprecated.</B> <I>Use paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea) or paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen) instead.</I><P><DD>Renders features based on the map layers and their styles as specified in the map context using <code>setContext</code>. <p/> This version of the method assumes that the size of the output area and the transformation from coordinates to pixels are known. The latter determines the map scale. The viewport (the visible part of the map) will be calculated internally.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#paint(java.awt.Graphics2D, java.awt.Rectangle, java.awt.geom.AffineTransform)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</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>worldToScreen</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> mapArea)</PRE><DL><DD><B>Deprecated.</B> <I>Use paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea) or paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen) instead.</I><P><DD>Renders features based on the map layers and their styles as specified in the map context using <code>setContext</code>. <p/> This version of the method assumes that the area of the visible part of the map and the size of the output area are known. The transform between the two is calculated internally.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#paint(java.awt.Graphics2D, java.awt.Rectangle, com.vividsolutions.jts.geom.Envelope)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</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>mapArea</CODE> - the map's visible area (viewport) in map coordinates.</DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.Rectangle, org.geotools.geometry.jts.ReferencedEnvelope)"><!-- --></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="../../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A> mapArea)</PRE><DL><DD>Renders features based on the map layers and their styles as specified in the map context using <code>setContext</code>. <p/> This version of the method assumes that the area of the visible part of the map and the size of the output area are known. The transform between the two is calculated internally.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#paint(java.awt.Graphics2D, java.awt.Rectangle, org.geotools.geometry.jts.ReferencedEnvelope)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</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>mapArea</CODE> - the map's visible area (viewport) in map coordinates.</DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.Rectangle, com.vividsolutions.jts.geom.Envelope, 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://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> mapArea, <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> worldToScreen)</PRE><DL><DD><B>Deprecated.</B> <I>Use paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea) or paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen) instead.</I><P><DD>Renders features based on the map layers and their styles as specified in the map context using <code>setContext</code>. <p/> This version of the method assumes that paint area, enelope and worldToScreen transform are already computed. Use this method to avoid recomputation. <b>Note however that no check is performed that they are really in sync!<b/><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#paint(java.awt.Graphics2D, java.awt.Rectangle, com.vividsolutions.jts.geom.Envelope, java.awt.geom.AffineTransform)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</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>mapArea</CODE> - the map's visible area (viewport) in map coordinates.<DD><CODE>worldToScreen</CODE> - A transform which converts World coordinates to Screen coordinates.</DL></DD></DL><HR><A NAME="paint(java.awt.Graphics2D, java.awt.Rectangle, org.geotools.geometry.jts.ReferencedEnvelope, 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="../../../../org/geotools/geometry/jts/ReferencedEnvelope.html" title="class in org.geotools.geometry.jts">ReferencedEnvelope</A> mapArea, <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> worldToScreen)</PRE><DL><DD>Renders features based on the map layers and their styles as specified in the map context using <code>setContext</code>. <p/> This version of the method assumes that paint area, enelope and worldToScreen transform are already computed. Use this method to avoid recomputation. <b>Note however that no check is performed that they are really in sync!<b/><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html#paint(java.awt.Graphics2D, java.awt.Rectangle, org.geotools.geometry.jts.ReferencedEnvelope, java.awt.geom.AffineTransform)">paint</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/renderer/GTRenderer.html" title="interface in org.geotools.renderer">GTRenderer</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>mapArea</CODE> - the map's visible area (viewport) in map coordinates. Its associate CRS is ALWAYS 2D<DD><CODE>worldToScreen</CODE> - A transform which converts World coordinates to Screen coordinates.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -