Java Doc for FontConfiguration.java in  » 6.0-JDK-Modules-sun » awt » sun » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules sun » awt » sun.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.awt.FontConfiguration

FontConfiguration
abstract public class FontConfiguration (Code)
Provides the definitions of the five logical fonts: Serif, SansSerif, Monospaced, Dialog, and DialogInput. The necessary information is obtained from fontconfig files.

Inner Class :static class PropertiesHandler

Field Summary
final protected static  intNUM_FONTS
    
final protected static  intNUM_STYLES
    
 HashSet<String>coreFontFileNames
    
protected static  Stringencoding
    
protected  SunGraphicsEnvironmentenvironment
    
 HashMap<String, Boolean>existsMap
    
 HashMap<String, String>filenamesMap
    
protected static  booleanisProperties
    
protected static  HashtablelocaleMap
    
protected static  StringosName
    
protected static  StringosVersion
    
protected  booleanpreferLocaleFonts
    
protected  booleanpreferPropFonts
    
protected  HashMapreorderMap
    
protected static  LocalestartupLocale
    
protected static  short[]table_awtfontpaths
    
public static  booleanverbose
    

Constructor Summary
public  FontConfiguration(SunGraphicsEnvironment environment)
    
public  FontConfiguration(SunGraphicsEnvironment environment, boolean preferLocaleFonts, boolean preferPropFonts)
    

Method Summary
public  CompositeFontDescriptor[]get2DCompositeFontInfo()
     Returns an array of composite font descriptors for all logical font faces.
public  HashSet<String>getAWTFontPathSet()
    
protected  StringgetCompatibilityFamilyName(String fontName)
     Returns the 1.1 equivalent for some old 1.0 font family names for which we need to maintain compatibility in some configurations.
protected static  shortgetComponentFontID(short scriptID, int fontIndex, int styleIndex)
    
protected static  shortgetComponentFontIDMotif(short scriptID, int fontIndex, int styleIndex)
    
protected static  StringgetComponentFontName(short id)
    
protected  short[]getCoreScripts(int fontIndex)
    
abstract protected  CharsetgetDefaultFontCharset(String fontName)
    
abstract protected  StringgetEncoding(String awtFontName, String characterSubsetName)
     Returns the java.io name of the platform character encoding for the given AWT font name and character subset.
public  StringgetExtraFontPath()
     Returns a configuration specific path to be appended to the font search path.
abstract protected  StringgetFaceNameFromComponentFontName(String componentFontName)
    
abstract public  StringgetFallbackFamilyName(String fontName, String defaultFallback)
     Returns a fallback name for the given font name.
abstract protected  StringgetFileNameFromComponentFontName(String componentFontName)
    
public  StringgetFileNameFromPlatformName(String platformName)
     Returns a file name for the physical font represented by this platform font name, if the font configuration has such information available, or null if the information is unavailable.
protected static  FontConfigurationgetFontConfiguration()
    
public  FontDescriptor[]getFontDescriptors(String fontName, int style)
     Returns FontDescriptors describing the physical fonts used for the given logical font name and style.
protected static  intgetFontIndex(String fontName)
    
protected static  StringgetFontName(int fontIndex)
    
public static  StringgetLogicalFontFaceName(String familyName, int style)
     Returns the font face name for the given logical font family name and style.
public  intgetNumberCoreFonts()
    
public  String[]getPlatformFontNames()
    
protected static  StringgetString(short stringID)
    
protected static  intgetStyleIndex(String styleName)
    
protected static  intgetStyleIndex(int style)
    
protected static  StringgetStyleName(int styleIndex)
    
public static  StringgetStyleString(int style)
     Returns the string typically used in properties files for the given style.
public  StringgetVersion()
    
public static  booleanhasMonoToPropMap()
    
abstract protected  voidinitReorderMap()
    
public static  booleanisLogicalFontFaceName(String fontName)
     Checks whether the given font face name is a valid logical font name.
