Java源码示例:org.jfree.chart.event.AnnotationChangeListener
示例1
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例2
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例3
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例4
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例5
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例6
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例7
/**
* Notifies all registered listeners that the annotation has changed.
*
* @param event contains information about the event that triggered the
* notification.
*
* @see #addChangeListener(AnnotationChangeListener)
* @see #removeChangeListener(AnnotationChangeListener)
*/
protected void notifyListeners(AnnotationChangeEvent event) {
Object[] listeners = this.listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == AnnotationChangeListener.class) {
((AnnotationChangeListener) listeners[i + 1]).annotationChanged(
event);
}
}
}
示例8
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例9
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例10
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
@Override
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}
示例11
/**
* Deregisters an object so that it no longer receives notification of
* changes to the annotation.
*
* @param listener the object to deregister.
*
* @see #addChangeListener(AnnotationChangeListener)
*/
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
this.listenerList.remove(AnnotationChangeListener.class, listener);
}
示例12
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例13
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例14
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
@Override
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}
示例15
/**
* Deregisters an object so that it no longer receives notification of
* changes to the annotation.
*
* @param listener the object to deregister.
*
* @see #addChangeListener(AnnotationChangeListener)
*/
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
this.listenerList.remove(AnnotationChangeListener.class, listener);
}
示例16
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例17
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例18
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
@Override
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}
示例19
/**
* Deregisters an object so that it no longer receives notification of
* changes to the annotation.
*
* @param listener the object to deregister.
*
* @see #addChangeListener(AnnotationChangeListener)
*/
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
this.listenerList.remove(AnnotationChangeListener.class, listener);
}
示例20
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例21
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例22
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
@Override
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}
示例23
/**
* Deregisters an object so that it no longer receives notification of
* changes to the annotation.
*
* @param listener the object to deregister.
*
* @see #addChangeListener(AnnotationChangeListener)
*/
@Override
public void removeChangeListener(AnnotationChangeListener listener) {
this.listenerList.remove(AnnotationChangeListener.class, listener);
}
示例24
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例25
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例26
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}
示例27
/**
* Deregisters an object so that it no longer receives notification of
* changes to the annotation.
*
* @param listener the object to deregister.
*
* @see #addChangeListener(AnnotationChangeListener)
*/
public void removeChangeListener(AnnotationChangeListener listener) {
this.listenerList.remove(AnnotationChangeListener.class, listener);
}
示例28
/**
* Registers an object for notification of changes to the annotation.
*
* @param listener the object to register.
*/
public void addChangeListener(AnnotationChangeListener listener);
示例29
/**
* Deregisters an object for notification of changes to the annotation.
*
* @param listener the object to deregister.
*/
public void removeChangeListener(AnnotationChangeListener listener);
示例30
/**
* Registers an object to receive notification of changes to the
* annotation.
*
* @param listener the object to register.
*
* @see #removeChangeListener(AnnotationChangeListener)
*/
@Override
public void addChangeListener(AnnotationChangeListener listener) {
this.listenerList.add(AnnotationChangeListener.class, listener);
}