Hi Cameron,
On 5/1/07, Cameron McCormack <[EMAIL PROTECTED]> wrote:
Hi guys.
Hope you're having a relaxing "interim period". :)
I'd like to make sure you both have a good feeling of Batik's codebase
and have started to refine your designs before the coding time starts,
on May 28.
The "interim period" is going just fine. I have downloaded
batik-1_7beta (I used 1.6 before) from SVN and done some browsing
through the code, especially the DOMViewer class. I've been trying
some of the stuff on the Viewer, and would appreciate your comments on
some of the following issues.
1) Regarding the tree:
Adding pop-up menu to the nodes in the tree, containing "remove" and
"add new node" items. Remove option would remove selected nodes from
the document (as well as from the tree). Add new node option would
open the dialog, from which the node type and the node attributes have
to be chosen (and maybe some other options), and append that node as a
child to the selected node from the tree. The issues here are the
compatibility of the parent node and the appended one, determining the
required attributes according to the node type, filling the values of
the attributes with valid values etc.
2) The attributes (name/value) table:
Making the the value column of the table editable, so the attribute
values can be changed; Adding the pop-up menu to remove and add new
attribute through a dialog.
3) Making the text area for comment, text or cdata_section node editable.
4) Tracking the changes of the document structure. As Thomas
suggested, adding Mutation Event Listeners would manage the update of
DOMViewer whenever the document structure changes, including using the
DOMViewer itself to change the document.
Obviously this'll be a lot to digest if you're new to the code. I
suggest you trace through a rendering of a document to see how the flow
of control works between all these classes. A good place to set your
IDE up to break on might be
org.apache.batik.swing.svg.AbstractJSVGComponent#installSVGDocument.
I think it'll be good for you guys also to have a look through the SVG
1.1 spec (http://www.w3.org/TR/SVG11/) if you haven't done so already.
As always, just ask on the batik-dev mailing list if you have any
questions.
I plan to continue working on these issues, as well as to browse
deeper into the Batik's architecture.
Are you guys going to have a wiki or blog or something to document your
progress? There's no requirement to, but it may be useful for me (and
the other devs) to see where you're at.
I can create a wiki page (perhaps http://www.wikidot.com ?) or share a
document on the google docs.
Ivan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]