You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Keiron Liddle <ke...@aftexsw.com> on 2000/10/25 13:55:28 UTC

svg gradients

I have attempted to make the linear gradients better.
Currently it should handle
- when x1, x2 etc. values are not specified
- xlink:href to other linear gradients
- different gradient units

It can successfully pass the basic linear gradient tests.

It doesn't handle
- non-uniform colour spacings
- spreadMethod (ie. reflect and repeat)

I will next try to get the basic radial gradients working properly.
And to try and make the code a bit easier to handle, at the moment the
rendering is a bit of a mess.


[BUG] Re: svg gradients

Posted by Michael Lee <mi...@collegenet.com>.
Keiron Liddle wrote:
> 
> I have attempted to make the linear gradients better.
> Currently it should handle
> - when x1, x2 etc. values are not specified
> - xlink:href to other linear gradients
> - different gradient units
> 
> It can successfully pass the basic linear gradient tests.
> 
> It doesn't handle
> - non-uniform colour spacings
> - spreadMethod (ie. reflect and repeat)
> 
> I will next try to get the basic radial gradients working properly.
> And to try and make the code a bit easier to handle, at the moment the
> rendering is a bit of a mess.

I just checked this code out of cvs and it will no longer compile. 
Below is a shortened ANT output.  It seems that the Node interface
'isSupported(String,String)' is not implemented in fop's node
implementations.

michaell@terpsichore:~/src/xml-fop$ ./mybuild.sh 

Fop Build System
----------------

Building with classpath
/home/michaell/src/xml-fop/lib/w3c.jar:/home/michaell/src/xml-fop/build/fop.jar:.:/usr/local/jaf-1.0.1/activation.jar:/usr/local/javamail-1.1.3/mail.jar:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/pdflib.jar:/usr/local/NetComponents-1.3.8a/NetComponents.jar:/usr/local/jakarta-regexp-1.1/jakarta-regexp-1.1.jar:/usr/local/jakarta-oro-2.0/jakarta-oro-2.0.jar:/usr/IBMdb2/V7.1/java/db2java.zip:/usr/IBMdb2/V7.1/java/runtime.zip:/usr/local/xerces-1_2_1/xerces.jar:/usr/local/Xalan/xalan.jar:/usr/local/Xalan/bsf.jar:/usr/local/Xalan/bsfengines.jar:/usr/local/jakarta-ant/lib/ant.jar:/usr/local/jakarta-ant/lib/parser.jar:/usr/local/jakarta-ant/lib/jaxp.jar:/usr/local/Jimi/JimiProClasses.zip:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/classes.zip:./lib/ant.jar:./lib/w3c.jar:./lib

Starting Ant...

Buildfile: build.xml
    [chmod] The src attribute is deprecated. Please use the file
attribute.
    [chmod] The src attribute is deprecated. Please use the file
attribute.

init:
------------------- Fop 0.15cvs [1999-2000] ----------------

prepare:
Preparing the build directories
    [mkdir] Created dir: /home/michaell/src/xml-fop/build
    [mkdir] Created dir: /home/michaell/src/xml-fop/build/src
    [mkdir] Created dir:
/home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties
    [mkdir] Created dir:
/home/michaell/src/xml-fop/build/src/org/apache/fop/render/pdf/fonts
                                
codegen:                        
Resetting codegen directory     
  [copydir] Copying 19 files to
/home/michaell/src/xml-fop/build/src/codegen
Generating the java files from xml resources
============================    
xslt                            
in: ./build/src/codegen/properties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/ignore_this.java
============================    

...
...
...

============================

prepare-xt:

prepare-jimi:
Jimi library is present. Fop installs jimi support.
  [copydir] Copying 1 files to /home/michaell/src/xml-fop/build/src

prepare-src:
  [copydir] Copying 306 files to /home/michaell/src/xml-fop/build/src

compile:
Compiling the sources 
    [mkdir] Created dir: /home/michaell/src/xml-fop/build/classes
    [javac] Compiling 419 source files to
/home/michaell/src/xml-fop/build/classes
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/NodeImpl.java":
    [javac] 
    [javac]     63. public class NodeImpl implements Node {
    [javac] 
    [javac]                      <------>
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/NodeImpl".
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/ElementImpl.java":
    [javac] 
    [javac]     63. public class ElementImpl extends NodeImpl implements
Element {
    [javac] 
    [javac]                      <--------->
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/ElementImpl".
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGDocumentImpl.java":
    [javac] 
    [javac]     64. public class SVGDocumentImpl extends ElementImpl
implements SVGDocument {
    [javac] 
    [javac]                      <------------->
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/svg/SVGDocumentImpl".
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGSVGElementImpl.java":
    [javac] 
    [javac]     73. public class SVGSVGElementImpl extends
GraphicElement implements SVGSVGElement {
    [javac] 
    [javac]                      <--------------->
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/svg/SVGSVGElementImpl".
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGStyleElementImpl.java":
    [javac] 
    [javac]     63. public class SVGStyleElementImpl extends
GraphicElement implements SVGStyleElement {
    [javac] 
    [javac]                      <----------------->
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/svg/SVGStyleElementImpl".
    [javac] 
    [javac] Found 1 semantic error compiling
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGSymbolElementImpl.java":
    [javac] 
    [javac]     59. public class SVGSymbolElementImpl extends
GraphicElement implements SVGSymbolElement {
    [javac] 
    [javac]                      <------------------>
    [javac] 
    [javac] *** Error: The abstract method "boolean
isSupported(java.lang.String $1, java.lang.String $2);", inherited from
type "org/w3c/dom/Node", is not implemented in the non-abstract class
"org/apache/fop/dom/svg/SVGSymbolElementImpl".