I’m a bit confused with simple problem (or too tired for today :))
I have a component which in its paint() method draws some rounded border and also contains child component which should be clipped to that border.
Well, how to clip that child component to specific shape?
I know how to use clipping regions with paths within the same paint() but how it could be done for nested components.
I found a workaround creating simple ImageEffectFilter which do the clip and using setComponentEffect() for that child comp, but I feel there is some simpler solution.
Thanks in advance for suggestions…