📄 literenderer2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:35 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>LiteRenderer2 (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.renderer.lite.LiteRenderer2 class"><META NAME="keywords" CONTENT="DEFAULT_LISTENER"><META NAME="keywords" CONTENT="setConcatTransforms()"><META NAME="keywords" CONTENT="getImageLoadingTimeout()"><META NAME="keywords" CONTENT="setImageLoadingTimeout()"><META NAME="keywords" CONTENT="getConcatTransforms()"><META NAME="keywords" CONTENT="setOutput()"><META NAME="keywords" CONTENT="addRenderListener()"><META NAME="keywords" CONTENT="removeRenderListener()"><META NAME="keywords" CONTENT="setScaleDenominator()"><META NAME="keywords" CONTENT="stopRendering()"><META NAME="keywords" CONTENT="paint()"><META NAME="keywords" CONTENT="calculateScale()"><META NAME="keywords" CONTENT="render()"><META NAME="keywords" CONTENT="worldToScreenTransform()"><META NAME="keywords" CONTENT="pixelToWorld()"><META NAME="keywords" CONTENT="getCentroid()"><META NAME="keywords" CONTENT="isInteractive()"><META NAME="keywords" CONTENT="setInteractive()"><META NAME="keywords" CONTENT="isOptimizedDataLoadingEnabled()"><META NAME="keywords" CONTENT="setOptimizedDataLoadingEnabled()"><META NAME="keywords" CONTENT="getGeneralizationDistance()"><META NAME="keywords" CONTENT="setGeneralizationDistance()"><META NAME="keywords" CONTENT="setMemoryPreloadingEnabled()"><META NAME="keywords" CONTENT="setRenderingHints()"><META NAME="keywords" CONTENT="setRenderingHint()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="LiteRenderer2 (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LiteRenderer2.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/renderer/lite/LiteRenderer.html" title="class in org.geotools.renderer.lite"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/renderer/lite/LiteShape.html" title="class in org.geotools.renderer.lite"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="LiteRenderer2.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.renderer.lite</FONT><BR>Class LiteRenderer2</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>LiteRenderer2</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/geotools/renderer/Renderer.html" title="interface in org.geotools.renderer">Renderer</A>, <A HREF="../../../../org/geotools/renderer/Renderer2D.html" title="interface in org.geotools.renderer">Renderer2D</A></DD></DL><HR><B>Deprecated.</B> <I>LiteRenderer has been replaced by StreamingRenderer.</I><P><DL><DT>public class <B>LiteRenderer2</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/geotools/renderer/Renderer.html" title="interface in org.geotools.renderer">Renderer</A>, <A HREF="../../../../org/geotools/renderer/Renderer2D.html" title="interface in org.geotools.renderer">Renderer2D</A></DL><P>A lite implementation of the Renderer and Renderer2D interfaces. Lite means that: <ul> <li>The code is relatively simple to understand, so it can be used as a simple example of an SLD compliant rendering code</li> <li>Uses as few memory as possible</li> </ul> Use this class if you need a stateless renderer that provides low memory footprint and decent rendering performance on the first call but don't need good optimal performance on subsequent calls on the same data. Notice: for the time being, this class doesn't support GridCoverage stylers, that will be rendered using the non geophisics version of the GridCoverage, if available, with the geophisics one, otherwise.<P><P><DL><DT><B>Author:</B></DT> <DD>James Macgill, Andrea Aime</DD><DT><B>Module:</B></DT><DD><CODE><B>module/render</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-render/"><CODE>gt2-render.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/render/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/render/src/org/geotools/renderer/lite/LiteRenderer2.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static LiteRenderer2.DefaultRenderListener</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#DEFAULT_LISTENER">DEFAULT_LISTENER</A></B></CODE><BR> <B>Deprecated.</B> This listener is added to the list of listeners automatically. </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><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#LiteRenderer2()">LiteRenderer2</A></B>()</CODE><BR> <B>Deprecated.</B> Creates a new instance of LiteRenderer without a context. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#LiteRenderer2(org.geotools.map.MapContext)">LiteRenderer2</A></B>(<A HREF="../../../../org/geotools/map/MapContext.html" title="interface in org.geotools.map">MapContext</A> context)</CODE><BR> <B>Deprecated.</B> Creates a new instance of Java2DRenderer.</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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#addRenderListener(org.geotools.renderer.RenderListener)">addRenderListener</A></B>(<A HREF="../../../../org/geotools/renderer/RenderListener.html" title="interface in org.geotools.renderer">RenderListener</A> listener)</CODE><BR> <B>Deprecated.</B> adds a listener that responds to error events of feature rendered events.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#calculateScale(com.vividsolutions.jts.geom.Envelope, org.opengis.referencing.crs.CoordinateReferenceSystem, int, int, double)">calculateScale</A></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)</CODE><BR> <B>Deprecated.</B> Find the scale denominator of the map. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#getCentroid(com.vividsolutions.jts.geom.Geometry)">getCentroid</A></B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> g)</CODE><BR> <B>Deprecated.</B> Finds the centroid of the input geometry if input = point, line, polygon --> return a point that represents the centroid of that geom if input = geometry collection --> return a multipoint that represents the centoid of each sub-geom</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/renderer/lite/LiteRenderer2.html#getConcatTransforms()">getConcatTransforms</A></B>()</CODE><BR> <B>Deprecated.</B> Flag which controls behaviour for applying affine transformation to the graphics object.</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/renderer/lite/LiteRenderer2.html#getGeneralizationDistance()">getGeneralizationDistance</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the generalization distance in the screen space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/renderer/lite/LiteRenderer2.html#getImageLoadingTimeout()">getImageLoadingTimeout</A></B>()</CODE><BR> <B>Deprecated.</B> 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</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/renderer/lite/LiteRenderer2.html#isInteractive()">isInteractive</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -