Java Platform 1.2
Beta 4

Uses of Class
java.awt.font.TextHitInfo

Packages that use TextHitInfo
java.awt.event Provides interfaces and classes for dealing with different types of events fired by AWT components.  
java.awt.font Provides classes and interface relating to fonts.  
java.awt.im Provides classes and an interface for the input method framework.  
 

Uses of TextHitInfo in java.awt.event
 

Methods in java.awt.event that return TextHitInfo
 TextHitInfo InputMethodEvent.getCaret()
          Gets the caret.
 TextHitInfo InputMethodEvent.getVisiblePosition()
          Gets the position that's most important to be visible.
 

Constructors in java.awt.event with parameters of type TextHitInfo
InputMethodEvent.InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
          Constructs an InputMethodEvent with the specified source component, type, text, caret, and visiblePosition.
InputMethodEvent.InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition)
          Constructs an InputMethodEvent with the specified source component, type, caret, and visiblePosition.
 

Uses of TextHitInfo in java.awt.font
 

Methods in java.awt.font that return TextHitInfo
 TextHitInfo TextLayout.getNextRightHit(TextHitInfo hit)
          Return the hit for the next caret to the right (bottom); if no such hit, return null.
 TextHitInfo TextLayout.getNextRightHit(int offset, TextLayout.CaretPolicy policy)
          Return the hit for the next caret to the right (bottom); if no such hit, return null.
 TextHitInfo TextLayout.getNextRightHit(int offset)
          Return the hit for the next caret to the right (bottom); if no such hit, return null.
 TextHitInfo TextLayout.getNextLeftHit(TextHitInfo hit)
          Return the hit for the next caret to the left (top); if no such hit, return null.
 TextHitInfo TextLayout.getNextLeftHit(int offset, TextLayout.CaretPolicy policy)
          Return the hit for the next caret to the left (top); if no such hit, return null.
 TextHitInfo TextLayout.getNextLeftHit(int offset)
          Return the hit for the next caret to the left (top); if no such hit, return null.
 TextHitInfo TextLayout.getVisualOtherHit(TextHitInfo hit)
          Return the hit on the opposite side of this hit's caret.
 TextHitInfo TextLayout.hitTestChar(float x, float y, Rectangle2D bounds)
          Return a TextHitInfo corresponding to the point.
 TextHitInfo TextLayout.hitTestChar(float x, float y)
          A convenience overload which uses the natural bounds of the layout.
 TextHitInfo TextLayout.CaretPolicy.getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout)
          Choose one of the given TextHitInfo instances as a strong caret in the given TextLayout.
static TextHitInfo TextHitInfo.leading(int charIndex)
          Create a hit on the leading edge of the character at charIndex.
static TextHitInfo TextHitInfo.trailing(int charIndex)
          Create a hit on the trailing edge of the character at charIndex.
static TextHitInfo TextHitInfo.beforeOffset(int offset)
          Create a hit at offset, associated with the character before the offset.
static TextHitInfo TextHitInfo.afterOffset(int offset)
          Create a hit at offset, associated with the character after the offset.
 TextHitInfo TextHitInfo.getOtherHit()
          Creates a hit on the other side of the insertion point.
 TextHitInfo TextHitInfo.getOffsetHit(int delta)
          Creates a hit whose character index is offset by delta from this hit.
 

Methods in java.awt.font with parameters of type TextHitInfo
 float[] TextLayout.getCaretInfo(TextHitInfo hit, Rectangle2D bounds)
          Return information about the caret corresponding to hit.
 float[] TextLayout.getCaretInfo(TextHitInfo hit)
          A convenience overload using the natural bounds of this layout.
 TextHitInfo TextLayout.getNextRightHit(TextHitInfo hit)
          Return the hit for the next caret to the right (bottom); if no such hit, return null.
 TextHitInfo TextLayout.getNextLeftHit(TextHitInfo hit)
          Return the hit for the next caret to the left (top); if no such hit, return null.
 TextHitInfo TextLayout.getVisualOtherHit(TextHitInfo hit)
          Return the hit on the opposite side of this hit's caret.
 Shape TextLayout.getCaretShape(TextHitInfo hit, Rectangle2D bounds)
          Return a shape representing the caret at hit inside the given bounds.
 Shape TextLayout.getCaretShape(TextHitInfo hit)
          Return a shape representing the caret at hit.
 int[] TextLayout.getLogicalRangesForVisualSelection(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)
          Return the logical ranges of text corresponding to a visual selection.
 Shape TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)
          Return a path enclosing the visual selection in the given range, extended to bounds.
 Shape TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)
          A convenience overload which uses the natural bounds of the layout.
 TextHitInfo TextLayout.CaretPolicy.getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout)
          Choose one of the given TextHitInfo instances as a strong caret in the given TextLayout.
 boolean TextHitInfo.equals(TextHitInfo hitInfo)
          Return true if the hit's character index and edge are the same.
 

Uses of TextHitInfo in java.awt.im
 

Methods in java.awt.im that return TextHitInfo
 TextHitInfo InputMethodRequests.getLocationOffset(int x, int y)
          Gets the offset within the composed text for the specified absolute x and y coordinates on the screen.
 

Methods in java.awt.im with parameters of type TextHitInfo
 Rectangle InputMethodRequests.getTextLocation(TextHitInfo offset)
          Gets the location of a specified offset in the current composed text, or of the selection in committed text.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.