piccolo2d / piccolo2d.java

Structured 2D Graphics Framework
http://piccolo2d.org
Other
51 stars 14 forks source link

PStyledText too closed for extension in derivations #261

Closed mro closed 9 years ago

mro commented 9 years ago

Originally reported on Google Code with ID 261

I needed support for dotted underlines in a PStyledText but wasn't able to add appropriate
functionality. In fact it would have been quite easy to add the functionality in a
derived class if PStyledText were a bit more open for overrides in derivations.

Please consider the attached patch as an improvement. It does not change the existing
functionality but just opens it a bit by
- Making some methods protected instead of private
- Separating some code blocks in protected template methods
- Adding getters to inner classes
- Encapsulating the construction of SegmentInfo in a method to allow derived classes
providing an extended type instead

Reported by jlessner@gmx.de on 2014-12-29 19:37:02


mro commented 9 years ago

Reported by heuermh on 2014-12-29 21:44:06

mro commented 9 years ago

Reported by heuermh on 2014-12-29 23:39:38

mro commented 9 years ago
Patch applied in revision 1273, thanks!

Please review and if looks ok, mark as Status: Verified

Reported by heuermh on 2014-12-30 03:46:33