org.jfree.util
Class PaintUtilities

java.lang.Object
  extended by org.jfree.util.PaintUtilities

public class PaintUtilities
extends java.lang.Object

Utility code that relates to Paint objects.


Method Summary
static java.lang.String colorToString(java.awt.Color c)
           
static boolean equal(java.awt.Paint p1, java.awt.Paint p2)
          Returns true if the two Paint objects are equal OR both null.
static java.awt.Color stringToColor(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equal

public static boolean equal(java.awt.Paint p1,
                            java.awt.Paint p2)
Returns 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.

colorToString

public static java.lang.String colorToString(java.awt.Color c)

stringToColor

public static java.awt.Color stringToColor(java.lang.String value)