author | rkennke |
Fri, 07 Aug 2009 19:36:28 +0200 | |
changeset 3929 | de1a48b7aa41 |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
3929
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
1 |
/* |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
2 |
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
4 |
* |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Sun designates this |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
10 |
* |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
15 |
* accompanied this code). |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
16 |
* |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
20 |
* |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
23 |
* have any questions. |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
24 |
*/ |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
25 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
26 |
package sun.font; |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
27 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
28 |
import java.awt.Font; |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
29 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
30 |
public abstract class FontAccess { |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
31 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
32 |
private static FontAccess access; |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
33 |
public static synchronized void setFontAccess(FontAccess acc) { |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
34 |
if (access != null) { |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
35 |
throw new InternalError("Attempt to set FontAccessor twice"); |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
36 |
} |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
37 |
access = acc; |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
38 |
} |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
39 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
40 |
public static synchronized FontAccess getFontAccess() { |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
41 |
return access; |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
42 |
} |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
43 |
|
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
44 |
public abstract Font2D getFont2D(Font f); |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
45 |
public abstract void setFont2D(Font f, Font2DHandle h); |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
46 |
public abstract void setCreatedFont(Font f); |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
47 |
public abstract boolean isCreatedFont(Font f); |
de1a48b7aa41
6869705: Missing files of CR6795908, FontManager refactoring
rkennke
parents:
diff
changeset
|
48 |
} |