Dear SS In my VertexSymbols plugin I have implemented an option to place text labels onto an existing vertex (or perhaps a point/vertex created for the purpose). A layer of labels could thus be created and turned on/off as required. There are various options for locating/formatting the labels relative to its associated vertex.
One thing that I did do is to allow the user to enter HTML formatted text (as raw HTML at the moment). This allows quite complex formatting rules to be applied (color, font, lines, tables, lists etc). You will also note that I have implemented a small plugin to display an editor dialog to allow easier editing of long text strings (rather than using the Attributes dialog) - just for String type attributes. So, as you see, the text is contained within the core attributes tables - I thought this useful and OK for the HTML formatted text. The text display was achieved by using aJEditorPane as a base class to draw the formatted text. To get the text onto the screen/paper I then converted the content of the JEditorPane to an Image that could be rendered by my VertexSymbols renderer. This means that it was not possible to implement live hyperlinks inside the text - this would have been nice. What is perhaps needed to make this approach more useful would be create or obtain a HTML wysiwyg editor to text entry (not such a problem), and then create a suitable rendered in the core that place and scales the text into a map layer keeping the HTML live for hyperlinks that could be included in the text. Such hyperlinks could be used to popup docs or images that are related to the text element. I thought these thoughts might be useful Geoff Sunburned Surveyor wrote: > I started work on support for "free form" or stand-alone text labels > in OpenJUMP over my lunch break today. This will be packages as a > plug-in that allows me to test the pluggable rendering system I just > finished, as well as the plug-in dependency system I was working a > couple of months ago. > > The stand-alone text labels will allow the user to place text > independently of any feature attributes at any location in "model > space". They will be able to specify the font, anchor point location, > and justification. > > I wanted to post briefly about this in case someone was working on > somethign similar. The labels will be stored in a new implementation > of the Layerable interface and will be stored to disk in a text > format, probably some type of XML. > > If I don't run into any major problems I should have the plug-in ready > for a try in two (2) to (3) weeks. > > The Sunburned Surveyor > > We had talked before about a creating a "standard" way to export > Layerables to SVG. I would like to support this with my stand-alone > text labels. If there is still interest in collaborating on this > design, please let me know. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > -- Dr Geoffrey G Roy Cadplan 129 Gloster Street, Subiaco WA 6008 Tel: (08) 9381 4870 Fax: (08) 9382 4459 Email: [EMAIL PROTECTED] http://www.cadplan.com.au ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel