diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-07-16 09:10:02 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-07-16 09:10:02 +0000 |
commit | b11934f81509eafde584354e41981a656c3d4d39 (patch) | |
tree | 878c56ee5db1fa989ebb9fff4fbd56fb377c9964 /src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java | |
parent | 8e94b3ad33854852846b6333e09e7cd38a2cc5e0 (diff) | |
download | xmlgraphics-fop-b11934f81509eafde584354e41981a656c3d4d39.tar.gz xmlgraphics-fop-b11934f81509eafde584354e41981a656c3d4d39.zip |
Renamed "iform" package to "intermediate" (iform was too cryptic for my taste)
Changed IFRenderer to work against the IFPainter interface.
Started IFPainter implementations for the IF format (IFSerializer), SVG 1.1 and SVG Print. They currently support very simple FOs only (like examples/fo/basic/simple.fo).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@677204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java')
-rw-r--r-- | src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java b/src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java new file mode 100644 index 000000000..9c9dda61a --- /dev/null +++ b/src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java @@ -0,0 +1,50 @@ +/* + * 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.intermediate; + +import org.apache.fop.apps.FOUserAgent; + +/** + * Abstract base class for IFPainter implementations. + */ +public abstract class AbstractIFPainter implements IFPainter { + + private FOUserAgent userAgent; + + /** + * Default constructor. + */ + public AbstractIFPainter() { + } + + /** {@inheritDoc} */ + public void setUserAgent(FOUserAgent ua) { + this.userAgent = ua; + } + + /** + * Returns the user agent. + * @return the user agent + */ + protected FOUserAgent getUserAgent() { + return this.userAgent; + } + +} |