< prev index next >

src/java.desktop/share/classes/sun/font/StandardGlyphVector.java

Print this page
rev 10947 : 8055723: Replace concat String to append in StringBuilder parameters


1877             }
1878             buf.append(", flags:");
1879             if (getLayoutFlags() == 0) {
1880                 buf.append(" default");
1881             } else {
1882                 if ((flags & FLAG_HAS_TRANSFORMS) != 0) {
1883                     buf.append(" tx");
1884                 }
1885                 if ((flags & FLAG_HAS_POSITION_ADJUSTMENTS) != 0) {
1886                     buf.append(" pos");
1887                 }
1888                 if ((flags & FLAG_RUN_RTL) != 0) {
1889                     buf.append(" rtl");
1890                 }
1891                 if ((flags & FLAG_COMPLEX_GLYPHS) != 0) {
1892                     buf.append(" complex");
1893                 }
1894             }
1895         }
1896         catch(Exception e) {
1897             buf.append(" " + e.getMessage());
1898         }
1899         buf.append("}");
1900 
1901         return buf;
1902     }
1903 
1904     static class ADL {
1905         public float ascentX;
1906         public float ascentY;
1907         public float descentX;
1908         public float descentY;
1909         public float leadingX;
1910         public float leadingY;
1911 
1912         public String toString() {
1913             return toStringBuffer(null).toString();
1914         }
1915 
1916         protected StringBuffer toStringBuffer(StringBuffer result) {
1917             if (result == null) {
1918                 result = new StringBuffer();
1919             }


1877             }
1878             buf.append(", flags:");
1879             if (getLayoutFlags() == 0) {
1880                 buf.append(" default");
1881             } else {
1882                 if ((flags & FLAG_HAS_TRANSFORMS) != 0) {
1883                     buf.append(" tx");
1884                 }
1885                 if ((flags & FLAG_HAS_POSITION_ADJUSTMENTS) != 0) {
1886                     buf.append(" pos");
1887                 }
1888                 if ((flags & FLAG_RUN_RTL) != 0) {
1889                     buf.append(" rtl");
1890                 }
1891                 if ((flags & FLAG_COMPLEX_GLYPHS) != 0) {
1892                     buf.append(" complex");
1893                 }
1894             }
1895         }
1896         catch(Exception e) {
1897             buf.append(' ').append(e.getMessage());
1898         }
1899         buf.append('}');
1900 
1901         return buf;
1902     }
1903 
1904     static class ADL {
1905         public float ascentX;
1906         public float ascentY;
1907         public float descentX;
1908         public float descentY;
1909         public float leadingX;
1910         public float leadingY;
1911 
1912         public String toString() {
1913             return toStringBuffer(null).toString();
1914         }
1915 
1916         protected StringBuffer toStringBuffer(StringBuffer result) {
1917             if (result == null) {
1918                 result = new StringBuffer();
1919             }
< prev index next >