xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harm Cuppens" <harm.cupp...@iosint.be>
Subject RE: repainting the cavas on command
Date Thu, 06 Mar 2003 10:09:25 GMT
Hello again,

My document is set to ALWAYS_DYNAMIC, because if I move the mouse over the
canvas, then the drawing is updated.
It just won't update it if my cursor is outside of the canvas component.

Siarhei,
I draw my grid by creating a <g> element, and then I create seperate lines
according to user input (gridsize) and add them to the group, this way it
can easily be toggled on and off by setting the group visibility.
A polyline would also be a solution like Jan Lolling mentioned.

Greets,
Harm

-----Original Message-----
From: Siarhei Biarozkin [mailto:sberyozkin@zandar.com]
Sent: donderdag 6 maart 2003 10:43
To: Batik Users; harm.cuppens@iosint.be
Subject: Re: repainting the cavas on command


Hi,
We had a similar problem, you need to call setDocumentState(ALWAYS_DYNAMIC).
...
...
How do you draw the grid in SVG ?

Cheers
Siarhei Biarozkin
----- Original Message -----
From: "Harm Cuppens" <harm.cuppens@iosint.be>
To: "Batik Users (E-mail)" <batik-users@xml.apache.org>
Sent: Thursday, March 06, 2003 8:57 AM
Subject: repainting the cavas on command


> Hello all,
>
> I have the following problem. I'm creating a little SVG editor and I have
a
> seperate toolbar for the drawing tools etc.
> In my application I can create a grid (a group with line elements) that
has
> to be embedded inside the svg document.
> The user has the abillity to toggle this grid on and off (which simply
sets
> the visible attribute of the gridgroup).
> Now my problem, whenever I press the toggle button to turn on my grid (or
> off), the canvas won't immediately update the changes made to the DOM. It
> does nothing untill I move my mouse pointer over the canvas, then the
> repainting kicks in (immediately). I've tried calling repaint,
> immediateRepaint on the JSVGCanvas but that didn't help. I've also tried
the
> repaint method on the UpdateManager class, but this caused an exception.
>
> I'm pretty new to Java, so I'm not sure if this because the painting
> mechanics of Java (that the component must have focus for repaint to
work),
> or if this is something related to batik itself.
> Or am I calling the wrong methods to repaint the canvas ?
>
> Any input appreciated.
> Thanks,
>
> Harm
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message