You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Batik User <ba...@bilbao.com> on 2001/09/05 13:18:55 UTC

NEWBIE: Could anybody give me an example?

Hi!

I'm starting with BATIK.

I downloaded 'batik-1.0.zip' from
'http://xml.apache.org/batik/dist/', but I do not find any
JAVA file to test it.

Could anybody give me an example or a place to find it?

Thank you in advance...
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NEWBIE: Could anybody give me an example?

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "BU" == Batik User <ba...@bilbao.com> writes:

BU> I'm not looking for svg files, but .JAVA files (source code) to
BU> implement programs in order to create svg files.

BU> I tried with SVGApplication (taken from batik docs) but it creates
BU> an applet, but anything else...

    Well, if you downloaded the source archive (vs the jar archive),
you got all the java files for everything in Batik.  You talk about
writing programs to generate SVG so I assume you are looking for the
svggen classes which are in: xml-batik/sources/org/apache/batik/svggen

The source for the various applications is in:

        xml-batik/sources/org/apache/batik/apps/*

Have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NEWBIE: Could anybody give me an example?

Posted by Batik User <ba...@bilbao.com>.
Thank you for answering.

I'm for .JAVA files (source code) to implement programs in
order to create svg files.

I tried with SVGApplication (taken from batik docs) but it
creates an applet, but anything else...

Regards,


El Wed, 5 Sep 2001 07:32:23 -0400
 Thomas E Deweese <th...@kodak.com> wrote:
> >>>>> "BU" == Batik User <ba...@bilbao.com> writes:
> 
> BU> Hi!  I'm starting with BATIK.
> 
> BU> I downloaded 'batik-1.0.zip' from
> BU> 'http://xml.apache.org/batik/dist/', but I do not
> find any JAVA
> BU> file to test it.
> 
> BU> Could anybody give me an example or a place to find
> it?
> 
>     Well there are example files on the web, but in the
> zip file you
> will see a samples directory that has quite a number of
> example SVG
> files.  In the samples directory there is also a tests
> directory that
> has a bunch more (less interesting) test SVG files.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> batik-dev-help@xml.apache.org
> 

_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


createDocument not found in interface org.w3c.dom.DOMImplementation

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "BU" == Batik User <ba...@bilbao.com> writes:

BU> Here you are the complete code (Proba.java):

    You most likely have your class path setup wrong.  The batik.jar
files must come before xerces or any other source of a W3C DOM
implementation, since we need a stylable DOM implementation.

BU> ---------------//------------------------ import
BU> java.io.IOException; import
BU> org.apache.batik.dom.svg.SVGDOMImplementation; import
BU> org.w3c.dom.Document; import org.w3c.dom.Element; import
BU> org.w3c.dom.DOMImplementation;
 
BU> public class Proba {

BU> 	public static void main(String [] args) throws IOException {
		
BU> 		DOMImplementation impl =
BU> SVGDOMImplementation.getDOMImplementation(); String svgNS =
BU> SVGDOMImplementation.SVG_NAMESPACE_URI; Document doc =
BU> impl.createDocument(svgNS, "svg", null); } }
BU> --------------------//------------------

BU> The error message is:

BU> createDocument not found in interface
BU> org.w3c.dom.DOMImplementation
BU> _______________________________________________________________________
BU> ¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú
BU> quieras?  http://www.hispavista.com/altascorreo/

BU> ---------------------------------------------------------------------
BU> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org For
BU> additional commands, e-mail: batik-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: createDocument not found in interface org.w3c.dom.DOMImplementation

Posted by Batik User <ba...@bilbao.com>.
THANK YOU VERY MACH.

I was to blame.

You have to include batik JAR's before others.
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: createDocument not found in interface org.w3c.dom.DOMImplementation

Posted by Thierry Kormann <tk...@ilog.fr>.
On Wednesday 05 September 2001 18:05, you wrote:
> Here you are the complete code (Proba.java):
>
> ---------------//------------------------
> import java.io.IOException;
> import org.apache.batik.dom.svg.SVGDOMImplementation;
> import org.w3c.dom.Document;
> import org.w3c.dom.Element;
> import org.w3c.dom.DOMImplementation;
>
> public class Proba {
>
> 	public static void main(String [] args) throws IOException
> {
>
> 		DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
> 		String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
> 		Document doc = impl.createDocument(svgNS, "svg", null);
> 	}
> }
> --------------------//------------------
>
> The error message is:
>
> createDocument not found in interface
> org.w3c.dom.DOMImplementation


Your code works fine and is correct. Please check your classpath (all jar 
files from batik should be first in your classpath, especially if you already 
have some other DOM bindings).

Thierry.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


createDocument not found in interface org.w3c.dom.DOMImplementation

Posted by Batik User <ba...@bilbao.com>.
Here you are the complete code (Proba.java):

---------------//------------------------
import java.io.IOException;
import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.DOMImplementation;
 
public class Proba {

	public static void main(String [] args) throws IOException
{
		
		DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
		String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
		Document doc = impl.createDocument(svgNS, "svg", null);
	}	
}
--------------------//------------------

The error message is:

createDocument not found in interface
org.w3c.dom.DOMImplementation
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Problems with TestSVGGen

Posted by Batik User <ba...@bilbao.com>.
Hi!

First of all, thank you very much for answering.

I'm using BATIK 1.0.

When trying to compile:

---------//-----
import java.awt.Rectangle;
import java.awt.Graphics2D;
import java.awt.Color;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.IOException;
import org.apache.batik.svggen.SVGGraphics2D;
import org.apache.batik.dom.GenericDOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.DOMImplementation;
...
Document document = domImpl.createDocument(null, "svg",
null);
...
-----------//-------

I get this error

Method createDocument not found in interface
org.w3c.dom.DomImplementation

Any suggestion???
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NEWBIE: Could anybody give me an example?

Posted by Vincent Hardy <vi...@sun.com>.
Hello,

I think that the various examples on the site:

http://xml.apache.org/batik/svggen.html
http://xml.apache.org/batik/domapi.html
http://xml.apache.org/batik/scripting.html
http://xml.apache.org/batik/svgcanvas.html
http://xml.apache.org/batik/rasterizerTutorial.html

will also give you valuable information and sample code.
Cheers!
Vincent.

Batik User wrote:
> 
> Thank you Thomas for answering.
> 
> I'm not looking for svg files, but .JAVA files (source code)
> to implement programs in order to create svg files.
> 
> I tried with SVGApplication (taken from batik docs) but it
> creates an applet, but anything else...
> 
> Regards,
> 
> El Wed, 5 Sep 2001 07:32:23 -0400
>  Thomas E Deweese <th...@kodak.com> wrote:
> > >>>>> "BU" == Batik User <ba...@bilbao.com> writes:
> >
> > BU> Hi!  I'm starting with BATIK.
> >
> > BU> I downloaded 'batik-1.0.zip' from
> > BU> 'http://xml.apache.org/batik/dist/', but I do not
> > find any JAVA
> > BU> file to test it.
> >
> > BU> Could anybody give me an example or a place to find
> > it?
> >
> >     Well there are example files on the web, but in the
> > zip file you
> > will see a samples directory that has quite a number of
> > example SVG
> > files.  In the samples directory there is also a tests
> > directory that
> > has a bunch more (less interesting) test SVG files.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> > batik-dev-help@xml.apache.org
> >
> 
> _______________________________________________________________________
> ¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
> http://www.hispavista.com/altascorreo/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NEWBIE: Could anybody give me an example?

Posted by Batik User <ba...@bilbao.com>.
Thank you Thomas for answering.

I'm not looking for svg files, but .JAVA files (source code)
to implement programs in order to create svg files.

I tried with SVGApplication (taken from batik docs) but it
creates an applet, but anything else...

Regards,


El Wed, 5 Sep 2001 07:32:23 -0400
 Thomas E Deweese <th...@kodak.com> wrote:
> >>>>> "BU" == Batik User <ba...@bilbao.com> writes:
> 
> BU> Hi!  I'm starting with BATIK.
> 
> BU> I downloaded 'batik-1.0.zip' from
> BU> 'http://xml.apache.org/batik/dist/', but I do not
> find any JAVA
> BU> file to test it.
> 
> BU> Could anybody give me an example or a place to find
> it?
> 
>     Well there are example files on the web, but in the
> zip file you
> will see a samples directory that has quite a number of
> example SVG
> files.  In the samples directory there is also a tests
> directory that
> has a bunch more (less interesting) test SVG files.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> batik-dev-help@xml.apache.org
> 

_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


NEWBIE: Could anybody give me an example?

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "BU" == Batik User <ba...@bilbao.com> writes:

BU> Hi!  I'm starting with BATIK.

BU> I downloaded 'batik-1.0.zip' from
BU> 'http://xml.apache.org/batik/dist/', but I do not find any JAVA
BU> file to test it.

BU> Could anybody give me an example or a place to find it?

    Well there are example files on the web, but in the zip file you
will see a samples directory that has quite a number of example SVG
files.  In the samples directory there is also a tests directory that
has a bunch more (less interesting) test SVG files.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org