📄 directposition1d.html
字号:
<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="DirectPosition1D()"><!-- --></A><H3>DirectPosition1D</H3><PRE>public <B>DirectPosition1D</B>()</PRE><DL><DD>Constructs a position initialized to (0) with a coordinate reference system.<P></DL><HR><A NAME="DirectPosition1D(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>DirectPosition1D</H3><PRE>public <B>DirectPosition1D</B>(CoordinateReferenceSystem crs)</PRE><DL><DD>Constructs a position with the specified coordinate reference system.<P></DL><HR><A NAME="DirectPosition1D(double)"><!-- --></A><H3>DirectPosition1D</H3><PRE>public <B>DirectPosition1D</B>(double ordinate)</PRE><DL><DD>Constructs a 1D position from the specified ordinate.<P></DL><HR><A NAME="DirectPosition1D(org.opengis.spatialschema.geometry.DirectPosition)"><!-- --></A><H3>DirectPosition1D</H3><PRE>public <B>DirectPosition1D</B>(DirectPosition point)</PRE><DL><DD>Constructs a position initialized to the same values than the specified point.<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="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>public DirectPosition <B>getPosition</B>()</PRE><DL><DD>Returns always <code>this</code>, the direct position for this position.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getPosition</CODE> in interface <CODE>Position</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCoordinateReferenceSystem()"><!-- --></A><H3>getCoordinateReferenceSystem</H3><PRE>public final CoordinateReferenceSystem <B>getCoordinateReferenceSystem</B>()</PRE><DL><DD>Returns the coordinate reference system in which the coordinate is given. May be if this particular is included in a larger object with such a reference to a coordinate reference system.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getCoordinateReferenceSystem</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The coordinate reference system, or .</DL></DD></DL><HR><A NAME="setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>setCoordinateReferenceSystem</H3><PRE>public void <B>setCoordinateReferenceSystem</B>(CoordinateReferenceSystem crs)</PRE><DL><DD>Set the coordinate reference system in which the coordinate is given.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>crs</CODE> - The new coordinate reference system, or .</DL></DD></DL><HR><A NAME="getDimension()"><!-- --></A><H3>getDimension</H3><PRE>public final int <B>getDimension</B>()</PRE><DL><DD>The length of coordinate sequence (the number of entries). This is always 1 for <code>DirectPosition1D</code> objects.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getDimension</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The dimensionality of this position.</DL></DD></DL><HR><A NAME="getCoordinates()"><!-- --></A><H3>getCoordinates</H3><PRE>public double[] <B>getCoordinates</B>()</PRE><DL><DD>Returns a sequence of numbers that hold the coordinate of this position in its reference system.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getCoordinates</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The coordinates</DL></DD></DL><HR><A NAME="getOrdinate(int)"><!-- --></A><H3>getOrdinate</H3><PRE>public final double <B>getOrdinate</B>(int dimension) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></PRE><DL><DD>Returns the ordinate at the specified dimension.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getOrdinate</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - The dimension, which must be 0.<DT><B>Returns:</B><DD>The <A HREF="../../../org/geotools/geometry/DirectPosition1D.html#ordinate">ordinate</A>.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the specified dimension is out of bounds.</DL></DD></DL><HR><A NAME="setOrdinate(int, double)"><!-- --></A><H3>setOrdinate</H3><PRE>public final void <B>setOrdinate</B>(int dimension, double value) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></PRE><DL><DD>Sets the ordinate value along the specified dimension.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setOrdinate</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dimension</CODE> - The dimension, which must be 0.<DD><CODE>value</CODE> - the ordinate value.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the specified dimension is out of bounds.</DL></DD></DL><HR><A NAME="setLocation(org.opengis.spatialschema.geometry.DirectPosition)"><!-- --></A><H3>setLocation</H3><PRE>public void <B>setLocation</B>(DirectPosition position) throws MismatchedDimensionException</PRE><DL><DD>Set this coordinate to the specified direct position. If the specified position contains a coordinate reference system, then the CRS for this position will be set to the CRS of the specified position.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - The new position for this point.<DT><B>Throws:</B><DD><CODE>MismatchedDimensionException</CODE> - if this point doesn't have the expected dimension.</DL></DD></DL><HR><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 of this coordinate. The default implementation formats this coordinate using a shared instance of <A HREF="../../../org/geotools/measure/CoordinateFormat.html" title="class in org.geotools.measure"><CODE>CoordinateFormat</CODE></A>. This is okay for occasional formatting (for example for debugging purpose). But if there is a lot of positions to format, users will get better performance and more control by using their own instance of <A HREF="../../../org/geotools/measure/CoordinateFormat.html" title="class in org.geotools.measure"><CODE>CoordinateFormat</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash value for this coordinate. This value need not remain consistent between different implementations of the same class.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <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>clone</B>()</PRE><DL><DD>Returns a copy of this position.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>DirectPosition</CODE></DL></DD><DD><DL></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> </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/DirectPosition1D.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"> PREV CLASS <A HREF="../../../org/geotools/geometry/DirectPosition2D.html" title="class in org.geotools.geometry"><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="DirectPosition1D.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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -