diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-01-11 11:31:24 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-01-11 11:31:24 +0000 |
commit | 25b82eeedf54b42083102ce9d4c3dad3a472d586 (patch) | |
tree | 31e89c33e88d6473d092a706c54a4851e148b112 /src/java/org/apache/fop/render/afp/AFPCustomizable.java | |
parent | 04bb06d6912f18601d1623935ac0d202da372e67 (diff) | |
download | xmlgraphics-fop-25b82eeedf54b42083102ce9d4c3dad3a472d586.tar.gz xmlgraphics-fop-25b82eeedf54b42083102ce9d4c3dad3a472d586.zip |
Started new IF implementation for AFP (incomplete, supporting filled rects, text and images). Work in progress!
Moved PTOCA (presentation text) command sequence production into the new "ptoca" package.
The PtocaBuilder class allows more flexible command sequence production than if you have to pass in an "info object".
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AFPCustomizable.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPCustomizable.java | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPCustomizable.java b/src/java/org/apache/fop/render/afp/AFPCustomizable.java new file mode 100644 index 000000000..20588a579 --- /dev/null +++ b/src/java/org/apache/fop/render/afp/AFPCustomizable.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* $Id$ */ + +package org.apache.fop.render.afp; + +/** + * Interface used to customize the AFP renderer or document handler. + */ +public interface AFPCustomizable { + + /** + * Sets the number of bits used per pixel + * + * @param bitsPerPixel + * number of bits per pixel + */ + void setBitsPerPixel(int bitsPerPixel); + + /** + * Sets whether images are color or not + * + * @param colorImages + * color image output + */ + void setColorImages(boolean colorImages); + + /** + * Sets whether images are supported natively or not + * + * @param nativeImages + * native image support + */ + void setNativeImagesSupported(boolean nativeImages); + + /** + * Sets the output/device resolution + * + * @param resolution + * the output resolution (dpi) + */ + void setResolution(int resolution); + + /** + * Returns the output/device resolution. + * + * @return the resolution in dpi + */ + int getResolution(); + + /** + * Sets the default resource group file path + * @param filePath the default resource group file path + */ + void setDefaultResourceGroupFilePath(String filePath); + +} |