Source Code Cross Referenced for FontProperty.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » gl » font » 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 » Apache Harmony Java SE » org package » org.apache.harmony.awt.gl.font 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  Licensed to the Apache Software Foundation (ASF) under one or more
003:         *  contributor license agreements.  See the NOTICE file distributed with
004:         *  this work for additional information regarding copyright ownership.
005:         *  The ASF licenses this file to You under the Apache License, Version 2.0
006:         *  (the "License"); you may not use this file except in compliance with
007:         *  the License.  You may obtain a copy of the License at
008:         *
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         *  Unless required by applicable law or agreed to in writing, software
012:         *  distributed under the License is distributed on an "AS IS" BASIS,
013:         *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         *  See the License for the specific language governing permissions and
015:         *  limitations under the License.
016:         */
017:        /**
018:         * @author Ilya S. Okomin
019:         * @version $Revision$
020:         */package org.apache.harmony.awt.gl.font;
021:
022:        /**
023:         * Class containing font property information. This information can be found 
024:         * in font.property files. See API documentation, logical fonts description part. 
025:         *
026:         */
027:        public class FontProperty {
028:
029:            // font file name 
030:            String fileName = null;
031:
032:            // name of the encoding to be used 
033:            String encoding = null;
034:
035:            // array of exclusion ranges (pairs of low and high unicode exclusion bounds)
036:            int[] exclRange = null;
037:
038:            // font face name
039:            String name = null;
040:
041:            // font style
042:            int style = -1;
043:
044:            /**
045:             * Returns font style of this font property. 
046:             */
047:            public int getStyle() {
048:                return this .style;
049:            }
050:
051:            /**
052:             * Returns font name of this font property. 
053:             */
054:            public String getName() {
055:                return this .name;
056:            }
057:
058:            /**
059:             * Returns encoding used in this font property. 
060:             */
061:            public String getEncoding() {
062:                return this .encoding;
063:            }
064:
065:            /**
066:             * Returns an array of exclusion ranges. This array contain pairs of 
067:             * low and high bounds of the intervals of characters to ignore in 
068:             * total Unicode characters range.   
069:             */
070:            public int[] getExclusionRange() {
071:                return this .exclRange;
072:            }
073:
074:            /**
075:             * Returns file name of the font that is described by this font property. 
076:             */
077:            public String getFileName() {
078:                return this .fileName;
079:            }
080:
081:            /**
082:             * Returns true if specified character covered by exclusion ranges of this 
083:             * font property, false otherwise.
084:             * 
085:             * @param ch specified char to check
086:             */
087:            public boolean isCharExcluded(char ch) {
088:                if (exclRange == null) {
089:                    return false;
090:                }
091:
092:                for (int i = 0; i < exclRange.length;) {
093:                    int lb = exclRange[i++];
094:                    int hb = exclRange[i++];
095:
096:                    if (ch >= lb && ch <= hb) {
097:                        return true;
098:                    }
099:                }
100:
101:                return false;
102:            }
103:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.