org.jfree.util
public class PaintUtilities extends Object
Paint
objects.
Method Summary | |
---|---|
static String | colorToString(Color c)
Converts a color into a string. |
static boolean | equal(Paint p1, Paint p2)
Returns true if the two Paint objects are equal
OR both null . |
static Color | stringToColor(String value)
Converts a given string into a color.
|
Parameters: c the color.
Returns: the string for this color.
true
if the two Paint
objects are equal
OR both null
. This method handles
GradientPaint
as a special case.
Parameters: p1 paint 1 (null
permitted). p2 paint 2 (null
permitted).
Returns: A boolean.
Parameters: value the string, either a name or a hex-string.
Returns: the color.