sun.font.FontLineMetrics Java Examples

The following examples show how to use sun.font.FontLineMetrics. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Font.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #2
Source File: Font.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #3
Source File: Font.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #4
Source File: Font.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #5
Source File: Font.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #6
Source File: Font.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #7
Source File: Font.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #8
Source File: Font.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #9
Source File: Font.java    From jdk-1.7-annotated with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #10
Source File: Font.java    From jdk-1.7-annotated with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #11
Source File: Font.java    From jdk-1.7-annotated with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #12
Source File: Font.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #13
Source File: Font.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #14
Source File: Font.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #15
Source File: Font.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #16
Source File: Font.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #17
Source File: Font.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #18
Source File: Font.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #19
Source File: Font.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #20
Source File: Font.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #21
Source File: Font.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #22
Source File: Font.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #23
Source File: Font.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #24
Source File: Font.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #25
Source File: Font.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #26
Source File: Font.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #27
Source File: Font.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #28
Source File: Font.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #29
Source File: Font.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}
 
Example #30
Source File: Font.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
}