< prev index next >

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

Print this page




1235                 lbcache[ix] = null;
1236             }
1237         }
1238 
1239         if (vbcacheRef != null) {
1240             Shape[] vbcache = vbcacheRef.get();
1241             if (vbcache != null) {
1242                 vbcache[ix] = null;
1243             }
1244         }
1245     }
1246 
1247     private void clearCaches() {
1248         lbcacheRef = null;
1249         vbcacheRef = null;
1250     }
1251 
1252     // internal use only for possible future extension
1253 
1254     /**
1255      * A flag used with getLayoutFlags that indicates whether this <code>GlyphVector</code> uses
1256      * a vertical baseline.
1257      */
1258     public static final int FLAG_USES_VERTICAL_BASELINE = 128;
1259 
1260     /**
1261      * A flag used with getLayoutFlags that indicates whether this <code>GlyphVector</code> uses
1262      * vertical glyph metrics.  A <code>GlyphVector</code> can use vertical metrics on a
1263      * horizontal line, or vice versa.
1264      */
1265     public static final int FLAG_USES_VERTICAL_METRICS = 256;
1266 
1267     /**
1268      * A flag used with getLayoutFlags that indicates whether this <code>GlyphVector</code> uses
1269      * the 'alternate orientation.'  Glyphs have a default orientation given a
1270      * particular baseline and metrics orientation, this is the orientation appropriate
1271      * for left-to-right text.  For example, the letter 'A' can have four orientations,
1272      * with the point at 12, 3, 6, or 9 'o clock.  The following table shows where the
1273      * point displays for different values of vertical baseline (vb), vertical
1274      * metrics (vm) and alternate orientation (fo):<br>
1275      * <blockquote>
1276      * vb vm ao
1277      * -- -- --  --
1278      *  f  f  f  12   ^  horizontal metrics on horizontal lines
1279      *  f  f  t   6   v
1280      *  f  t  f   9   <  vertical metrics on horizontal lines
1281      *  f  t  t   3   >
1282      *  t  f  f   3   >  horizontal metrics on vertical lines
1283      *  t  f  t   9   <
1284      *  t  t  f  12   ^  vertical metrics on vertical lines
1285      *  t  t  t   6   v
1286      * </blockquote>
1287      */
1288     public static final int FLAG_USES_ALTERNATE_ORIENTATION = 512;




1235                 lbcache[ix] = null;
1236             }
1237         }
1238 
1239         if (vbcacheRef != null) {
1240             Shape[] vbcache = vbcacheRef.get();
1241             if (vbcache != null) {
1242                 vbcache[ix] = null;
1243             }
1244         }
1245     }
1246 
1247     private void clearCaches() {
1248         lbcacheRef = null;
1249         vbcacheRef = null;
1250     }
1251 
1252     // internal use only for possible future extension
1253 
1254     /**
1255      * A flag used with getLayoutFlags that indicates whether this {@code GlyphVector} uses
1256      * a vertical baseline.
1257      */
1258     public static final int FLAG_USES_VERTICAL_BASELINE = 128;
1259 
1260     /**
1261      * A flag used with getLayoutFlags that indicates whether this {@code GlyphVector} uses
1262      * vertical glyph metrics.  A {@code GlyphVector} can use vertical metrics on a
1263      * horizontal line, or vice versa.
1264      */
1265     public static final int FLAG_USES_VERTICAL_METRICS = 256;
1266 
1267     /**
1268      * A flag used with getLayoutFlags that indicates whether this {@code GlyphVector} uses
1269      * the 'alternate orientation.'  Glyphs have a default orientation given a
1270      * particular baseline and metrics orientation, this is the orientation appropriate
1271      * for left-to-right text.  For example, the letter 'A' can have four orientations,
1272      * with the point at 12, 3, 6, or 9 'o clock.  The following table shows where the
1273      * point displays for different values of vertical baseline (vb), vertical
1274      * metrics (vm) and alternate orientation (fo):<br>
1275      * <blockquote>
1276      * vb vm ao
1277      * -- -- --  --
1278      *  f  f  f  12   ^  horizontal metrics on horizontal lines
1279      *  f  f  t   6   v
1280      *  f  t  f   9   <  vertical metrics on horizontal lines
1281      *  f  t  t   3   >
1282      *  t  f  f   3   >  horizontal metrics on vertical lines
1283      *  t  f  t   9   <
1284      *  t  t  f  12   ^  vertical metrics on vertical lines
1285      *  t  t  t   6   v
1286      * </blockquote>
1287      */
1288     public static final int FLAG_USES_ALTERNATE_ORIENTATION = 512;


< prev index next >