/** * Returns a <code>LineMetrics</code> object created with the * specified arguments. * @param str the specified <code>String</code> * @param beginIndex the initial offset of <code>str</code> * @param limit the end offset of <code>str</code> * @param frc the specified <code>FontRenderContext</code> * @return a <code>LineMetrics</code> object created with the * specified arguments. */ public LineMetrics getLineMetrics( String str, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }
/** * Returns a <code>LineMetrics</code> object created with the * specified arguments. * @param chars an array of characters * @param beginIndex the initial offset of <code>chars</code> * @param limit the end offset of <code>chars</code> * @param frc the specified <code>FontRenderContext</code> * @return a <code>LineMetrics</code> object created with the * specified arguments. */ public LineMetrics getLineMetrics(char [] chars, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }
/** * Returns a <code>LineMetrics</code> object created with the * specified arguments. * @param ci the specified <code>CharacterIterator</code> * @param beginIndex the initial offset in <code>ci</code> * @param limit the end offset of <code>ci</code> * @param frc the specified <code>FontRenderContext</code> * @return a <code>LineMetrics</code> object created with the * specified arguments. */ public LineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }
/** * Returns a {@code LineMetrics} object created with the * specified arguments. * @param str the specified {@code String} * @param beginIndex the initial offset of {@code str} * @param limit the end offset of {@code str} * @param frc the specified {@code FontRenderContext} * @return a {@code LineMetrics} object created with the * specified arguments. */ public LineMetrics getLineMetrics( String str, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }
/** * Returns a {@code LineMetrics} object created with the * specified arguments. * @param chars an array of characters * @param beginIndex the initial offset of {@code chars} * @param limit the end offset of {@code chars} * @param frc the specified {@code FontRenderContext} * @return a {@code LineMetrics} object created with the * specified arguments. */ public LineMetrics getLineMetrics(char [] chars, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }
/** * Returns a {@code LineMetrics} object created with the * specified arguments. * @param ci the specified {@code CharacterIterator} * @param beginIndex the initial offset in {@code ci} * @param limit the end offset of {@code ci} * @param frc the specified {@code FontRenderContext} * @return a {@code LineMetrics} object created with the * specified arguments. */ public LineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) { FontLineMetrics flm = defaultLineMetrics(frc); int numChars = limit - beginIndex; flm.numchars = (numChars < 0)? 0: numChars; return flm; }