~ubuntu-branches/ubuntu/saucy/fop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/java/org/apache/fop/traits/SpaceVal.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-05-21 12:21:26 UTC
  • mfrom: (15.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130521122126-3c9r5fo6ountjg6r
Tags: 1:1.1.dfsg-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  -  Transition libservlet2.5-java -> libservlet3.0-java.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: SpaceVal.java 893238 2009-12-22 17:20:51Z vhennebert $ */
 
18
/* $Id: SpaceVal.java 985537 2010-08-14 17:17:00Z jeremias $ */
19
19
 
20
20
package org.apache.fop.traits;
21
21
 
65
65
    /**
66
66
     * Constructor for SpaceVal objects based on the full set of properties.
67
67
     * @param space space to use
68
 
     * @param bConditional Conditionality value
69
 
     * @param bForcing Forcing value
70
 
     * @param iPrecedence Precedence value
 
68
     * @param conditional Conditionality value
 
69
     * @param forcing Forcing value
 
70
     * @param precedence Precedence value
71
71
     */
72
72
    public SpaceVal(MinOptMax space, boolean conditional, boolean forcing, int precedence) {
73
73
        this.space = space;
76
76
        this.precedence = precedence;
77
77
    }
78
78
 
 
79
    /**
 
80
     * @param wordSpacing property
 
81
     * @param letterSpacing space value
 
82
     * @param fs font
 
83
     * @return space value
 
84
     */
79
85
    public static SpaceVal makeWordSpacing(Property wordSpacing, SpaceVal letterSpacing, Font fs) {
80
86
        if (wordSpacing.getEnum() == Constants.EN_NORMAL) {
81
87
            // give word spaces the possibility to shrink by a third,
89
95
        }
90
96
    }
91
97
 
 
98
    /**
 
99
     * @param letterSpacing property
 
100
     * @return space value
 
101
     */
92
102
    public static SpaceVal makeLetterSpacing(Property letterSpacing) {
93
103
        if (letterSpacing.getEnum() == Constants.EN_NORMAL) {
94
104
            // letter spaces are set to zero (or use different values?)