Package | Description |
---|---|
java.awt.font |
Provides classes and interface relating to fonts.
|
Modifier and Type | Field | Description |
---|---|---|
static TextLayout.CaretPolicy |
TextLayout.DEFAULT_CARET_POLICY |
This
CaretPolicy is used when a policy is not specified
by the client. |
Modifier and Type | Method | Description |
---|---|---|
java.awt.Shape[] |
TextLayout.getCaretShapes(int offset,
Rectangle2D bounds,
TextLayout.CaretPolicy policy) |
Returns two paths corresponding to the strong and weak caret.
|
TextHitInfo |
TextLayout.getNextLeftHit(int offset,
TextLayout.CaretPolicy policy) |
Returns the hit for the next caret to the left (top); if no
such hit, returns
null . |
TextHitInfo |
TextLayout.getNextRightHit(int offset,
TextLayout.CaretPolicy policy) |
Returns the hit for the next caret to the right (bottom); if no
such hit, returns
null . |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2