diff options
author | Peter Bernard West <pbwest@apache.org> | 2004-07-24 04:12:46 +0000 |
---|---|---|
committer | Peter Bernard West <pbwest@apache.org> | 2004-07-24 04:12:46 +0000 |
commit | b187a9c78252db23bacf4eecea9066c891b82f72 (patch) | |
tree | c2faf13f50a7424b7db72f6d22aef2bd3092dde8 | |
parent | 98e9d519ef7627a0e247a2370b1a259ef9ffd974 (diff) | |
download | xmlgraphics-fop-b187a9c78252db23bacf4eecea9066c891b82f72.tar.gz xmlgraphics-fop-b187a9c78252db23bacf4eecea9066c891b82f72.zip |
No longer implements Cloneable.
clone() removed.
Commented-out methods removed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197814 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/area/RegionViewport.java | 104 |
1 files changed, 2 insertions, 102 deletions
diff --git a/src/java/org/apache/fop/area/RegionViewport.java b/src/java/org/apache/fop/area/RegionViewport.java index 4381c23ba..ca2def71a 100644 --- a/src/java/org/apache/fop/area/RegionViewport.java +++ b/src/java/org/apache/fop/area/RegionViewport.java @@ -26,8 +26,8 @@ import org.apache.fop.fo.flow.FoPageSequence; * This area is the viewport for a region and contains a region area. */ public class RegionViewport -extends AbstractViewport -implements Viewport, Cloneable { +extends BlockViewportArea +implements Viewport { /** * Creates a new region viewport with a null rectangular area @@ -62,105 +62,5 @@ implements Viewport, Cloneable { return (RegionRefArea)(getReferenceArea()); } - /** - * 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; -// } - - /** - * Clone this region viewport. - * Used when creating a copy from the page master. - * - * @return a new copy of this region viewport - */ - public Object clone() { - synchronized (sync) { - RegionViewport rv; - try { - rv = (RegionViewport)(super.clone()); - } catch (CloneNotSupportedException e) { - throw new RuntimeException(e); - } - rv.refArea = (PageRefArea)(refArea.clone()); - return rv; - } - } - } |