aboutsummaryrefslogtreecommitdiffstats
path: root/src/sandbox
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-10-23 10:03:27 +0000
committerJeremias Maerki <jeremias@apache.org>2008-10-23 10:03:27 +0000
commit48ddcd67a997a2662c2a3de5e90d008dd8435267 (patch)
tree8b5b5ffb4cf55cbe716f65fa6aa4b32a69a88c20 /src/sandbox
parent720d953a04a127e7d0aba7a63bb34a59f7cf6d56 (diff)
downloadxmlgraphics-fop-48ddcd67a997a2662c2a3de5e90d008dd8435267.tar.gz
xmlgraphics-fop-48ddcd67a997a2662c2a3de5e90d008dd8435267.zip
Moved IFState instance variable into AbstractIFPainter as all implementations use it.
Refactored default image handling methods in AbstractIFPainter a bit to make them more universal. Fixed a small mistake in Java2DImageHandlerRenderedImage. Added configurator code for new PCL implementation. Fixed smaller issues in PCLGenerator. Added support for painting images (e-g and i-f-o) as bitmaps (depends on rev 707329 in XML Graphics Commons). Added support for text with custom fonts to be painted as bitmaps. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@707331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox')
-rw-r--r--src/sandbox/org/apache/fop/render/svg/SVGPainter.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
index e0d12d9c7..c9b7b7e3b 100644
--- a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
+++ b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
@@ -68,9 +68,6 @@ public class SVGPainter extends AbstractIFPainter implements SVGConstants {
/** logging instance */
private static Log log = LogFactory.getLog(SVGPainter.class);
- /** Holds the intermediate format state */
- protected IFState state;
-
private AbstractSVGDocumentHandler parent;
/** The SAX content handler that receives the generated XML events. */
@@ -350,29 +347,6 @@ public class SVGPainter extends AbstractIFPainter implements SVGConstants {
}
}
- /** {@inheritDoc} */
- public void setFont(String family, String style, Integer weight, String variant, Integer size,
- Color color) throws IFException {
- if (family != null) {
- state.setFontFamily(family);
- }
- if (style != null) {
- state.setFontStyle(style);
- }
- if (weight != null) {
- state.setFontWeight(weight.intValue());
- }
- if (variant != null) {
- state.setFontVariant(variant);
- }
- if (size != null) {
- state.setFontSize(size.intValue());
- }
- if (color != null) {
- state.setTextColor(color);
- }
- }
-
private void leaveTextMode() throws SAXException {
assert this.mode == MODE_TEXT;
handler.endElement("g");