|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.annotations.AbstractAnnotation
public abstract class AbstractAnnotation
An abstract implementation of the Annotation interface, containing a
mechanism for registering change listeners.
| Constructor Summary | |
|---|---|
protected |
AbstractAnnotation()
Constructs an annotation. |
| Method Summary | |
|---|---|
void |
addChangeListener(AnnotationChangeListener listener)
Registers an object to receive notification of changes to the annotation. |
Object |
clone()
Returns a clone of the annotation. |
protected void |
fireAnnotationChanged()
Notifies all registered listeners that the annotation has changed. |
boolean |
getNotify()
Returns a flag that indicates whether listeners should be notified about changes to the annotation. |
boolean |
hasListener(EventListener listener)
Returns true if the specified object is registered with
the annotation as a listener. |
protected void |
notifyListeners(AnnotationChangeEvent event)
Notifies all registered listeners that the annotation has changed. |
void |
removeChangeListener(AnnotationChangeListener listener)
Deregisters an object so that it no longer receives notification of changes to the annotation. |
void |
setNotify(boolean flag)
Sets a flag that indicates whether listeners should be notified about changes of an annotation. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAnnotation()
| Method Detail |
|---|
public void addChangeListener(AnnotationChangeListener listener)
addChangeListener in interface Annotationlistener - the object to register.removeChangeListener(AnnotationChangeListener)public void removeChangeListener(AnnotationChangeListener listener)
removeChangeListener in interface Annotationlistener - the object to deregister.addChangeListener(AnnotationChangeListener)public boolean hasListener(EventListener listener)
true if the specified object is registered with
the annotation as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.
listener - the listener.
addChangeListener(AnnotationChangeListener),
removeChangeListener(AnnotationChangeListener)protected void fireAnnotationChanged()
addChangeListener(AnnotationChangeListener)protected void notifyListeners(AnnotationChangeEvent event)
event - contains information about the event that triggered the
notification.addChangeListener(AnnotationChangeListener),
removeChangeListener(AnnotationChangeListener)public boolean getNotify()
setNotify(boolean)public void setNotify(boolean flag)
flag - the flaggetNotify()
public Object clone()
throws CloneNotSupportedException
AnnotationChangeListener references that have been
registered with this annotation.
clone in class ObjectCloneNotSupportedException - if the annotation does not support
cloning.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||