On Monday 11 June 2001 21:51, Chris Clarke wrote:
> I am trying to write a program that utilizes the JSVGCanvas part of batik.
>
> I downloaded the src dist or batik and did a 'build.bat compile'
>
> I put the classes in my classpath for my compiler and also on my web
> server.
>
> My program starts to load an SVG file.... and never gets past that point.
>
> You'll find my code attached.
>
> I don't know if this is the right venue for this kind of thing but I can't
> seem to find any other spots for help with this problem.
>
A way to have some feedback from the JSVGCanvas is to set your own
SVGUserAgent. For example:
svgCanvas = new JSVGCanvas(new SVGUserAgent() {
public void displayError(String message) {
System.out.println(message);
}
public void displayError(Exception ex) {
ex.printStackTrace();
}
public void displayMessage(String message) {
}
public float getPixelToMM() {
return 0.264583333333333333333f; // 96 dpi
}
public String getLanguages() {
return "en";
}
public String getUserStyleSheetURI() {
return null;
}
public String getXMLParserClassName() {
return "org.apache.crimson.parser.XMLReaderImpl";
}
public void openLink(String uri, boolean newc) {
svgCanvas.setURI(uri);
}
public boolean supportExtension(String s) {
return false;
}
}, true, true);
Every error will be displayed using the standard output.
--
Stephane.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]