diff options
author | Glen Mazza <gmazza@apache.org> | 2003-09-01 01:28:51 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-09-01 01:28:51 +0000 |
commit | 454a54eebec9c5dd122a99e0fa09dbe5936852b1 (patch) | |
tree | 4dc1050c6f871f45d41289c85fb09c27c02eaaee /src/java/org/apache/fop/render/AbstractRenderer.java | |
parent | 6aafc198b620d73f6f045f97bfadfc57a76329cd (diff) | |
download | xmlgraphics-fop-454a54eebec9c5dd122a99e0fa09dbe5936852b1.tar.gz xmlgraphics-fop-454a54eebec9c5dd122a99e0fa09dbe5936852b1.zip |
1. Partial implementation of fo:region-xxx and background-color property
in AWTRenderer.
2. ColorType has a new getAWTColor() method, also alpha() function renamed
to getAlpha(). Definition of Alpha values switched to make consistent with
java.awt.Color (i.e., 0 is transparent and 1 is opaque).
3. AbstractRenderer's handleViewportTraits() renamed to handleRegionTraits()
to lesson confusion (FOP has three types of viewports--
Page, Region, and Block--handleViewportTraits() was only good for Region.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/AbstractRenderer.java')
-rw-r--r-- | src/java/org/apache/fop/render/AbstractRenderer.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index 5becb0f6b..80f92edcd 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -311,7 +311,7 @@ public abstract class AbstractRenderer extends AbstractLogEnabled startVParea(region.getCTM()); // do after starting viewport area - handleViewportTraits(port); + handleRegionTraits(port); if (region.getRegionClass() == Region.BODY_CODE) { renderBodyRegion((BodyRegion) region); } else { @@ -329,13 +329,12 @@ public abstract class AbstractRenderer extends AbstractLogEnabled protected void startVParea(CTM ctm) { } /** - * Handle viewport traits. - * This should be overridden to draw border and background - * traits for the viewport area. - * - * @param rv the region viewport area + * Handle the traits for a region + * This is used to draw the traits for the given page region + * (see Sect. 6.4.1.2 of XSL-FO spec.) + * @param rv the RegionViewport whose region is to be drawn */ - protected void handleViewportTraits(RegionViewport rv) { + protected void handleRegionTraits(RegionViewport rv) { // draw border and background } |