Browse Source

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
tags/Defoe_export
Peter Bernard West 20 years ago
parent
commit
b187a9c782
1 changed files with 2 additions and 102 deletions
  1. 2
    102
      src/java/org/apache/fop/area/RegionViewport.java

+ 2
- 102
src/java/org/apache/fop/area/RegionViewport.java View File

@@ -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;
}
}

}


Loading…
Cancel
Save