public class PaintUtils extends Object
Paint
objects.Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean equal(Paint p1, Paint p2)
true
if the two Paint
objects are equal
OR both null
. This method handles
GradientPaint
, LinearGradientPaint
and
RadialGradientPaint
as a special cases, since those classes do
not override the equals()
method.p1
- paint 1 (null
permitted).p2
- paint 2 (null
permitted).public static String colorToString(Color c)
c
- the color.Copyright © 2001–2017 JFree.org. All rights reserved.