After studying some of Christopher's JTin code, I think I've got a handle on how to install a renderer in OpenJUMP using a plug-in. It looks like you implement Paul's RendererFactory and add your RendererFactory to the RenderingManager using the setRendererFactory class.
Thanks, The Sunburned Surveyor On Fri, Apr 10, 2009 at 7:00 AM, Sunburned Surveyor <sunburned.surve...@gmail.com> wrote: > Larry wrote: "What I have heard so far is that your goal is to get > better text support in OJ. You want to import text from CAD and be > able to edit and create it OJ. That is a very different goal from an > improved DXF import capability. Both goals are worthwhile, but you > should probably choose to solve one at a time." > > They are indeed separate (but related) efforts. The improved text > support is something my Almost GSoC is interested in working on, while > DXF support is something I need for a project at my work. > > Thanks for the help Larry. > > SS > > On Fri, Apr 10, 2009 at 6:47 AM, Larry Becker <becker.la...@gmail.com> wrote: >> Kabeja converts an impressive set of entities to SVG alright, but there >> would still be considerable effort involved with using it in OJ. You would >> end up facing the same problems with displaying DXF text in OpenJump that >> all of the current DXF plugins are dealing with. >> >> It sounds like your project has a moving target. What you need is a >> definite goal with an understandable specification. Then you can evaluate >> the existing solutions, find where they don't meet your requirements, and >> choose a path that takes you there with a minimum of effort. >> >> What I have heard so far is that your goal is to get better text support in >> OJ. You want to import text from CAD and be able to edit and create it OJ. >> That is a very different goal from an improved DXF import capability. Both >> goals are worthwhile, but you should probably choose to solve one at a time. >> >> regards, >> Larry >> >> On Thu, Apr 9, 2009 at 5:32 PM, Sunburned Surveyor >> <sunburned.surve...@gmail.com> wrote: >>> >>> Thanks for the steps to extracting text from the DXF Larry. I'm >>> acutally looking at the Kabeja library (suggested by Christopher) as a >>> way to improve DXF import. I'll keep you posted on my progress. >>> >>> http://kabeja.sourceforge.net/ >>> >>> SS >>> >>> On Thu, Apr 9, 2009 at 2:44 PM, Larry Becker <becker.la...@gmail.com> >>> wrote: >>> > Hi SS, >>> > >>> > We also have the need to transfer our labels from CAD to SkyJUMP. >>> > >>> > 1) Use Michael's DXF plugin to import the (simple) DXF. It comes in >>> > with a >>> > Text attribute. >>> > 2) Use my "Extract Layer by Attribute" plugin, (which defaults to the >>> > attribute "Layer") to break the dxf-derived layer back out to the >>> > original >>> > layers. >>> > 3) Change the style on layers that have text to: >>> > a. Enable Labeling on the "TEXT attribute" >>> > b. Set the horizontal alignment to LEFT for layers with comment text. >>> > c. Set the Height attribute to TEXT_HEIGHT. >>> > d. Check Scale labels with the zoom level >>> > >>> > If you follow these steps, you should get reasonably good text in your >>> > OJ >>> > map from the CAD original. I recommend exporting as an R12 dxf if >>> > possible. You can use a free program like EveryDWG to do the >>> > conversion. >>> > >>> > regards, >>> > Larry >>> > >>> > On Thu, Apr 9, 2009 at 12:18 PM, Sunburned Surveyor >>> > <sunburned.surve...@gmail.com> wrote: >>> >> >>> >> Thanks for all of the responses. I'll get with Christopher on >>> >> implementing the external renderer. >>> >> >>> >> Larry asked some good questions. Let me try to answer them. >>> >> >>> >> Larry wrote: "The renderer is the lest of your problem with adding the >>> >> capability to do labels without a backing feature. How are you >>> >> planning to persist the labels?" >>> >> >>> >> I planned on persisting them as a normal Feature object, which means >>> >> they could be stored in a Shapefile, or maybe a delimited text file. >>> >> I'll likley wrap these features in a Layerable implementation. >>> >> >>> >> Larry wrote: "How will this integrate with the Project (Task)? How >>> >> will you keep this from making prior .jmp files incompatible?" >>> >> >>> >> I don't think any modifications to the project file will be needed at >>> >> this point. All of the attributes for locating and styling the text >>> >> can be stored in the feature attributes (I think). >>> >> >>> >> Larry wrote: "Why is it necessary to even do labels that don't have >>> >> features? What is their use case? >>> >> >>> >> The use cases are centered more on cartographic map production than >>> >> traditional spatial analysis. For example: I want to be able to import >>> >> notes from the CAD drawings my company produces when I import a DXF. >>> >> >>> >> Larry wrote: "In SkyJUMP I added a stand alone Text tool, but it >>> >> basically uses a new style with standard Features." >>> >> >>> >> I want to do something similar. I'll take a look at the stand alone >>> >> text tool in SkyJUMP. It would probably make a good starting point. >>> >> >>> >> Thanks for all of the help. >>> >> >>> >> SS >>> >> >>> >> On Thu, Apr 9, 2009 at 9:59 AM, Giuseppe Aruta >>> >> <giuseppe_ar...@yahoo.it> >>> >> wrote: >>> >> > >>> >> > Hi Stefan, >>> >> > >>> >> >> (somewehere on the >>> >> >> wiki there >>> >> >> was a tip on how to use html tags for displaying images? >>> >> > >>> >> > Here: http://openjump.org/wiki/show/View nder "Map tooltip". >>> >> > >>> >> > Peppe >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > ------------------------------------------------------------------------------ >>> >> > This SF.net email is sponsored by: >>> >> > High Quality Requirements in a Collaborative Environment. >>> >> > Download a free trial of Rational Requirements Composer Now! >>> >> > http://p.sf.net/sfu/www-ibm-com >>> >> > _______________________________________________ >>> >> > Jump-pilot-devel mailing list >>> >> > Jump-pilot-devel@lists.sourceforge.net >>> >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >> > >>> >> >>> >> >>> >> >>> >> ------------------------------------------------------------------------------ >>> >> This SF.net email is sponsored by: >>> >> High Quality Requirements in a Collaborative Environment. >>> >> Download a free trial of Rational Requirements Composer Now! >>> >> http://p.sf.net/sfu/www-ibm-com >>> >> _______________________________________________ >>> >> Jump-pilot-devel mailing list >>> >> Jump-pilot-devel@lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> > >>> > >>> > >>> > -- >>> > http://amusingprogrammer.blogspot.com/ >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > This SF.net email is sponsored by: >>> > High Quality Requirements in a Collaborative Environment. >>> > Download a free trial of Rational Requirements Composer Now! >>> > http://p.sf.net/sfu/www-ibm-com >>> > _______________________________________________ >>> > Jump-pilot-devel mailing list >>> > Jump-pilot-devel@lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> > >>> > >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> High Quality Requirements in a Collaborative Environment. >>> Download a free trial of Rational Requirements Composer Now! >>> http://p.sf.net/sfu/www-ibm-com >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> >> -- >> http://amusingprogrammer.blogspot.com/ >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel