|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.graphics2d.RadialGradientPaintKey
public class 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.
| Constructor Summary | |
|---|---|
RadialGradientPaintKey(RadialGradientPaint rgp)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object. |
RadialGradientPaint |
getPaint()
Returns the RadialGradientPaint that was supplied to the
constructor. |
int |
hashCode()
Returns a hash code for this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RadialGradientPaintKey(RadialGradientPaint rgp)
rgp - the radial gradient paint (null not permitted).| Method Detail |
|---|
public RadialGradientPaint getPaint()
RadialGradientPaint that was supplied to the
constructor.
RadialGradientPaint (never null).public boolean equals(Object obj)
equals in class Objectobj - the object to test (null permitted).
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||