You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Joseph Foster <jl...@donnell.com> on 2003/08/05 17:55:10 UTC

RE: Opening a SVG document

canvas.loadSVGDocument(String url);

Where canvas is of type JSVGCanvas

Hope that helps

Joe


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


Re: Opening a SVG document

Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Alice,

Boris Osipchuk wrote:
> Alice,
> When you read the error really careful you will notice that you package
> declaration is:
> org.apache.batik.gvt
> However, it looks like you directory structure is this:
> C:\Documents and Settings\Alice
> Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
> er.java
> As you can see there is a swing directory between batik and gvt directories,
> but it is not in your package decalaration.
> So, either delete this directory from your system or make sure the package
> declaration includes it.

     Yes, I agree it looks like when you imported the code you accidentally
moved some of the source files around. It is in the correct
location in the Batik Distribution.


> 
> Sincerely,
> Boris A. Osipchuk
> Application Engineer
> 
> O'NEIL & ASSOCIATES, INC.
> 495 Byers Rd.
> Miamisburg, Ohio 45342-3662
> Phone: (937) 865-0846 ext. 3425
> Fax: (937) 865-5858
> E-mail: bosipchuk@oneil.com
> 
> -----Original Message-----
> From: Alice Mello Cavallo [mailto:mello@media.mit.edu]
> Sent: Wednesday, August 06, 2003 2:04 AM
> To: Batik Users; 'Batik Users'
> Subject: RE: Opening a SVG document
> 
> Joe,
> 
> thanks for the tips.
> i am trying to import the packages from batij into my application in
> Jbuilder and i am getting those kind of errors;
> "TextPainter.java": Package C:\Documents and Settings\Alice
> Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
> er.java
> stated in source org.apache.batik.gvt does not match directory C:\Documents
> and Settings\Alice
> Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
> er.java.
> at line 9, column 26
> 
> The java file is there in the same directory structure.
> 
> thanks again,
> Alice
> At 10:55 AM 8/5/2003 -0500, Joseph Foster wrote:
> 
>>canvas.loadSVGDocument(String url);
>>
>>Where canvas is of type JSVGCanvas
>>
>>Hope that helps
>>
>>Joe
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




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


RE: Opening a SVG document

Posted by Boris Osipchuk <bo...@oneil.com>.
Alice,
When you read the error really careful you will notice that you package
declaration is:
org.apache.batik.gvt
However, it looks like you directory structure is this:
C:\Documents and Settings\Alice
Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
er.java
As you can see there is a swing directory between batik and gvt directories,
but it is not in your package decalaration.
So, either delete this directory from your system or make sure the package
declaration includes it.

Sincerely,
Boris A. Osipchuk
Application Engineer

O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0846 ext. 3425
Fax: (937) 865-5858
E-mail: bosipchuk@oneil.com

-----Original Message-----
From: Alice Mello Cavallo [mailto:mello@media.mit.edu]
Sent: Wednesday, August 06, 2003 2:04 AM
To: Batik Users; 'Batik Users'
Subject: RE: Opening a SVG document

Joe,

thanks for the tips.
i am trying to import the packages from batij into my application in
Jbuilder and i am getting those kind of errors;
"TextPainter.java": Package C:\Documents and Settings\Alice
Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
er.java
stated in source org.apache.batik.gvt does not match directory C:\Documents
and Settings\Alice
Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPaint
er.java.
at line 9, column 26

The java file is there in the same directory structure.

thanks again,
Alice
At 10:55 AM 8/5/2003 -0500, Joseph Foster wrote:
>canvas.loadSVGDocument(String url);
>
>Where canvas is of type JSVGCanvas
>
>Hope that helps
>
>Joe
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org


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


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


RE: Opening a SVG document

Posted by Alice Mello Cavallo <me...@media.mit.edu>.
Joe,

thanks for the tips.
i am trying to import the packages from batij into my application in 
Jbuilder and i am getting those kind of errors;
"TextPainter.java": Package C:\Documents and Settings\Alice 
Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPainter.java 
stated in source org.apache.batik.gvt does not match directory C:\Documents 
and Settings\Alice 
Mello\jbproject\VirtualForumTheater\src\org\apache\batik\swing\gvt\TextPainter.java. 
at line 9, column 26

The java file is there in the same directory structure.

thanks again,
Alice
At 10:55 AM 8/5/2003 -0500, Joseph Foster wrote:
>canvas.loadSVGDocument(String url);
>
>Where canvas is of type JSVGCanvas
>
>Hope that helps
>
>Joe
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org


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


Importing Batik classes into JBuilder

Posted by Alice Mello Cavallo <me...@media.mit.edu>.
Hi all,

I need to implement a simple animation engine by dragging the SVG 
shapes/images on the canvas, saving the coordinates and so on.So, I suppose 
I will be using a lot of the batik features. Jbuilder is not that smart, so 
I am importing the java files and moving them with the mouse. I am puzzled 
that even though the packages structures are being created the error 
messages of not finding the classes are still showing up. I will keep 
working on that.

My question is :

Do I need the whole batik directory structure and java files?

Someone told me to use Eclipse IDE, I have not tried yet. In that case, i 
have to import my application into Eclipse as well. Would this really be a 
better option?

Thank you so much,
Alice


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