diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-12 19:37:22 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-12 19:37:22 +0000 |
commit | c3ec6a4b5a7752fa974cf962f565a93dd69afe10 (patch) | |
tree | 7b23814aa7054beb20fc514e23f018f731599f86 /src/java/org/apache/fop/fo/properties/PositionShorthandParser.java | |
parent | 49ffdc1d05cfa7ed4dd0abee7e8f7836b193e5ef (diff) | |
download | xmlgraphics-fop-c3ec6a4b5a7752fa974cf962f565a93dd69afe10.tar.gz xmlgraphics-fop-c3ec6a4b5a7752fa974cf962f565a93dd69afe10.zip |
Added implementation for the font shorthand property (+ some checkstyle cleanup)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377222 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/PositionShorthandParser.java')
-rwxr-xr-x | src/java/org/apache/fop/fo/properties/PositionShorthandParser.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java b/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java index 04d85cd8f..5b44cb0f4 100755 --- a/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java +++ b/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java @@ -26,10 +26,15 @@ import org.apache.fop.fo.PropertyList; * values for absolute-position and relative-position. */ public class PositionShorthandParser implements ShorthandParser { + + /** + * @see org.apache.fop.fo.properties.ShorthandParser#getValueForProperty() + */ public Property getValueForProperty(int propId, Property property, PropertyMaker maker, PropertyList propertyList) { + int propVal = property.getEnum(); if (propId == Constants.PR_ABSOLUTE_POSITION) { switch (propVal) { @@ -40,6 +45,8 @@ public class PositionShorthandParser implements ShorthandParser { return new EnumProperty(Constants.EN_ABSOLUTE, "ABSOLUTE"); case Constants.EN_FIXED: return new EnumProperty(Constants.EN_FIXED, "FIXED"); + default: + //nop } } if (propId == Constants.PR_RELATIVE_POSITION) { @@ -52,6 +59,8 @@ public class PositionShorthandParser implements ShorthandParser { return new EnumProperty(Constants.EN_STATIC, "STATIC"); case Constants.EN_FIXED: return new EnumProperty(Constants.EN_STATIC, "STATIC"); + default: + //nop } } return null; |