Uses of Class
java.awt.font.TextLayout.CaretPolicy
Packages that use TextLayout.CaretPolicy
-
Uses of TextLayout.CaretPolicy in java.awt.font
Fields in java.awt.font declared as TextLayout.CaretPolicyModifier and TypeFieldDescriptionstatic final TextLayout.CaretPolicy
TextLayout.DEFAULT_CARET_POLICY
ThisCaretPolicy
is used when a policy is not specified by the client.Methods in java.awt.font with parameters of type TextLayout.CaretPolicyModifier and TypeMethodDescriptionShape[]
TextLayout.getCaretShapes
(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy) Returns two paths corresponding to the strong and weak caret.TextLayout.getNextLeftHit
(int offset, TextLayout.CaretPolicy policy) Returns the hit for the next caret to the left (top); if no such hit, returnsnull
.TextLayout.getNextRightHit
(int offset, TextLayout.CaretPolicy policy) Returns the hit for the next caret to the right (bottom); if no such hit, returnsnull
.