java.lang.Object
org.jfree.svg.util.RadialGradientPaintKey
A wrapper for a
RadialGradientPaint that can be used as the key for a Map (including a HashMap). This class is used internally by SVGGraphics2D 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
FieldsModifier and TypeFieldDescriptionprivate final RadialGradientPaintThe paint this instance is a cache key for.Constructor Summary
ConstructorsMethod Summary
Field Details
paint
The paint this instance is a cache key for.
Constructor Details
RadialGradientPaintKey
Creates a new instance.- Parameters:
rgp- the radial gradient paint (nullnot permitted).
Method Details
getPaint
Returns theRadialGradientPaintthat was supplied to the constructor.- Returns:
- The
RadialGradientPaint(nevernull).
equals
Tests this instance for equality with an arbitrary object.hashCode