| Modifier and Type | Field and Description |
|---|---|
| public static final int | LEFT_TO_RIGHT
Force subset characters to run left-to-right. |
| public static final int | RIGHT_TO_LEFT
Force subset characters to run right-to-left. |
| public static final int | UNCHANGED
Leave subset character direction and ordering unchanged. |
| Modifier and Type | Method and Description |
|---|---|
| public TextLineComponent | applyJustificationDeltas(float[] deltas, int deltaStart, boolean[] flags)
Apply deltas to the data in this component, starting at offset deltaStart, and return the new component. |
| public boolean | |
| public void | |
| public float | |
| public float | |
| public AffineTransform | |
| public float | |
| public Rectangle2D | |
| public float | |
| public float | |
| public CoreMetrics | |
| public Rectangle2D | |
| public void | getJustificationInfos(GlyphJustificationInfo[] infos, int infoStart, int charStart, int charLimit)
Return GlyphJustificationInfo objects for the characters between charStart and charLimit, starting at offset infoStart. |
| public int | |
| public Rectangle2D | |
| public int | |
| public int | |
| public Shape | |
| public Rectangle | |
| public TextLineComponent | getSubset(int start, int limit, int
one of the constants LEFT_TO_RIGHT, RIGHT_TO_LEFT, or UNCHANGED dir)Return a TextLineComponent for the characters in the range start, limit. |
| public Rectangle2D | |
| public boolean |
| LEFT_TO_RIGHT | back to summary |
|---|---|
| public static final int LEFT_TO_RIGHT Force subset characters to run left-to-right. | |
| RIGHT_TO_LEFT | back to summary |
|---|---|
| public static final int RIGHT_TO_LEFT Force subset characters to run right-to-left. | |
| UNCHANGED | back to summary |
|---|---|
| public static final int UNCHANGED Leave subset character direction and ordering unchanged. | |
| applyJustificationDeltas | back to summary |
|---|---|
| public TextLineComponent applyJustificationDeltas(float[] deltas, int deltaStart, boolean[] flags) Apply deltas to the data in this component, starting at offset deltaStart, and return the new component. There are two floats for each justification info, for a total of 2 * getNumJustificationInfos. The first delta is the left adjustment, the second is the right adjustment. If flags[0] is true on entry, rejustification is allowed. If the new component requires rejustification (ligatures were formed or split), flags[0] will be set on exit. | |
| caretAtOffsetIsValid | back to summary |
|---|---|
| public boolean caretAtOffsetIsValid(int index) | |
| draw | back to summary |
|---|---|
| public void draw(Graphics2D g2d, float x, float y) | |
| getAdvance | back to summary |
|---|---|
| public float getAdvance() | |
| getAdvanceBetween | back to summary |
|---|---|
| public float getAdvanceBetween(int start, int limit) | |
| getBaselineTransform | back to summary |
|---|---|
| public AffineTransform getBaselineTransform() | |
| getCharAdvance | back to summary |
|---|---|
| public float getCharAdvance(int index) | |
| getCharVisualBounds | back to summary |
|---|---|
| public Rectangle2D getCharVisualBounds(int index) | |
| getCharX | back to summary |
|---|---|
| public float getCharX(int index) | |
| getCharY | back to summary |
|---|---|
| public float getCharY(int index) | |
| getCoreMetrics | back to summary |
|---|---|
| public CoreMetrics getCoreMetrics() | |
| getItalicBounds | back to summary |
|---|---|
| public Rectangle2D getItalicBounds() | |
| getJustificationInfos | back to summary |
|---|---|
| public void getJustificationInfos(GlyphJustificationInfo[] infos, int infoStart, int charStart, int charLimit) Return GlyphJustificationInfo objects for the characters between charStart and charLimit, starting at offset infoStart. Infos will be in visual order. All positions between infoStart and getNumJustificationInfos will be set. If a position corresponds to a character outside the provided range, it is set to null. | |
| getLineBreakIndex | back to summary |
|---|---|
| public int getLineBreakIndex(int start, float width) | |
| getLogicalBounds | back to summary |
|---|---|
| public Rectangle2D getLogicalBounds() | |
| getNumCharacters | back to summary |
|---|---|
| public int getNumCharacters() | |
| getNumJustificationInfos | back to summary |
|---|---|
| public int getNumJustificationInfos() Return the number of justification records this uses. | |
| getOutline | back to summary |
|---|---|
| public Shape getOutline(float x, float y) | |
| getPixelBounds | back to summary |
|---|---|
| public Rectangle getPixelBounds(FontRenderContext frc, float x, float y) | |
| getSubset | back to summary |
|---|---|
| public TextLineComponent getSubset(int start, int limit, int dir) Return a TextLineComponent for the characters in the range start, limit. The range is relative to this TextLineComponent (ie, the first character is at 0).
| |
| getVisualBounds | back to summary |
|---|---|
| public Rectangle2D getVisualBounds() | |
| isSimple | back to summary |
|---|---|
| public boolean isSimple() | |