From: Christoph F. <cf...@fo...> - 2004-10-14 09:56:17
|
Hi Conal Am Do, den 14.10.2004 schrieb Conal Tuohy um 4:05: > I've got another little quibble with the UI of TMNav. I'd like to set > the font for the topic objects in the TouchGraph rendering. At the > moment on my system it appears as a fixed-width font and so long > pieces of text (e.g. subject indicators) are too long, and get > truncated. :-( > > It looks like the TMOTouchgraphNode is responsible, and I think by > implementing a getFont method or similar I could specify the font. I > think the font itself should be taken from > org.tm4j.tmnav.envTMAppearance, which already specifies a few fonts, > namely: > > "plainFont" which is returned by the getListFont() method, > "boldFont" which appears to be unused? > "popupMenuFont" which has get/set accessors > > I think "plainFont" would be suitable for TouchGraph nodes. I haven't > written anything just yet, but does this sound reasonable? > Basically, I think, there should be a default font, that is used tmnav-wide every time a font is needed and no font is specified in a more narrow context. This font should be accessible through a new method TMAppearance.getDefaultFont() and should be configurable in .tmnav/tmnav-defaults.xml just as the font used for popup menues already is. If this sounds reasonable, I would be able to implement it in the next development release which should be published sometimes in the next two weaks. If this takes too long for you, and you want to make a quick change by yourself, I would suggest to call setFont(the _Font_you_want_to_use)-Method in TMOTouchgraphNode(String, String). This would set the font of com.touchgraph.graphlayout.Node which is used for rendering the labels in the TouchgraphRenderer. Is this passable for you? c > Con > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Tm4j-developers mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-developers -- Christoph Froehlich <cf...@fo...> |