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: AFMWritingDirectionMetrics.java 679326 2008-07-24 09:35:34Z vhennebert $ */
19 
20 package org.apache.fop.fonts.type1;
21 
22 /**
23  * Represents a writing direction metrics section from an AFM file.
24  */
25 public class AFMWritingDirectionMetrics {
26 
27     private Number underlinePosition;
28     private Number underlineThickness;
29     private double italicAngle;
30     private boolean isFixedPitch;
31 
32     /**
33      * Returns the UnderlinePosition value.
34      * @return the underlinePosition
35      */
getUnderlinePosition()36     public Number getUnderlinePosition() {
37         return underlinePosition;
38     }
39 
40     /**
41      * Sets the UnderlinePosition value.
42      * @param underlinePosition the underlinePosition to set
43      */
setUnderlinePosition(Number underlinePosition)44     public void setUnderlinePosition(Number underlinePosition) {
45         this.underlinePosition = underlinePosition;
46     }
47 
48     /**
49      * Returns the UnderlineThickness value.
50      * @return the underlineThickness
51      */
getUnderlineThickness()52     public Number getUnderlineThickness() {
53         return underlineThickness;
54     }
55 
56     /**
57      * Sets the UnderlineThickness value.
58      * @param underlineThickness the underlineThickness to set
59      */
setUnderlineThickness(Number underlineThickness)60     public void setUnderlineThickness(Number underlineThickness) {
61         this.underlineThickness = underlineThickness;
62     }
63 
64     /**
65      * Returns the ItalicAngle value.
66      * @return the italicAngle
67      */
getItalicAngle()68     public double getItalicAngle() {
69         return italicAngle;
70     }
71 
72     /**
73      * Sets the ItalicAngle value.
74      * @param italicAngle the italicAngle to set
75      */
setItalicAngle(double italicAngle)76     public void setItalicAngle(double italicAngle) {
77         this.italicAngle = italicAngle;
78     }
79 
80     /**
81      * Returns the IsFixedPitch value.
82      * @return the isFixedPitch
83      */
isFixedPitch()84     public boolean isFixedPitch() {
85         return isFixedPitch;
86     }
87 
88     /**
89      * Set the IsFixedPitch value.
90      * @param value the isFixedPitch to set
91      */
setFixedPitch(boolean value)92     public void setFixedPitch(boolean value) {
93         this.isFixedPitch = value;
94     }
95 
96 }
97