texthitinfo.html
来自「API資料大全」· HTML 代码 · 共 547 行 · 第 1/3 页
HTML
547 行
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getNextLeftHit(java.awt.font.TextHitInfo)">getNextLeftHit</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns the hit for the next caret to the left (top); if no such hit, returns <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getNextLeftHit(int, java.awt.font.TextLayout.CaretPolicy)">getNextLeftHit</A></B>(int offset, <A HREF="../../../../java/awt/font/TextLayout.CaretPolicy.html">TextLayout.CaretPolicy</A> policy)</CODE><BR> Returns the hit for the next caret to the left (top); if no such hit, returns <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getNextLeftHit(int)">getNextLeftHit</A></B>(int offset)</CODE><BR> Returns the hit for the next caret to the left (top); if no such hit, returns <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getVisualOtherHit(java.awt.font.TextHitInfo)">getVisualOtherHit</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns the hit on the opposite side of the specified hit's caret.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#hitTestChar(float, float, java.awt.geom.Rectangle2D)">hitTestChar</A></B>(float x, float y, <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> bounds)</CODE><BR> Returns a <code>TextHitInfo</code> corresponding to the specified point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#hitTestChar(float, float)">hitTestChar</A></B>(float x, float y)</CODE><BR> Returns a <code>TextHitInfo</code> corresponding to the specified point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.CaretPolicy.</B><B><A HREF="../../../../java/awt/font/TextLayout.CaretPolicy.html#getStrongCaret(java.awt.font.TextHitInfo, java.awt.font.TextHitInfo, java.awt.font.TextLayout)">getStrongCaret</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit1, <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit2, <A HREF="../../../../java/awt/font/TextLayout.html">TextLayout</A> layout)</CODE><BR> Chooses one of the specified <code>TextHitInfo</code> instances as a strong caret in the specified <code>TextLayout</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#leading(int)">leading</A></B>(int charIndex)</CODE><BR> Creates a <code>TextHitInfo</code> on the leading edge of the character at the specified <code>charIndex</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#trailing(int)">trailing</A></B>(int charIndex)</CODE><BR> Creates a hit on the trailing edge of the character at the specified <code>charIndex</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#beforeOffset(int)">beforeOffset</A></B>(int offset)</CODE><BR> Creates a <code>TextHitInfo</code> at the specified offset, associated with the character before the offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#afterOffset(int)">afterOffset</A></B>(int offset)</CODE><BR> Creates a <code>TextHitInfo</code> at the specified offset, associated with the character after the offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#getOtherHit()">getOtherHit</A></B>()</CODE><BR> Creates a <code>TextHitInfo</code> on the other side of the insertion point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextHitInfo.</B><B><A HREF="../../../../java/awt/font/TextHitInfo.html#getOffsetHit(int)">getOffsetHit</A></B>(int delta)</CODE><BR> Creates a <code>TextHitInfo</code> whose character index is offset by <code>delta</code> from the <code>charIndex</code> of this <code>TextHitInfo</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../java/awt/font/package-summary.html">java.awt.font</A> with parameters of type <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float[]</CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getCaretInfo(java.awt.font.TextHitInfo, java.awt.geom.Rectangle2D)">getCaretInfo</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit, <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> bounds)</CODE><BR> Returns information about the caret corresponding to <code>hit</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float[]</CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getCaretInfo(java.awt.font.TextHitInfo)">getCaretInfo</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns information about the caret corresponding to <code>hit</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getNextRightHit(java.awt.font.TextHitInfo)">getNextRightHit</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns the hit for the next caret to the right (bottom); if there is no such hit, returns <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getNextLeftHit(java.awt.font.TextHitInfo)">getNextLeftHit</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns the hit for the next caret to the left (top); if no such hit, returns <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getVisualOtherHit(java.awt.font.TextHitInfo)">getVisualOtherHit</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit)</CODE><BR> Returns the hit on the opposite side of the specified hit's caret.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B>TextLayout.</B><B><A HREF="../../../../java/awt/font/TextLayout.html#getCaretShape(java.awt.font.TextHitInfo, java.awt.geom.Rectangle2D)">getCaretShape</A></B>(<A HREF="../../../../java/awt/font/TextHitInfo.html">TextHitInfo</A> hit, <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> bounds)</CODE><BR> Returns a <A HREF="../../../../java/awt/Shape.html"><CODE>Shape</CODE></A> representing the caret at the specified
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?