public static  booleanisLogicalFontFaceNameLC(String fontName)
     Checks whether the given font face name is a valid logical font name.
public static  booleanisLogicalFontFamilyName(String fontName)
     Checks whether the given font family name is a valid logical font name.
public static  booleanisLogicalFontFamilyNameLC(String fontName)
     Checks whether the given font family name is a valid logical font name.
public static  voidloadBinary(InputStream inStream)
    
public static  voidloadProperties(InputStream in)
    
protected  StringmakeAWTFontName(String platformFontName, String characterSubsetName)
     Returns the AWT font name for the given platform font name and character subset.
protected  StringmapFileName(String fileName)
     Maps a file name given in the font configuration file to a format appropriate for the platform.
public  booleanneedToSearchForFile(String fileName)
    
public static  voidsaveBinary(OutputStream out)
    
protected  voidsetOsNameAndVersion()
     Fills in this instance's osVersion and osName members.
protected  String[]split(String sequence)
    
public static  booleanwillReorderForStartupLocale()
    

Field Detail
NUM_FONTS
final protected static int NUM_FONTS(Code)



NUM_STYLES
final protected static int NUM_STYLES(Code)



coreFontFileNames
HashSet<String> coreFontFileNames(Code)



encoding
protected static String encoding(Code)



environment
protected SunGraphicsEnvironment environment(Code)



existsMap
HashMap<String, Boolean> existsMap(Code)



filenamesMap
HashMap<String, String> filenamesMap(Code)



isProperties
protected static boolean isProperties(Code)



localeMap
protected static Hashtable localeMap(Code)



osName
protected static String osName(Code)



osVersion
protected static String osVersion(Code)



preferLocaleFonts
protected boolean preferLocaleFonts(Code)



preferPropFonts
protected boolean preferPropFonts(Code)



reorderMap
protected HashMap reorderMap(Code)



startupLocale
protected static Locale startupLocale(Code)



table_awtfontpaths
protected static short[] table_awtfontpaths(Code)



verbose
public static boolean verbose(Code)




Constructor Detail
FontConfiguration
public FontConfiguration(SunGraphicsEnvironment environment)(Code)



FontConfiguration
public FontConfiguration(SunGraphicsEnvironment environment, boolean preferLocaleFonts, boolean preferPropFonts)(Code)




Method Detail
get2DCompositeFontInfo
public CompositeFontDescriptor[] get2DCompositeFontInfo()(Code)
Returns an array of composite font descriptors for all logical font faces. If the font configuration file doesn't specify Lucida Sans Regular or the given fallback font as component fonts, they are added here.



getAWTFontPathSet
public HashSet<String> getAWTFontPathSet()(Code)



getCompatibilityFamilyName
protected String getCompatibilityFamilyName(String fontName)(Code)
Returns the 1.1 equivalent for some old 1.0 font family names for which we need to maintain compatibility in some configurations. Returns null for other font names.



getComponentFontID
protected static short getComponentFontID(short scriptID, int fontIndex, int styleIndex)(Code)



getComponentFontIDMotif
protected static short getComponentFontIDMotif(short scriptID, int fontIndex, int styleIndex)(Code)



getComponentFontName
protected static String getComponentFontName(short id)(Code)



getCoreScripts
protected short[] getCoreScripts(int fontIndex)(Code)



getDefaultFontCharset
abstract protected Charset getDefaultFontCharset(String fontName)(Code)



getEncoding
abstract protected String getEncoding(String awtFontName, String characterSubsetName)(Code)
Returns the java.io name of the platform character encoding for the given AWT font name and character subset. May return "default" to indicate that getDefaultFontCharset should be called to obtain a charset encoder.



getExtraFontPath
public String getExtraFontPath()(Code)
Returns a configuration specific path to be appended to the font search path.



getFaceNameFromComponentFontName
abstract protected String getFaceNameFromComponentFontName(String componentFontName)(Code)



