Thank you very a lot for your help.
ps:
> Hi Peruzzi,
Peruzzi is my surname. My name is Alessandro ;-)
I have another problem but i write another message with a different
subject text.
Alessandro Peruzzi
--- In svg-developers@yahoogroups.com, Thomas DeWeese
<[EMAIL PROTECTED]> wrote:
> Hi
Hi Peruzzi,
Peruzzi Alessandro wrote:
> now when i calculate for example... width
> with this code:
>
> Rectangle rect = ctx.getGraphicsNode(t1).getBounds().getBounds();
> int width = (int)(ctx.getGraphicsNode(t1).getBounds().getWidth());
>
> I have a different result
> rect.width no equals t
Hi, this solution is ok.
But i have a question
in my code if I generated a TextElement
.
.
.
UserAgent userAgent;
DocumentLoader loader;
BridgeContext ctx;
GVTBuilder builder;
userAgent = new UserAgentAdapter();
loader= new DocumentLoader(userAgent);
ctx = new BridgeContext(use
Hi Peruzzi,
Peruzzi Alessandro wrote:
> Thanks but my program generated same errors.
You need to boot the 'graphics' part of the
SVG Document. Without this the extended SVG DOM
mostly won't work.
UserAgent userAgent;
DocumentLoader loader;
BridgeContext ctx;
no,
this field not exist
I dont understand why I have NullPointerException
t1.getBBox() return an instance but t1.getBBox().getWidht() return
NullPointerException
I hope you find for me a solution.
Thanks
Alessandro
--- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]>
wr
Hi Alessandro
>System.out.println("t1="+((SVGOMTextElement)t1).getBBox().getWidth());
just use:
getBBox().x
getBBox().y
getBBox().width
getBBox().height
hth
Holger
-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "
Thanks but my program generated same errors.
example:
in a main program
import org.w3c.dom.*;
import org.w3c.dom.svg.*;
import java.io.*;
import org.apache.batik.dom.*;
import org.apache.batik.dom.util.*;
import org.apache.batik.dom.svg.*;
import org.apache.batik.util.*;
public class TestSVG
7 matches
Mail list logo