How to draw absolutely custom shape in Java?
问题 The most complex shape, supported by Java2D API is a Bezier segment. Suppose I want to draw rational segment (each control point has a weight and the entire rendering formula is slightly different). How to accomplish that? Is it possible to extend rendering engine to be able to draw more complex shapes? UPDATE Usual way to implement custom shape is implementing Shape interface. This interface has key methods to return PathIterator while PathIterator iterates over segment types. There are only