AffineTransform xform,
RenderingHints hints)
{
Point2D xp1 = xform.transform(getPoint1(), null);
Point2D xp2 = xform.transform(getPoint2(), null);
return new GradientPaintContext((float) xp1.getX(), (float) xp1.getY(), c1,
(float) xp2.getX(), (float) xp2.getY(), c2, cyclic);
}