Only problem I see with implementing these kinds of setters (font, color, etc) is that HTML allows for different styling throughout the content. The kinds of styling PText does can be done entirely using HTML markup. I'm not sure it'd be valid to provide those setters since they'd mislead users of the api into believing that the HTML node can only display html with one kind of styling applied.
2009/7/27 Samuel Robert Reid <re...@colorado.edu> > Something that's been bothersome with the proposed implementation of > HTMLNode is the difference in setters between HTMLNode and PText (such as > setting the text color); it would be nice if their interfaces were similar > enough that it's easy to switch back and forth without having to change > calls to setters, etc. Also, we should consider whether there is a > reasonable name that fits better alongside PText, PImage, etc. (though PHTML > sounds awkward). Also, what about putting this in piccolo core? > > Sam Reid > > > Michael Heuer wrote: > > I also agree, please create an issue if one does not already exist. > How does this perform when compared to JLabel via PSwing? > > Font, HTML, and HTMLColor should all be bound properties; in other > words, they should fire property change events. > > michael > > > On Mon, Jul 27, 2009 at 7:20 PM, Samuel Robert Reid<re...@colorado.edu> > <re...@colorado.edu> wrote: > > > I agree this should become part of the extras package; it's > indispensable to my team's projects. Regarding the performance, it is > orders of magnitude slower than using a PText, so in some situations > where I would have preferred HTMLNodes, I've made due with PTexts > instead (where there are many onscreen simultaneously and when smooth > performance is essential). > > Sam Reid > > allain wrote: > > > The code > here:http://groups.google.com/group/piccolo2d-users/browse_thread/thread/25835a96a5d921e7/6cf577a995557268?q=HTMLNode+piccolo#6cf577a995557268 > > Should definitely be considered for inclusion in Extras. For rendering > styled text, it's far better (or at least simpler) then trying to hack > something together with PStyledText and it's very fast since the guys > at sun seem to have optimized the heck out of the HTMLView stuff. > (I'll attest to having over a thousand HTML nodes on screen without > even a hiccup). > > Thoughts? > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Piccolo2D Developers" group. To post to this group, send email to email@example.com To unsubscribe from this group, send email to piccolo2d-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/piccolo2d-dev?hl=en -~----------~----~----~----~------~----~------~--~---