From: Dan S. <dy...@fu...> - 2001-01-12 22:42:12
|
Available here with a screenshot: http://fury161.dyndns.org/dyneditor/ This is merely the ground work for a visual DynAPI editor written in Java. You'll need JDK 1.2 or later to try it out. It doesn't yet output or input any code. All it does is draw rectangles (DynLayers). I'm releasing this to give anyone else that's interested in this DynAPI side-project a chance to see where I'm heading with it. So, if you know Java, try running it and see how I structured things, and if you want to contribute some code you more than welcome. Again, I'm no Java expert, but I can get by on the Java docs and trial and error :) I'm sure others on this list will be able to help improve this (limited) codebase. There are 2 areas in particular that I would target next: 1. Nested Layers. There is no parent/child structure, or higher level object above the DynLayer class (remember this is a Java class not JavaScript). And thus there is no way to draw/insert a child layer. So first steps would be to create a DynDocument java class, and get all X/Y locations relative to some other parent rather than everything from the origin. Second part would be visually how you draw or insert a child. There is a selection system, so if you select a layer and start drawing it should then be drawing a child of the selected layer (same goes for insert). 2. Input/Output. The hooks are already included to load a file, and save it. Just need to do the parsing/generating. 3. Add Label and Image support. It should be fairly easy, just extend DynLayer and do the appropriate draw(). You'd need some dialogs for setting the options, and editing text. I was looking through the Java tutorial, it will not be a problem to have wrapping text in the label. There is already a chooseImage() method to load up an image with a built in image previewer (from the Swing tutorial), though I didn't try it out in DynEditor yet. For a reference my JavaMapper program uses the same code for that part. I will be away all next week, with little or no access to email during this time(so don't expect any replies from me until at least the 22nd). If anyone wants to contribute some effort to DynEditor just email me (da...@da...) your new code. Later if it's deemed necessary we could create a new Sourceforge account for this. |