Class PaintUtils
java.lang.Object
org.jfree.chart.util.PaintUtils
Utility code that relates to
Paint objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConverts a color into a string.static booleanReturnstrueif the twoPaintobjects are equal OR bothnull.static ColorstringToColor(String value) Converts a given string into a color.
-
Constructor Details
-
PaintUtils
private PaintUtils()Private constructor prevents object creation.
-
-
Method Details
-
equal
Returnstrueif the twoPaintobjects are equal OR bothnull. This method handlesGradientPaint,LinearGradientPaintandRadialGradientPaintas a special cases, since those classes do not override theequals()method.- Parameters:
p1- paint 1 (nullpermitted).p2- paint 2 (nullpermitted).- Returns:
- A boolean.
-
colorToString
-
stringToColor
-