|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.util.PaintUtilities
public class PaintUtilities
Utility code that relates to 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
public static Color stringToColor(String value)
value - the string, either a name or a hex-string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||