Class RadialGradientPaintKey
java.lang.Object
com.orsonpdf.util.RadialGradientPaintKey
A wrapper for a
RadialGradientPaint that can be used as the key
for a HashMap. This class is used internally by
PDFGraphics2D to track and re-use gradient definitions.
RadialGradientPaint itself does not implement the equals()
and hashCode() methods, so it doesn't make a good key for a
Map.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
paint
-
f
float f
-
-
Constructor Details
-
RadialGradientPaintKey
Creates a new key instance.- Parameters:
rgp- the radial gradient paint (nullnot permitted).
-
-
Method Details
-
getPaint
Returns theRadialGradientPaintthat was supplied to the constructor.- Returns:
- The
RadialGradientPaint(nevernull).
-
equals
-
hashCode
-