public class PaintUtilities 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 as a special case.p1 - paint 1 (null permitted).p2 - paint 2 (null permitted).public static String colorToString(Color c)
c - the color.Copyright © 2009-2012 jtstand.com. All Rights Reserved.