本文整理汇总了Java中org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener类的典型用法代码示例。如果您正苦于以下问题:Java JMapViewerEventListener类的具体用法?Java JMapViewerEventListener怎么用?Java JMapViewerEventListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JMapViewerEventListener类属于org.openstreetmap.gui.jmapviewer.interfaces包,在下文中一共展示了JMapViewerEventListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fireJMVEvent
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* Send an update to all objects registered with viewer
*
* @param evt event to dispatch
*/
private void fireJMVEvent(JMVCommandEvent evt) {
Object[] listeners = evtListenerList.getListenerList();
for (int i = 0; i < listeners.length; i += 2) {
if (listeners[i] == JMapViewerEventListener.class) {
((JMapViewerEventListener) listeners[i + 1]).processCommand(evt);
}
}
}
示例2: fireJMVEvent
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* Send an update to all objects registered with viewer
*
* @param evt event to dispatch
*/
void fireJMVEvent(JMVCommandEvent evt) {
Object[] listeners = listenerList.getListenerList();
for (int i=0; i<listeners.length; i+=2) {
if (listeners[i]==JMapViewerEventListener.class) {
((JMapViewerEventListener)listeners[i+1]).processCommand(evt);
}
}
}
示例3: addJMVListener
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* @param listener listener to set
*/
public void addJMVListener(JMapViewerEventListener listener) {
evtListenerList.add(JMapViewerEventListener.class, listener);
}
示例4: removeJMVListener
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* @param listener listener to remove
*/
public void removeJMVListener(JMapViewerEventListener listener) {
evtListenerList.remove(JMapViewerEventListener.class, listener);
}
示例5: addJMVListener
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* @param listener listener to set
*/
public void addJMVListener(JMapViewerEventListener listener) {
listenerList.add(JMapViewerEventListener.class, listener);
}
示例6: removeJMVListener
import org.openstreetmap.gui.jmapviewer.interfaces.JMapViewerEventListener; //导入依赖的package包/类
/**
* @param listener listener to remove
*/
public void removeJMVListener(JMapViewerEventListener listener) {
listenerList.remove(JMapViewerEventListener.class, listener);
}