aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/RegionViewport.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-09-22 08:19:48 +0000
committerFinn Bock <bckfnn@apache.org>2004-09-22 08:19:48 +0000
commit893015ebcbe33352509861e63f1bbb881e31eae8 (patch)
treef4545015dfd8b748d8a1fdef1a8203e360cf33a6 /src/java/org/apache/fop/area/RegionViewport.java
parent0d5f2c76c44d7d79330588a57ee413b68980b4ec (diff)
downloadxmlgraphics-fop-893015ebcbe33352509861e63f1bbb881e31eae8.tar.gz
xmlgraphics-fop-893015ebcbe33352509861e63f1bbb881e31eae8.zip
get[Border|Padding]Width* helper methods moved to Area.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197957 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/RegionViewport.java')
-rw-r--r--src/java/org/apache/fop/area/RegionViewport.java83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/java/org/apache/fop/area/RegionViewport.java b/src/java/org/apache/fop/area/RegionViewport.java
index 287a58880..37dd8a519 100644
--- a/src/java/org/apache/fop/area/RegionViewport.java
+++ b/src/java/org/apache/fop/area/RegionViewport.java
@@ -22,8 +22,6 @@ import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.util.HashMap;
-import org.apache.fop.traits.BorderProps;
-
/**
* Region Viewport reference area.
* This area is the viewport for a region and contains a region area.
@@ -79,87 +77,6 @@ public class RegionViewport extends Area implements Cloneable {
return viewArea;
}
- /**
- * Return the sum of region border- and padding-before
- *
- * @return width in millipoints
- */
- public int getBorderAndPaddingWidthBefore() {
- int margin = 0;
- BorderProps bps = (BorderProps) getTrait(Trait.BORDER_BEFORE);
- if (bps != null) {
- margin = bps.width;
- }
-
- Integer padWidth = (Integer) getTrait(Trait.PADDING_BEFORE);
- if (padWidth != null) {
- margin += padWidth.intValue();
- }
-
- return margin;
- }
-
- /**
- * Return the sum of region border- and padding-after
- *
- * @return width in millipoints
- */
- public int getBorderAndPaddingWidthAfter() {
- int margin = 0;
-
- BorderProps bps = (BorderProps) getTrait(Trait.BORDER_AFTER);
- if (bps != null) {
- margin = bps.width;
- }
-
- Integer padWidth = (Integer) getTrait(Trait.PADDING_AFTER);
- if (padWidth != null) {
- margin += padWidth.intValue();
- }
-
- return margin;
- }
-
- /**
- * Return the sum of region border- and padding-start
- *
- * @return width in millipoints
- */
- public int getBorderAndPaddingWidthStart() {
- int margin = 0;
- BorderProps bps = (BorderProps) getTrait(Trait.BORDER_START);
- if (bps != null) {
- margin = bps.width;
- }
-
- Integer padWidth = (Integer) getTrait(Trait.PADDING_START);
- if (padWidth != null) {
- margin += padWidth.intValue();
- }
-
- return margin;
- }
-
- /**
- * Return the sum of region border- and padding-end
- *
- * @return width in millipoints
- */
- public int getBorderAndPaddingWidthEnd() {
- int margin = 0;
- BorderProps bps = (BorderProps) getTrait(Trait.BORDER_END);
- if (bps != null) {
- margin = bps.width;
- }
-
- Integer padWidth = (Integer) getTrait(Trait.PADDING_END);
- if (padWidth != null) {
- margin += padWidth.intValue();
- }
-
- return margin;
- }
-
private void writeObject(java.io.ObjectOutputStream out)
throws IOException {
out.writeFloat((float) viewArea.getX());