Java 类sun.font.FontLineMetrics 实例源码

项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:OpenJSharp    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-jdk    文件:Font.java   
/**
 * 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;
}
项目:openjdk-jdk10    文件:Font.java   
/**
 * 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;
}
项目:openjdk-jdk10    文件:Font.java   
/**
 * 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;
}
项目:openjdk-jdk10    文件:Font.java   
/**
 * 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;
}
项目:openjdk9    文件:Font.java   
/**
 * 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;
}
项目:openjdk9    文件:Font.java   
/**
 * 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;
}
项目:openjdk9    文件:Font.java   
/**
 * 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;
}
项目:Java8CN    文件:Font.java   
/**
 * 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;
}
项目:Java8CN    文件:Font.java   
/**
 * 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;
}
项目:Java8CN    文件:Font.java   
/**
 * 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;
}
项目:jdk8u_jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u_jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u_jdk    文件:Font.java   
/**
 * 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;
}
项目:lookaside_java-1.8.0-openjdk    文件:Font.java   
/**
 * 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;
}
项目:lookaside_java-1.8.0-openjdk    文件:Font.java   
/**
 * 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;
}
项目:lookaside_java-1.8.0-openjdk    文件:Font.java   
/**
 * 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;
}
项目:VarJ    文件:Font.java   
/**
 * 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;
}
项目:VarJ    文件:Font.java   
/**
 * 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;
}
项目:VarJ    文件:Font.java   
/**
 * 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;
}
项目:jdk-1.7-annotated    文件:Font.java   
/**
 * 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;
}
项目:jdk-1.7-annotated    文件:Font.java   
/**
 * 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;
}
项目:jdk-1.7-annotated    文件:Font.java   
/**
 * 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;
}
项目:infobip-open-jdk-8    文件:Font.java   
/**
 * 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;
}
项目:infobip-open-jdk-8    文件:Font.java   
/**
 * 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;
}
项目:infobip-open-jdk-8    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-dev-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-dev-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk8u-dev-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk7-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk7-jdk    文件:Font.java   
/**
 * 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;
}
项目:jdk7-jdk    文件:Font.java   
/**
 * 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;
}
项目:openjdk-source-code-learn    文件:Font.java   
/**
 * 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;
}