KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pdfbox > afmtypes > KernPair


1 /**
2  * Copyright (c) 2003, www.pdfbox.org
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  * 3. Neither the name of pdfbox; nor the names of its
14  * contributors may be used to endorse or promote products derived from this
15  * software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * http://www.pdfbox.org
29  *
30  */

31 package org.pdfbox.afmtypes;
32
33 /**
34  * This represents some kern pair data.
35  *
36  * @author Ben Litchfied (ben@csh.rit.edu)
37  * @version $Revision: 1.4 $
38  */

39 public class KernPair
40 {
41     private String JavaDoc firstKernCharacter;
42     private String JavaDoc secondKernCharacter;
43     private float x;
44     private float y;
45
46     /** Getter for property firstKernCharacter.
47      * @return Value of property firstKernCharacter.
48      */

49     public java.lang.String JavaDoc getFirstKernCharacter()
50     {
51         return firstKernCharacter;
52     }
53
54     /** Setter for property firstKernCharacter.
55      * @param firstKernCharacterValue New value of property firstKernCharacter.
56      */

57     public void setFirstKernCharacter(String JavaDoc firstKernCharacterValue)
58     {
59         firstKernCharacter = firstKernCharacterValue;
60     }
61
62     /** Getter for property secondKernCharacter.
63      * @return Value of property secondKernCharacter.
64      */

65     public java.lang.String JavaDoc getSecondKernCharacter()
66     {
67         return secondKernCharacter;
68     }
69
70     /** Setter for property secondKernCharacter.
71      * @param secondKernCharacterValue New value of property secondKernCharacter.
72      */

73     public void setSecondKernCharacter(String JavaDoc secondKernCharacterValue)
74     {
75         secondKernCharacter = secondKernCharacterValue;
76     }
77
78     /** Getter for property x.
79      * @return Value of property x.
80      */

81     public float getX()
82     {
83         return x;
84     }
85
86     /** Setter for property x.
87      * @param xValue New value of property x.
88      */

89     public void setX(float xValue)
90     {
91         x = xValue;
92     }
93
94     /** Getter for property y.
95      * @return Value of property y.
96      */

97     public float getY()
98     {
99         return y;
100     }
101
102     /** Setter for property y.
103      * @param yValue New value of property y.
104      */

105     public void setY(float yValue)
106     {
107         y = yValue;
108     }
109
110 }
Popular Tags