|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.editor.FontMetricsCache
public class FontMetricsCache
Static cache that holds the font metrics for the fonts. This can generally speed up drawing if the metrics are not cached directly by the system.
| Nested Class Summary | |
|---|---|
static interface |
FontMetricsCache.Info
|
| Constructor Summary | |
|---|---|
FontMetricsCache()
|
|
| Method Summary | |
|---|---|
static void |
clear()
Clear all the metrics from the cache. |
static FontMetrics |
getFontMetrics(Font f,
Component c)
Get the font-metrics for the given font. |
static FontMetrics |
getFontMetrics(Font f,
Graphics g)
Get the font-metrics for the given font. |
static FontMetricsCache.Info |
getInfo(Font f)
Get the info about the space-width and strike-through and underline constants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontMetricsCache()
| Method Detail |
|---|
public static FontMetrics getFontMetrics(Font f, Component c)
font - font for which the metrics is being retrieved.c - component that is used to retrieve the metrics in case it's
not yet in the cache.public static FontMetrics getFontMetrics(Font f, Graphics g)
font - font for which the metrics is being retrieved.g - graphics that is used to retrieve the metrics in case it's
not yet in the cache.public static FontMetricsCache.Info getInfo(Font f)
font - font for which the info is being retrieved.public static void clear()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||