aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2006-02-12 19:37:22 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2006-02-12 19:37:22 +0000
commitc3ec6a4b5a7752fa974cf962f565a93dd69afe10 (patch)
tree7b23814aa7054beb20fc514e23f018f731599f86 /src/java/org/apache/fop/fo/properties/PositionShorthandParser.java
parent49ffdc1d05cfa7ed4dd0abee7e8f7836b193e5ef (diff)
downloadxmlgraphics-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-xsrc/java/org/apache/fop/fo/properties/PositionShorthandParser.java9
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;