Just a little mistake in the text : Pattern Paint is not a subclass of
TexturePaint, and PatternPaintContext is not a subclass of PaintContext.
Hervé Girod
Hervé Girod wrote:
Hello !
Browsing through Batik API, I found that the two classes PatternPaint
and PatternPaintContext aren't subclasses of TexturePaint, which could
be useful to simplify the process of converting SVG Paint content to
other graphic formats :
When using the Paint to create a background Texture for a Shape, it
is easier to know the size of the associated Pattern, which is
provided by PatternPaint, but with a different API from TexturePaint,
thus obliging the user, if he used a Graphics2D to perform the
painting, to be dependant on specific Batik classes, which I feel is
not very good.
Would it be possible to make PatternPaint a subclass of TexturePaint,
and PatternPaintContext a subclass of PaintContext ? It seems yo me,
after looking at the sources, that it would not be difficult, but may
be I forgot something....
Hervé
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]