formattable.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 437 行 · 第 1/2 页

HTML
437
字号
<!-- ========= 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="Formattable()"><!-- --></A><H3>Formattable</H3><PRE>protected <B>Formattable</B>()</PRE><DL><DD>Default constructor.<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="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation for this object. The default implementation returns the same string similar than <A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#toWKT()"><CODE>toWKT()</CODE></A>, except that no exception is thrown if the string contains non-standard keywords. For example the <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html">WKT specification</A> do not defines any keyword for coordinate system objects. If this object is an instance of <A HREF="../../../../org/geotools/referencing/cs/DefaultCartesianCS.html" title="class in org.geotools.referencing.cs"><CODE>DefaultCartesianCS</CODE></A>, then the WKT will be formatted as <code>"CartesianCS[AXIS["</code>...<code>"], AXIS["</code>...<code>"], </code><i>etc.</i><code>]"</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="toWKT()"><!-- --></A><H3>toWKT</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toWKT</B>()             throws <A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></PRE><DL><DD>Returns a <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well Known Text</cite> (WKT)</A> using a default indentation. The default indentation is read from <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/prefs/Preferences.html" title="class or interface in java.util.prefs">user preferences</A>. It can be set from the command line using the following syntax: <blockquote> <var>&lt;preferred indentation&gt;</var> </blockquote><P><DD><DL><DT><B>Returns:</B><DD>The Well Know Text for this object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></CODE> - If this object can't be formatted as WKT.         A formatting may fails because an object is too complex for the WKT format capability         (for example an <A HREF="../../../../org/geotools/referencing/crs/DefaultEngineeringCRS.html" title="class in org.geotools.referencing.crs">engineering CRS</A> with different unit for each axis), or because only some specific         implementations can be formatted as WKT.</DL></DD></DL><HR><A NAME="toWKT(int)"><!-- --></A><H3>toWKT</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toWKT</B>(int&nbsp;indentation)             throws <A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></PRE><DL><DD>Returns a <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well Known Text</cite> (WKT)</A> for this object using the specified indentation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>indentation</CODE> - The amount of spaces to use in indentation for WKT formatting,         or 0 for formatting the whole WKT on a single line.<DT><B>Returns:</B><DD>The Well Know Text for this object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></CODE> - If this object can't be formatted as WKT.         A formatting may fails because an object is too complex for the WKT format capability         (for example an <A HREF="../../../../org/geotools/referencing/crs/DefaultEngineeringCRS.html" title="class in org.geotools.referencing.crs">engineering CRS</A> with different unit for each axis), or because only some specific         implementations can be formatted as WKT.</DL></DD></DL><HR><A NAME="toWKT(org.opengis.metadata.citation.Citation, int)"><!-- --></A><H3>toWKT</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toWKT</B>(Citation&nbsp;authority,                    int&nbsp;indentation)             throws <A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></PRE><DL><DD>Returns a <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well Known Text</cite> (WKT)</A> for this object using the specified indentation and authority.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>authority</CODE> - The authority to prefer when choosing WKT entities names.<DD><CODE>indentation</CODE> - The amount of spaces to use in indentation for WKT formatting,         or 0 for formatting the whole WKT on a single line.<DT><B>Returns:</B><DD>The Well Know Text for this object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/referencing/wkt/UnformattableObjectException.html" title="class in org.geotools.referencing.wkt">UnformattableObjectException</A></CODE> - If this object can't be formatted as WKT.         A formatting may fails because an object is too complex for the WKT format capability         (for example an <A HREF="../../../../org/geotools/referencing/crs/DefaultEngineeringCRS.html" title="class in org.geotools.referencing.crs">engineering CRS</A> with different unit for each axis), or because only some specific         implementations can be formatted as WKT.</DL></DD></DL><HR><A NAME="formatWKT(org.geotools.referencing.wkt.Formatter)"><!-- --></A><H3>formatWKT</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatWKT</B>(<A HREF="../../../../org/geotools/referencing/wkt/Formatter.html" title="class in org.geotools.referencing.wkt">Formatter</A>&nbsp;formatter)</PRE><DL><DD>Format the inner part of a <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well Known Text</cite> (WKT)</A> element. This method is automatically invoked by <A HREF="../../../../org/geotools/referencing/wkt/Formatter.html#append(org.geotools.referencing.wkt.Formattable)"><CODE>Formatter.append(Formattable)</CODE></A>. Element name and authority code must not be formatted here. For example for a  element (<A HREF="../../../../org/geotools/referencing/crs/DefaultGeographicCRS.html" title="class in org.geotools.referencing.crs"><CODE>DefaultGeographicCRS</CODE></A>), the formatter will invokes this method for completing the WKT at the insertion point show below: <pre> &nbsp;    GEOGCS["WGS 84", AUTHORITY["EPSG","4326"]] &nbsp;                   | &nbsp;           (insertion point) </pre> The default implementation declare that this object produces an invalid WKT. Subclasses must override this method for proper WKT formatting.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>formatter</CODE> - The formatter to use.<DT><B>Returns:</B><DD>The WKT element name (e.g. "GEOGCS").<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#toWKT()"><CODE>toWKT()</CODE></A>, <A HREF="../../../../org/geotools/referencing/wkt/Formattable.html#toString()"><CODE>toString()</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Formattable.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/geotools/referencing/wkt/Element.html" title="class in org.geotools.referencing.wkt"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/referencing/wkt/Formatter.html" title="class in org.geotools.referencing.wkt"><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>  &nbsp;&nbsp;<A HREF="Formattable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?