Issue 261 in piccolo2d: PStyledText too closed for extension in derivations

1 view
Skip to first unread message

picc...@googlecode.com

unread,
Dec 29, 2014, 2:37:11 PM12/29/14
to piccol...@googlegroups.com
Status: New
Owner: ----

New issue 261 by jless...@gmx.de: PStyledText too closed for extension in
derivations
https://code.google.com/p/piccolo2d/issues/detail?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


Attachments:
PStyledText.java.patch 5.5 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

picc...@googlecode.com

unread,
Dec 29, 2014, 4:44:44 PM12/29/14
to piccol...@googlegroups.com
Updates:
Status: Accepted
Owner: heue...@gmail.com
Labels: Type-Enhancement Priority-High Effort-Medium OpSys-All
Toolkit-Piccolo2D.Java Component-Extras

Comment #1 on issue 261 by heue...@gmail.com: PStyledText too closed for
(No comment was entered for this change.)

picc...@googlecode.com

unread,
Dec 29, 2014, 10:46:36 PM12/29/14
to piccol...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 261 by heue...@gmail.com: PStyledText too closed for
Patch applied in revision 1273, thanks!

Please review and if looks ok, mark as Status: Verified
Reply all
Reply to author
Forward
0 new messages