KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > fonts > BFEntry


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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 /* $Id: BFEntry.java 462743 2006-10-11 09:09:26Z jeremias $ */
19  
20 package org.apache.fop.fonts;
21
22 /**
23  * This is just a holder class for bfentries, groups of characters of a base font (bf).
24  */

25 public class BFEntry {
26     
27     private int unicodeStart;
28     private int unicodeEnd;
29     private int glyphStartIndex;
30
31     /**
32      * Main constructor.
33      * @param unicodeStart Unicode start index
34      * @param unicodeEnd Unicode end index
35      * @param glyphStartIndex glyph start index
36      */

37     public BFEntry(int unicodeStart, int unicodeEnd, int glyphStartIndex) {
38         this.unicodeStart = unicodeStart;
39         this.unicodeEnd = unicodeEnd;
40         this.glyphStartIndex = glyphStartIndex;
41     }
42
43     /**
44      * Returns the unicodeStart.
45      * @return the Unicode start index
46      */

47     public int getUnicodeStart() {
48         return unicodeStart;
49     }
50
51     /**
52      * Returns the unicodeEnd.
53      * @return the Unicode end index
54      */

55     public int getUnicodeEnd() {
56         return unicodeEnd;
57     }
58
59     /**
60      * Returns the glyphStartIndex.
61      * @return the glyph start index
62      */

63     public int getGlyphStartIndex() {
64         return glyphStartIndex;
65     }
66
67 }
68
Popular Tags