Defines a policy for determining the strong caret location.
This class contains one method, getStrongCaret, which
is used to specify the policy that determines the strong caret in
dual-caret text. The strong caret is used to move the caret to the
left or right. Instances of this class can be passed to
getCaretShapes, getNextLeftHit and
getNextRightHit to customize strong caret
selection.
To specify alternate caret policies, subclass CaretPolicy
and override getStrongCaret. getStrongCaret
should inspect the two TextHitInfo arguments and choose
one of them as the strong caret.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.