|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.annotation.AbstractAnnotation
public abstract class AbstractAnnotation
Title: IJChart
A base class for handling the drawing ofIAnnotation
Description: a chart library for the Java(tm) platform.
Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
AbstractAnnotation()
No argument constructor. |
Method Summary | |
---|---|
void |
addChangeListener(IAnnotationChangeListener listener)
Registers an object for notification of changes to the IAnnotation |
void |
annotationChanged(AnnotationChangeEvent event)
Receives notification of an IAnnotation
change event. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates if some other object is "equal to" this one. |
protected void |
fireAnnotationChanged()
Notifies all registered listeners that the annotation has changed. |
java.lang.String |
getTooltipText()
Returns the tooltip text for annotation. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
hasListener(IAnnotationChangeListener listener)
Returns true if the specified object is registered with the IAnnotation as a listener. |
protected void |
notifyListeners(AnnotationChangeEvent event)
Notifies all registered listeners that the annotation has changed. |
void |
removeAllChangeListener()
Deregisters all object for notification of changes to the IAnnotation . |
void |
removeChangeListener(IAnnotationChangeListener listener)
Deregisters an object for notification of changes to the IAnnotation . |
void |
setTooltipText(java.lang.String tooltipText)
Sets the tooltip text for annotation and sends an AnnotationChangeEvent to all registered listeners. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAnnotation()
Method Detail |
---|
public java.lang.String getTooltipText()
public void setTooltipText(java.lang.String tooltipText)
AnnotationChangeEvent
to all registered listeners.
tooltipText
- String
The tooltip text (null permitted)..public void annotationChanged(AnnotationChangeEvent event)
IAnnotation
change event.
annotationChanged
in interface IAnnotationChangeListener
event
-
Information about the event.public void addChangeListener(IAnnotationChangeListener listener)
IAnnotation
listener
-
the object to register.public void removeChangeListener(IAnnotationChangeListener listener)
IAnnotation
.
listener
-
the object to deregister.public void removeAllChangeListener()
IAnnotation
.
public boolean hasListener(IAnnotationChangeListener listener)
IAnnotation
as a listener.
Most applications won't need to call this
method, it exists mainly for use by unit testing code.
listener
-
the listener.
protected void fireAnnotationChanged()
protected void notifyListeners(AnnotationChangeEvent event)
event
-
contains information about the event that triggered the notification.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
the reference object with which to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |