public TimeScaleListener[] getTimeScaleListeners() {
return (TimeScaleListener[]) listenerList.getListeners(TimeScaleListener.class);
}
protected void fireTimeScaleChanged(Object source,int type) {
Object[] listeners = listenerList.getListenerList();
TimeScaleEvent e = null;
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == TimeScaleListener.class) {
if (e == null) {
e = new TimeScaleEvent(source,type);
}
((TimeScaleListener) listeners[i + 1]).timeScaleChanged(e);
}
}
}