import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;
-public class PaddingBottom extends Property {
+public class PaddingBottom extends PaddingCorrespondingAbsolute {
public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
public int getDataTypes() {
return inherited;
}
+ public int getCorrespondingProperty(FONode foNode)
+ throws PropertyException {
+ return getCorrespondingPaddingProperty(
+ foNode, WritingMode.BOTTOM);
+ }
+
}
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;
-public class PaddingLeft extends Property {
+public class PaddingLeft extends PaddingCorrespondingAbsolute {
public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
public int getDataTypes() {
return inherited;
}
+ public int getCorrespondingProperty(FONode foNode)
+ throws PropertyException {
+ return getCorrespondingPaddingProperty(
+ foNode, WritingMode.LEFT);
+ }
+
}
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;
-public class PaddingRight extends Property {
+public class PaddingRight extends PaddingCorrespondingAbsolute {
public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
public int getDataTypes() {
return inherited;
}
+ public int getCorrespondingProperty(FONode foNode)
+ throws PropertyException {
+ return getCorrespondingPaddingProperty(
+ foNode, WritingMode.RIGHT);
+ }
+
}
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;
-public class PaddingTop extends Property {
+public class PaddingTop extends PaddingCorrespondingAbsolute {
public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
public int getDataTypes() {
return inherited;
}
+ public int getCorrespondingProperty(FONode foNode)
+ throws PropertyException {
+ return getCorrespondingPaddingProperty(
+ foNode, WritingMode.TOP);
+ }
+
}