| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private float[] | |
| private byte[] | |
| private int[] | |
| private char[] | |
| private int | |
| private int | |
| private int[] | |
| private TextLineComponent[] | |
| private int[] | |
| private static TextLine. | |
| private static TextLine. | |
| private static TextLine. | |
| private static TextLine. | |
| private boolean | |
| private TextLine. | |
| private FontRenderContext | |
| private boolean | |
| private float[] | |
| private LayoutPathImpl | |
| private Rectangle |
| Access | Constructor and Description |
|---|---|
| public | TextLine(FontRenderContext frc, TextLineComponent[] components, float[] baselineOffsets, char[] chars, int charsStart, int charsLimit, int[] charLogicalOrder, byte[] charLevels, boolean isDirectionLTR)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | advanceToFirstFont(AttributedCharacterIterator aci)
When this returns, the ACI's current position will be at the start of the first run which does NOT contain a GraphicAttribute. |
| private float | |
| public boolean | |
| public int | |
| private void | |
| private static int[] | computeComponentOrder(TextLineComponent[] components, int[] charsLtoV)
Compute the components order from the given components array and logical-to-visual character mapping. |
| pack-priv static Rectangle | |
| public static TextLineComponent[] | createComponentsOnRun(int runStart, int runLimit, char[] chars, int[] charsLtoV, byte[] levels, TextLabelFactory factory, Font font, CoreMetrics cm, FontRenderContext frc, Decoration decorator, TextLineComponent[] components, int numComponents)
Returns an array in logical order of the TextLineComponents on the text in the given range, with the given attributes. |
| public static TextLine | createLineFromText(char[] chars, StyledParagraph styledParagraph, TextLabelFactory factory, boolean isDirectionLTR, float[] baselineOffsets)
Create a TextLine from the Font and character data over the range. |
| public void | |
| private static TextLineComponent[] | |
| public static TextLine | fastCreateTextLine(FontRenderContext frc, char[] chars, Font font, CoreMetrics lm, Map<? extends AttributedCharacterIterator.
Create a TextLine from the text. |
| private static int | |
| public static float | |
| public float | |
| public float | |
| public float | |
| public Rectangle2D | |
| public float | |
| public byte | |
| public float | |
| public float | |
| public float | |
| public int | |
| public float | |
| public float | |
| private int | |
| public static TextLineComponent[] | getComponents(StyledParagraph styledParagraph, char[] chars, int textStart, int textLimit, int[] charsLtoV, byte[] levels, TextLabelFactory factory)
Returns an array (in logical order) of the TextLineComponents representing the text. |
| private float | |
| private int | |
| public CoreMetrics | |
| pack-priv static Font | |
| public Rectangle2D | |
| public TextLine | |
| pack-priv LayoutPathImpl | |
| public TextLine. | |
| pack-priv static float[] | |
| public Shape | |
| public Rectangle | |
| public Rectangle2D | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| public static TextLine | standardCreateTextLine(FontRenderContext frc, AttributedCharacterIterator text, char[] chars, float[] baselineOffsets)
Create a TextLine from the text. |
| public String | |
| public int |
| fBaselineOffsets | back to summary |
|---|---|
| private float[] fBaselineOffsets | |
| fCharLevels | back to summary |
|---|---|
| private byte[] fCharLevels | |
| fCharLogicalOrder | back to summary |
|---|---|
| private int[] fCharLogicalOrder | |
| fChars | back to summary |
|---|---|
| private char[] fChars | |
| fCharsLimit | back to summary |
|---|---|
| private int fCharsLimit | |
| fCharsStart | back to summary |
|---|---|
| private int fCharsStart | |
| fCharVisualOrder | back to summary |
|---|---|
| private int[] fCharVisualOrder | |
| fComponents | back to summary |
|---|---|
| private TextLineComponent[] fComponents | |
| fComponentVisualOrder | back to summary |
|---|---|
| private int[] fComponentVisualOrder | |
| fgAdvanceF | back to summary |
|---|---|
| private static TextLine. | |
| fgPosAdvF | back to summary |
|---|---|
| private static TextLine. | |
| fgXPositionF | back to summary |
|---|---|
| private static TextLine. | |
| fgYPositionF | back to summary |
|---|---|
| private static TextLine. | |
| fIsDirectionLTR | back to summary |
|---|---|
| private boolean fIsDirectionLTR | |
| fMetrics | back to summary |
|---|---|
| private TextLine. | |
| frc | back to summary |
|---|---|
| private FontRenderContext frc | |
| isSimple | back to summary |
|---|---|
| private boolean isSimple | |
| locs | back to summary |
|---|---|
| private float[] locs | |
| lp | back to summary |
|---|---|
| private LayoutPathImpl lp | |
| pixelBounds | back to summary |
|---|---|
| private Rectangle pixelBounds | |
| TextLine | back to summary |
|---|---|
| public TextLine(FontRenderContext frc, TextLineComponent[] components, float[] baselineOffsets, char[] chars, int charsStart, int charsLimit, int[] charLogicalOrder, byte[] charLevels, boolean isDirectionLTR) | |
| advanceToFirstFont | back to summary |
|---|---|
| pack-priv static boolean advanceToFirstFont(AttributedCharacterIterator aci) When this returns, the ACI's current position will be at the start of the first run which does NOT contain a GraphicAttribute. If no such run exists the ACI's position will be at the end, and this method will return false. | |
| applyFunctionAtIndex | back to summary |
|---|---|
| private float applyFunctionAtIndex(int logicalIndex, TextLine. | |
| caretAtOffsetIsValid | back to summary |
|---|---|
| public boolean caretAtOffsetIsValid(int offset) | |
| characterCount | back to summary |
|---|---|
| public int characterCount() | |
| checkCtorArgs | back to summary |
|---|---|
| private void checkCtorArgs() | |
| computeComponentOrder | back to summary |
|---|---|
| private static int[] computeComponentOrder(TextLineComponent[] components, int[] charsLtoV) Compute the components order from the given components array and logical-to-visual character mapping. May return null if canonical. | |
| computePixelBounds | back to summary |
|---|---|
| pack-priv static Rectangle computePixelBounds(BufferedImage im) | |
| createComponentsOnRun | back to summary |
|---|---|
| public static TextLineComponent[] createComponentsOnRun(int runStart, int runLimit, char[] chars, int[] charsLtoV, byte[] levels, TextLabelFactory factory, Font font, CoreMetrics cm, FontRenderContext frc, Decoration decorator, TextLineComponent[] components, int numComponents) Returns an array in logical order of the TextLineComponents on the text in the given range, with the given attributes. | |
| createLineFromText | back to summary |
|---|---|
| public static TextLine createLineFromText(char[] chars, StyledParagraph styledParagraph, TextLabelFactory factory, boolean isDirectionLTR, float[] baselineOffsets) Create a TextLine from the Font and character data over the range. The range is relative to both the StyledParagraph and the character array. | |
| draw | back to summary |
|---|---|
| public void draw(Graphics2D g2, float x, float y) | |
| expandArray | back to summary |
|---|---|
| private static TextLineComponent[] expandArray(TextLineComponent[] orig) | |
| fastCreateTextLine | back to summary |
|---|---|
| public static TextLine fastCreateTextLine(FontRenderContext frc, char[] chars, Font font, CoreMetrics lm, Map<? extends AttributedCharacterIterator. Create a TextLine from the text. The Font must be able to display all of the text. attributes==null is equivalent to using an empty Map for attributes | |
| firstVisualChunk | back to summary |
|---|---|
| private static int firstVisualChunk(int[] order, byte[] direction, int start, int limit) | |
| getAdvanceBetween | back to summary |
|---|---|
| public static float getAdvanceBetween(TextLineComponent[] components, int start, int limit) | |
| getCharAdvance | back to summary |
|---|---|
| public float getCharAdvance(int logicalIndex) | |
| getCharAngle | back to summary |
|---|---|
| public float getCharAngle(int logicalIndex) | |
| getCharAscent | back to summary |
|---|---|
| public float getCharAscent(int logicalIndex) | |
| getCharBounds | back to summary |
|---|---|
| public Rectangle2D getCharBounds(int logicalIndex) | |
| getCharDescent | back to summary |
|---|---|
| public float getCharDescent(int logicalIndex) | |
| getCharLevel | back to summary |
|---|---|
| public byte getCharLevel(int logicalIndex) | |
| getCharLinePosition | back to summary |
|---|---|
| public float getCharLinePosition(int logicalIndex) | |
| getCharLinePosition | back to summary |
|---|---|
| public float getCharLinePosition(int logicalIndex, boolean leading) | |
| getCharShift | back to summary |
|---|---|
| public float getCharShift(int logicalIndex) | |
| getCharType | back to summary |
|---|---|
| public int getCharType(int logicalIndex) | |
| getCharXPosition | back to summary |
|---|---|
| public float getCharXPosition(int logicalIndex) | |
| getCharYPosition | back to summary |
|---|---|
| public float getCharYPosition(int logicalIndex) | |
| getComponentLogicalIndex | back to summary |
|---|---|
| private int getComponentLogicalIndex(int vi) map a component visual index to the logical index. | |
| getComponents | back to summary |
|---|---|
| public static TextLineComponent[] getComponents(StyledParagraph styledParagraph, char[] chars, int textStart, int textLimit, int[] charsLtoV, byte[] levels, TextLabelFactory factory) Returns an array (in logical order) of the TextLineComponents representing the text. The components are both logically and visually contiguous. | |
| getComponentShift | back to summary |
|---|---|
| private float getComponentShift(int index) | |
| getComponentVisualIndex | back to summary |
|---|---|
| private int getComponentVisualIndex(int li) map a component logical index to the visual index. | |
| getCoreMetricsAt | back to summary |
|---|---|
| public CoreMetrics getCoreMetricsAt(int logicalIndex) | |
| getFontAtCurrentPos | back to summary |
|---|---|
| pack-priv static Font getFontAtCurrentPos(AttributedCharacterIterator aci) | |
| getItalicBounds | back to summary |
|---|---|
| public Rectangle2D getItalicBounds() | |
| getJustifiedLine | back to summary |
|---|---|
| public TextLine getJustifiedLine(float justificationWidth, float justifyRatio, int justStart, int justLimit) | |
| getLayoutPath | back to summary |
|---|---|
| pack-priv LayoutPathImpl getLayoutPath() | |
| getMetrics | back to summary |
|---|---|
| public TextLine. | |
| getNormalizedOffsets | back to summary |
|---|---|
| pack-priv static float[] getNormalizedOffsets(float[] baselineOffsets, byte baseline) | |
| getOutline | back to summary |
|---|---|
| public Shape getOutline() | |
| getPixelBounds | back to summary |
|---|---|
| public Rectangle getPixelBounds(FontRenderContext frc, float x, float y) | |
| getVisualBounds | back to summary |
|---|---|
| public Rectangle2D getVisualBounds() Return the union of the visual bounds of all the components. This incorporates the path. It does not include logical bounds (used by carets). | |
| init | back to summary |
|---|---|
| private void init() | |
| isCharLTR | back to summary |
|---|---|
| public boolean isCharLTR(int logicalIndex) | |
| isCharSpace | back to summary |
|---|---|
| public boolean isCharSpace(int logicalIndex) | |
| isCharWhitespace | back to summary |
|---|---|
| public boolean isCharWhitespace(int logicalIndex) | |
| isDirectionLTR | back to summary |
|---|---|
| public boolean isDirectionLTR() | |
| logicalToVisual | back to summary |
|---|---|
| public int logicalToVisual(int logicalIndex) | |
| standardCreateTextLine | back to summary |
|---|---|
| public static TextLine standardCreateTextLine(FontRenderContext frc, AttributedCharacterIterator text, char[] chars, float[] baselineOffsets) Create a TextLine from the text. chars is just the text in the iterator. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| visualToLogical | back to summary |
|---|---|
| public int visualToLogical(int visualIndex) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract float |
| Function | back to summary |
|---|---|
| private Function() | |
| computeFunction | back to summary |
|---|---|
| pack-priv abstract float computeFunction(TextLine line, int componentIndex, int indexInArray) | |
| Modifier and Type | Field and Description |
|---|---|
| public final float | |
| public final float | |
| public final float | |
| public final float |
| Access | Constructor and Description |
|---|---|
| public |
| advance | back to summary |
|---|---|
| public final float advance | |
| ascent | back to summary |
|---|---|
| public final float ascent | |
| descent | back to summary |
|---|---|
| public final float descent | |
| leading | back to summary |
|---|---|
| public final float leading | |
| TextLineMetrics | back to summary |
|---|---|
| public TextLineMetrics(float ascent, float descent, float leading, float advance) | |