formatter.html
来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 780 行 · 第 1/3 页
HTML
780 行
<BR> The angular unit for formatting measures, or for the "natural" unit of each WKT element. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Identifier</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/referencing/wkt/Formatter.html#getIdentifier(org.opengis.referencing.IdentifiedObject)">getIdentifier</A></B>(IdentifiedObject info)</CODE><BR> Returns the preferred identifier for the specified object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/referencing/wkt/Formatter.html#getLinearUnit()">getLinearUnit</A></B>()</CODE><BR> The linear unit for formatting measures, or for the "natural" unit of each WKT element.</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/referencing/wkt/Formatter.html#getName(org.opengis.referencing.IdentifiedObject)">getName</A></B>(IdentifiedObject info)</CODE><BR> Returns the preferred name for the specified 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/referencing/wkt/Formatter.html#isInvalidWKT()">isInvalidWKT</A></B>()</CODE><BR> Returns if the WKT in this formatter is not strictly compliant to the <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html">WKT specification</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/referencing/wkt/Formatter.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] args)</CODE><BR> Set the preferred indentation from the command line. </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/referencing/wkt/Formatter.html#setAngularUnit(javax.units.Unit)">setAngularUnit</A></B>(<A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A> unit)</CODE><BR> Set the angular unit for formatting measures.</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/referencing/wkt/Formatter.html#setInvalidWKT()">setInvalidWKT</A></B>()</CODE><BR> Set a flag marking the current WKT as not strictly compliant to the <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html">WKT specification</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/referencing/wkt/Formatter.html#setLinearUnit(javax.units.Unit)">setLinearUnit</A></B>(<A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A> unit)</CODE><BR> Set the unit for formatting linear measures.</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/referencing/wkt/Formatter.html#toString()">toString</A></B>()</CODE><BR> Returns the WKT in its current state.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><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="Formatter()"><!-- --></A><H3>Formatter</H3><PRE>public <B>Formatter</B>()</PRE><DL><DD>Creates a new instance of the formatter with the default symbols.<P></DL><HR><A NAME="Formatter(org.geotools.referencing.wkt.Symbols)"><!-- --></A><H3>Formatter</H3><PRE>public <B>Formatter</B>(<A HREF="../../../../org/geotools/referencing/wkt/Symbols.html" title="class in org.geotools.referencing.wkt">Symbols</A> symbols)</PRE><DL><DD>Creates a new instance of the formatter. The whole WKT will be formatted on a single line.<P><DT><B>Parameters:</B><DD><CODE>symbols</CODE> - The symbols.</DL><HR><A NAME="Formatter(org.geotools.referencing.wkt.Symbols, int)"><!-- --></A><H3>Formatter</H3><PRE>public <B>Formatter</B>(<A HREF="../../../../org/geotools/referencing/wkt/Symbols.html" title="class in org.geotools.referencing.wkt">Symbols</A> symbols, int indentation)</PRE><DL><DD>Creates a new instance of the formatter with the specified indentation width. The WKT will be formatted on many lines, and the indentation width will have the value specified to this constructor. If the specified indentation is 0, then the whole WKT will be formatted on a single line.<P><DT><B>Parameters:</B><DD><CODE>symbols</CODE> - The symbols.<DD><CODE>indentation</CODE> - The amount of spaces to use in indentation. Typical values are 2 or 4.</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="append(org.geotools.referencing.wkt.Formattable)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(<A HREF="../../../../org/geotools/referencing/wkt/Formattable.html" title="class in org.geotools.referencing.wkt">Formattable</A> formattable)</PRE><DL><DD>Append the specified object. This method will automatically append the keyword (e.g. <code>"GEOCS"</code>), the name and the authority code, and will invokes <code>formattable.<A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#formatWKT(org.geotools.referencing.wkt.Formatter)">formatWKT</A>(this)</code> for completing the inner part of the WKT.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>formattable</CODE> - The formattable object to append to the WKT.</DL></DD></DL><HR><A NAME="append(org.opengis.referencing.IdentifiedObject)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(IdentifiedObject info)</PRE><DL><DD>Append the specified OpenGIS's object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The info object to append to the WKT.</DL></DD></DL><HR><A NAME="append(org.opengis.referencing.operation.MathTransform)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(MathTransform transform)</PRE><DL><DD>Append the specified math transform.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transform</CODE> - The transform object to append to the WKT.</DL></DD></DL><HR><A NAME="append(org.opengis.util.CodeList)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(CodeList code)</PRE><DL><DD>Append a code list to the WKT.<P><DD><DL></DL></DD></DL><HR><A NAME="append(org.opengis.parameter.GeneralParameterValue)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(GeneralParameterValue parameter)</PRE><DL><DD>Append a parameter in WKT form. If the supplied parameter is actually a parameter group, all parameters will be inlined.<P><DD><DL></DL></DD></DL><HR><A NAME="append(int)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(int number)</PRE><DL><DD>Append an integer number. A comma (or any other element separator) will be written before the number if needed.<P><DD><DL></DL></DD></DL><HR><A NAME="append(double)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(double number)</PRE><DL><DD>Append a floating point number. A comma (or any other element separator) will be written before the number if needed.<P><DD><DL></DL></DD></DL><HR><A NAME="append(javax.units.Unit)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(<A HREF="http://jsr-108.sourceforge.net/javadoc/javax/units/Unit.html" title="class or interface in javax.units">Unit</A> unit)</PRE><DL><DD>Appends a unit in WKT form. For example, can append "<code>UNIT["km", 1000]</code>" to the WKT.<P><DD><DL></DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?