getFallbackFamilyName
abstract public String getFallbackFamilyName(String fontName, String defaultFallback)(Code)
Returns a fallback name for the given font name. For a few known font names, matching logical font names are returned. For all other font names, defaultFallback is returned. defaultFallback differs between AWT and 2D.



getFileNameFromComponentFontName
abstract protected String getFileNameFromComponentFontName(String componentFontName)(Code)



getFileNameFromPlatformName
public String getFileNameFromPlatformName(String platformName)(Code)
Returns a file name for the physical font represented by this platform font name, if the font configuration has such information available, or null if the information is unavailable. The file name returned is just a hint; a null return value doesn't necessarily mean that the font is unavailable, nor does a non-null return value guarantee that the file exists and contains the physical font. The file name can be an absolute or a relative path name.



getFontConfiguration
protected static FontConfiguration getFontConfiguration()(Code)



getFontDescriptors
public FontDescriptor[] getFontDescriptors(String fontName, int style)(Code)
Returns FontDescriptors describing the physical fonts used for the given logical font name and style. The font name is interpreted in a case insensitive way. The style argument is interpreted as in java.awt.Font.Font.



getFontIndex
protected static int getFontIndex(String fontName)(Code)



getFontName
protected static String getFontName(int fontIndex)(Code)



getLogicalFontFaceName
public static String getLogicalFontFaceName(String familyName, int style)(Code)
Returns the font face name for the given logical font family name and style. The style argument is interpreted as in java.awt.Font.Font.



getNumberCoreFonts
public int getNumberCoreFonts()(Code)



getPlatformFontNames
public String[] getPlatformFontNames()(Code)



getString
protected static String getString(short stringID)(Code)



getStyleIndex
protected static int getStyleIndex(String styleName)(Code)



getStyleIndex
protected static int getStyleIndex(int style)(Code)



getStyleName
protected static String getStyleName(int styleIndex)(Code)



getStyleString
public static String getStyleString(int style)(Code)
Returns the string typically used in properties files for the given style. The style argument is interpreted as in java.awt.Font.Font.



getVersion
public String getVersion()(Code)



hasMonoToPropMap
public static boolean hasMonoToPropMap()(Code)



initReorderMap
abstract protected void initReorderMap()(Code)



isLogicalFontFaceName
public static boolean isLogicalFontFaceName(String fontName)(Code)
Checks whether the given font face name is a valid logical font name. The check is case insensitive.



isLogicalFontFaceNameLC
public static boolean isLogicalFontFaceNameLC(String fontName)(Code)
Checks whether the given font face name is a valid logical font name. The check is case sensitive.



isLogicalFontFamilyName
public static boolean isLogicalFontFamilyName(String fontName)(Code)
Checks whether the given font family name is a valid logical font name. The check is case insensitive.



isLogicalFontFamilyNameLC
public static boolean isLogicalFontFamilyNameLC(String fontName)(Code)
Checks whether the given font family name is a valid logical font name. The check is case sensitive.



loadBinary
public static void loadBinary(InputStream inStream) throws IOException(Code)



loadProperties
public static void loadProperties(InputStream in) throws IOException(Code)



makeAWTFontName
protected String makeAWTFontName(String platformFontName, String characterSubsetName)(Code)
Returns the AWT font name for the given platform font name and character subset.



mapFileName
protected String mapFileName(String fileName)(Code)
Maps a file name given in the font configuration file to a format appropriate for the platform.



needToSearchForFile
public boolean needToSearchForFile(String fileName)(Code)



saveBinary
public static void saveBinary(OutputStream out) throws IOException(Code)



setOsNameAndVersion
protected void setOsNameAndVersion()(Code)
Fills in this instance's osVersion and osName members. By default uses the system properties os.name and os.version; subclasses may override.



split
protected String[] split(String sequence)(Code)



willReorderForStartupLocale
public static boolean willReorderForStartupLocale()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.