summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bernard West <pbwest@apache.org>2004-07-24 16:53:20 +0000
committerPeter Bernard West <pbwest@apache.org>2004-07-24 16:53:20 +0000
commitfaa122ace8b5309a8179e39caeed77d4aedab6de (patch)
treebb9834cc9d9f0b673cc6444829aa0e46dd5a3066
parent522e0f9006af11d1adf94f6d9d5e35e0d4c3e98c (diff)
downloadxmlgraphics-fop-faa122ace8b5309a8179e39caeed77d4aedab6de.tar.gz
xmlgraphics-fop-faa122ace8b5309a8179e39caeed77d4aedab6de.zip
Replaced setMargins() with individual margin setting methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197828 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/area/Area.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/area/Area.java b/src/java/org/apache/fop/area/Area.java
index 23f62af34..d1158423b 100644
--- a/src/java/org/apache/fop/area/Area.java
+++ b/src/java/org/apache/fop/area/Area.java
@@ -94,11 +94,16 @@ public class Area extends AreaNode implements Cloneable {
return content;
}
- protected void setMargins(
- double before, double after, double start, double end) {
+ protected void setBeforeMargin(double before) {
spaces.setBefore(before);
+ }
+ protected void setAfterMargin(double after) {
spaces.setAfter(after);
+ }
+ protected void setStartMargin(double start) {
spaces.setStart(start);
+ }
+ protected void setEndMargin(double end) {
spaces.setEnd(end);
}
/** Translates this area into position in its parent area */