public class KeyedPaint extends java.lang.Object implements java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
JPieChart
class (and possibly
others later).Constructor and Description |
---|
KeyedPaint(java.lang.Comparable key,
java.awt.Paint paint)
Creates a new (key, paint) pair.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a clone of this object.
|
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another.
|
java.lang.Comparable |
getKey()
Returns the key.
|
java.awt.Paint |
getPaint()
Returns the paint.
|
void |
setPaint(java.awt.Paint paint)
Sets the paint.
|
public KeyedPaint(java.lang.Comparable key, java.awt.Paint paint)
key
- the key.paint
- the paint (null
permitted).public java.lang.Comparable getKey()
public java.awt.Paint getPaint()
null
).public void setPaint(java.awt.Paint paint)
paint
- the paint (null
permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PublicCloneable
, otherwise a shallow clone is
made.clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if there is a problem cloning.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object.