This discussion is archived
2 Replies Latest reply: Oct 11, 2011 8:19 PM by 893663 RSS

PathGradient in Java, porting from .net, path gradient

893663 Newbie
Currently Being Moderated
Hi everyone.

I am porting an application from .NET to Java
There is a class PathGradientBrush in .NET which takes center, colors etc to draw the gradient.

I couldn't find anything similar in Java.
But I have found the RadialGradientPaint and LinearGradientPaint classes.
I guess it won't work in my case if I'd like to have a rectangle instead of circles.

Could you advice me any opensource implementation of PathGradient or something else.

I would highly appreciate any help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points