I need a generic way to convert a CSS property into a Paint object, giving only the CSS indices. So I have a class with two fields (opacity index/index) and a method like that:
public Paint getPaint (SVGGOElement aElement)
{
// Code inspired from Batik's PaintServer.convertFillPaint
Value v = CSSUtilities.getComputedStyle (aElement, itsOpacityIndex);
float opacity = PaintServer.convertOpacity(v);
v = CSSUtilities.getComputedStyle (aElement, itsIndex);


return convertPaint(aElement, aElement.getGraphicsNode(), v, opacity, aElement.getBridgeContext());
}


But as PaintServer.convertPaint is protected I had to copy it into my class. Is there a particular reason why it is protected, or could it be made public without problem?
Guillaume



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to