You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/24 03:02:51 UTC

[Xmlgraphics-batik Wiki] Update of "IvanAndjelkovic-gsoc2007" by IvanAndjelkovic

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-batik Wiki" for change notification.

The following page has been changed by IvanAndjelkovic:
http://wiki.apache.org/xmlgraphics-batik/IvanAndjelkovic-gsoc2007

------------------------------------------------------------------------------
  
  [[BR]]
  '''Editing the document''' ----
+ The user should be able to add, edit or remove the nodes from the document, by using the pop - up menus registered on the DOM document tree, the panel for element editing, or the characted data panel for node editing. 
- Adding the pop-up menu to the nodes in the tree for inserting and removing a node or a group of nodes from the document. Pop-up menu contains "Remove" and "Insert node" items. Remove option removes the selected nodes from the document (as well as from the tree). Insert node option opens the “new node” dialog from which the node type and the attribute values have to be chosen (and some other options), and appends that node to the selected parent in the tree.[[BR]]
- 
- Adding the pop-up menu to the attribute table to remove or insert new attribute. Remove option removes the selected attribute or group of attributes from the document (as well as from the table). Insert attribute option opens the “new attribute” dialog.[[BR]]
- 
- Allow the value column of the attribute table to be editable, so the attribute values can be changed.[[BR]]
- 
- Allow the text area for comment, text or cdata_section node to be editable.[[BR]]
- 
- If a script gets modified, it needs to be revaluated by the Interpreter, for which the Bridge Context is needed.[[BR]]
  
  [[BR]]
  '''Tracking the history'''
  ----
- Keeping the changes of the document in the history allows undo/redo actions on the document, for one change, or a number of last changes. Due to memory issues, history size should be set initially to some value.[[BR]]
+ Keeping the changes of the document in the history should allow the user to undo and redo the changes made on the document, a single change or a custom number of actions (by using the dropdown component for that purpose). Due to memory issues, history size should be set initially to some value.[[BR]]
  
  [[BR]]
  '''Implementation status'''
  ----
  
-  * Added methods for adding and removing DOM Mutation event listeners (DOM Node Inserted, DOM Node Removed, DOM Character Data Modified and DOM Attr Modified) to the document,
-  * Created listeners to handle the update of the Viewer when the document structure changes,
-  * Made text area for text, comment and cdata section nodes editable; Made attribute table editable; Created the appropriate listeners to handle the document update after editing,
-  * Created pop-ups for tree and attributes table to insert and remove nodes and attributes; Created the appropriate listeners to handle the insertion and removal of nodes and attributes,
-  * Created a dialog for adding the attributes,
-  * Created a dialog for adding the element node, 
+  1. Allowed ‘Live track’ option: 
+    a. DOM document tree (JTree) gets updated on insert/remove node events,
+    a. Panel/attribute table gets updated on attribute modified event, 
+    a. Character panel gets updated on character data changed event, 
+    a. Is always turned on.
+  1. Added panel for adding, editing, and previewing the element (it's xml representation):
+    a. The element can be viewed and modified, as well as it’s sub tree (by directly editing xml),
+    a. Support for well formed check of the xml in the panel,
+    a. The element can be created and added to the document at a specified location,
+    a. When the node from the tree gets selected, it’s associated element from the document is shown in the panel,
+    a. Nodes of other types then elements can be edited using character data panel.
+  1. Enhanced DOM document tree for browsing the document: 
+    a. Allowed multiple dnd support (nodes changing their place in the document),
+    a. Auto scroll support,
+    a. Visual tips for dnd (to be able to choose the exact location of nodes to be repositioned, e.g. between two tree node items),
+    a. Added pop - up menu and items for creating new elements, removing the selected ones and inserting element templates,
+    a. Scroll & select the appropriate node in the DOM document tree when it gets inserted into document.
+  1. Created node templates (for quick add): created predefined nodes with the required attributes and their default values: e.g. <rect width=”0” height=”0”/>
+  1. Allowed the tree selection to reflect on the canvas as well: When the node(s) from the DOM document tree get selected, the ‘overlay’ on the canvas appears to show the element being selected
+  1. Added support for browsing the document history:
+    a. Support for undo/redo actions (including naming of actions),
+    a. Added the dropdown component to support undo/redo mechanism for custom number of actions,
+    a. Added support for compound commands (such as removal of a custom number of nodes, etc).