diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-01-24 07:56:28 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-01-24 07:56:28 +0000 |
commit | 47dbae7b8f1b6cb06e0785d21c666a95bbeaefbc (patch) | |
tree | 2ee032a61e1094bbee68d72205653c9434635685 /src/java/org/apache/fop/render/ps/PSRenderer.java | |
parent | 4e8413db450f4cd73e3d5f6b2ffdaf6ad222f454 (diff) | |
download | xmlgraphics-fop-47dbae7b8f1b6cb06e0785d21c666a95bbeaefbc.tar.gz xmlgraphics-fop-47dbae7b8f1b6cb06e0785d21c666a95bbeaefbc.zip |
Resurrect the getter/setter for the "auto-rotate-landscape" setting.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps/PSRenderer.java')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRenderer.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java index fcee2e94d..5d3242346 100644 --- a/src/java/org/apache/fop/render/ps/PSRenderer.java +++ b/src/java/org/apache/fop/render/ps/PSRenderer.java @@ -129,6 +129,20 @@ public class PSRenderer extends AbstractPathOrientedRenderer { } /** + * Sets the landscape mode for this renderer. + * @param value false will normally generate a "pseudo-portrait" page, true will rotate + * a "wider-than-long" page by 90 degrees. + */ + public void setAutoRotateLandscape(boolean value) { + this.autoRotateLandscape = value; + } + + /** @return true if the renderer is configured to rotate landscape pages */ + public boolean isAutoRotateLandscape() { + return this.autoRotateLandscape; + } + + /** * @see org.apache.fop.render.Renderer#setUserAgent(FOUserAgent) */ public void setUserAgent(FOUserAgent agent) { |