KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > gvt > font > GVTFontFamily


1 /*
2
3    Copyright 2001,2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.gvt.font;
19
20 import java.text.AttributedCharacterIterator JavaDoc;
21
22 import java.util.Map JavaDoc;
23
24 /**
25  * An interface for all font family classes.
26  *
27  * @author <a HREF="mailto:bella.robinson@cmis.csiro.au">Bella Robinson</a>
28  * @version $Id: GVTFontFamily.java,v 1.6 2004/11/18 01:47:00 deweese Exp $
29  */

30 public interface GVTFontFamily {
31
32     /**
33      * Returns the font family name.
34      *
35      * @return The family name.
36      */

37     String JavaDoc getFamilyName();
38
39     /**
40      * Returns the FontFace for this fontFamily instance.
41      */

42     GVTFontFace getFontFace();
43
44     /**
45      * Derives a GVTFont object of the correct size.
46      *
47      * @param size The required size of the derived font.
48      * @param aci The character iterator that will be rendered using
49      * the derived font.
50      */

51     GVTFont deriveFont(float size, AttributedCharacterIterator JavaDoc aci);
52
53     /**
54      * Derives a GVTFont object of the correct size from an attribute Map.
55      * @param size The required size of the derived font.
56      * @param attrs The Attribute Map to get Values from.
57      */

58     GVTFont deriveFont(float size, Map JavaDoc attrs);
59      
60 }
61
Popular Tags