Uses of Class
java.awt.font.TextLayout.CaretPolicy
| Package | Description |
|---|---|
| java.awt.font |
Provides classes and interface relating to fonts.
|
-
Uses of TextLayout.CaretPolicy in java.awt.font
Fields in java.awt.font declared as TextLayout.CaretPolicy Modifier and Type Field Description static TextLayout.CaretPolicyTextLayout. DEFAULT_CARET_POLICYThisCaretPolicyis used when a policy is not specified by the client.Methods in java.awt.font with parameters of type TextLayout.CaretPolicy Modifier and Type Method Description Shape[]TextLayout. getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy)Returns two paths corresponding to the strong and weak caret.TextHitInfoTextLayout. getNextLeftHit(int offset, TextLayout.CaretPolicy policy)Returns the hit for the next caret to the left (top); if no such hit, returnsnull.TextHitInfoTextLayout. getNextRightHit(int offset, TextLayout.CaretPolicy policy)Returns the hit for the next caret to the right (bottom); if no such hit, returnsnull.