texthitinfo.html

来自「API資料大全」· HTML 代码 · 共 505 行 · 第 1/2 页

HTML
505
字号
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getCharIndex()"><!-- --></A><H3>getCharIndex</H3><PRE>public int <B>getCharIndex</B>()</PRE><DL><DD>Returns the index of the character hit.<DD><DL><DT><B>Returns:</B><DD>the index of the character hit.</DL></DD></DL><HR><A NAME="isLeadingEdge()"><!-- --></A><H3>isLeadingEdge</H3><PRE>public boolean <B>isLeadingEdge</B>()</PRE><DL><DD>Returns <code>true</code> if the leading edge of the character was hit.<DD><DL><DT><B>Returns:</B><DD><code>true</code> if the leading edge of the character was hit; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="getInsertionIndex()"><!-- --></A><H3>getInsertionIndex</H3><PRE>public int <B>getInsertionIndex</B>()</PRE><DL><DD>Returns the insertion index.  This is the character index if  the leading edge of the character was hit, and one greater  than the character index if the trailing edge was hit.<DD><DL><DT><B>Returns:</B><DD>the insertion index.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the hash code of this <code>TextHitInfo</code>, which is also the <code>charIndex</code> of this <code>TextHitInfo</code>.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Returns <code>true</code> if the specified <code>Object</code> is a <code>TextHitInfo</code> and equals this <code>TextHitInfo</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the <code>Object</code> to test for equality<DT><B>Returns:</B><DD><code>true</code> if the specified <code>Object</code> equals this <code>TextHitInfo</code>; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="equals(java.awt.font.TextHitInfo)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A>&nbsp;hitInfo)</PRE><DL><DD>Returns <code>true</code> if the specified <code>TextHitInfo</code> has the same <code>charIndex</code> and <code>isLeadingEdge</code> as this <code>TextHitInfo</code>.  This is not the same as having the same insertion offset.<DD><DL><DT><B>Parameters:</B><DD><CODE>hitInfo</CODE> - a specified <code>TextHitInfo</code><DT><B>Returns:</B><DD><code>true</code> if the specified <code>TextHitInfo</code> has the same <code>charIndex</code> and <code>isLeadingEdge</code> as this <code>TextHitInfo</code>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a <code>String</code> representing the hit for debugging use only.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> representing this <code>TextHitInfo</code>.</DL></DD></DL><HR><A NAME="leading(int)"><!-- --></A><H3>leading</H3><PRE>public static <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>leading</B>(int&nbsp;charIndex)</PRE><DL><DD>Creates a <code>TextHitInfo</code> on the leading edge of the character at the specified <code>charIndex</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>charIndex</CODE> - the index of the character hit<DT><B>Returns:</B><DD>a <code>TextHitInfo</code> on the leading edge of the character at the specified <code>charIndex</code>.</DL></DD></DL><HR><A NAME="trailing(int)"><!-- --></A><H3>trailing</H3><PRE>public static <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>trailing</B>(int&nbsp;charIndex)</PRE><DL><DD>Creates a hit on the trailing edge of the character at  the specified <code>charIndex</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>charIndex</CODE> - the index of the character hit<DT><B>Returns:</B><DD>a <code>TextHitInfo</code> on the trailing edge of the character at the specified <code>charIndex</code>.</DL></DD></DL><HR><A NAME="beforeOffset(int)"><!-- --></A><H3>beforeOffset</H3><PRE>public static <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>beforeOffset</B>(int&nbsp;offset)</PRE><DL><DD>Creates a <code>TextHitInfo</code> at the specified offset, associated with the character before the offset.<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - an offset associated with the character before the offset<DT><B>Returns:</B><DD>a <code>TextHitInfo</code> at the specified offset.</DL></DD></DL><HR><A NAME="afterOffset(int)"><!-- --></A><H3>afterOffset</H3><PRE>public static <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>afterOffset</B>(int&nbsp;offset)</PRE><DL><DD>Creates a <code>TextHitInfo</code> at the specified offset, associated with the character after the offset.<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - an offset associated with the character after the offset<DT><B>Returns:</B><DD>a <code>TextHitInfo</code> at the specified offset.</DL></DD></DL><HR><A NAME="getOtherHit()"><!-- --></A><H3>getOtherHit</H3><PRE>public <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>getOtherHit</B>()</PRE><DL><DD>Creates a <code>TextHitInfo</code> on the other side of the insertion point.  This <code>TextHitInfo</code> remains unchanged.<DD><DL><DT><B>Returns:</B><DD>a <code>TextHitInfo</code> on the other side of the  insertion point.</DL></DD></DL><HR><A NAME="getOffsetHit(int)"><!-- --></A><H3>getOffsetHit</H3><PRE>public <A HREF="../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> <B>getOffsetHit</B>(int&nbsp;delta)</PRE><DL><DD>Creates a <code>TextHitInfo</code> whose character index is offset by <code>delta</code> from the <code>charIndex</code> of this <code>TextHitInfo</code>. This <code>TextHitInfo</code> remains unchanged.<DD><DL><DT><B>Parameters:</B><DD><CODE>delta</CODE> - the value to offset this <code>charIndex</code><DT><B>Returns:</B><DD>a <code>TextHitInfo</code> whose <code>charIndex</code> is offset by <code>delta</code> from the <code>charIndex</code> of  this <code>TextHitInfo</code>.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/TextHitInfo.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/font/TextAttribute.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/font/TextLayout.html"><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="TextHitInfo.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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