Class GradientPaintKey
java.lang.Object
com.orsonpdf.util.GradientPaintKey
A wrapper for a
GradientPaint that can be used as the key for
a HashMap. This class is used internally by
PDFGraphics2D to track and re-use gradient definitions.
GradientPaint 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
ConstructorsConstructorDescriptionGradientPaintKey(GradientPaint paint) Creates a new instance based on the specifiedpaint. -
Method Summary
-
Field Details
-
paint
-
-
Constructor Details
-
GradientPaintKey
Creates a new instance based on the specifiedpaint.- Parameters:
paint- the paint (nullnot permitted).
-
-
Method Details
-
getPaint
Returns theGradientPaintthat was supplied to the constructor.- Returns:
- The
GradientPaint(nevernull).
-
equals
-
hashCode
-