本文整理汇总了Java中org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent类的典型用法代码示例。如果您正苦于以下问题:Java JMVCommandEvent类的具体用法?Java JMVCommandEvent怎么用?Java JMVCommandEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JMVCommandEvent类属于org.openstreetmap.gui.jmapviewer.events包,在下文中一共展示了JMVCommandEvent类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
@Override
public void processCommand(JMVCommandEvent command) {
if (command.getCommand().equals(JMVCommandEvent.COMMAND.ZOOM) ||
command.getCommand().equals(JMVCommandEvent.COMMAND.MOVE)) {
updateZoomParameters();
}
}
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:8,代码来源:Demo.java
示例2: setZoom
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
/**
* Set the zoom level and center point for display
*
* @param zoom new zoom level
* @param mapPoint point to choose as center for new zoom level
*/
public void setZoom(int zoom, Point mapPoint) {
if (zoom > tileController.getTileSource().getMaxZoom() || zoom < tileController.getTileSource().getMinZoom()
|| zoom == this.zoom)
return;
ICoordinate zoomPos = getPosition(mapPoint);
tileController.cancelOutstandingJobs(); // Clearing outstanding load
// requests
setDisplayPosition(mapPoint, zoomPos, zoom);
this.fireJMVEvent(new JMVCommandEvent(COMMAND.ZOOM, this));
}
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:18,代码来源:JMapViewer.java
示例3: fireJMVEvent
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的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);
}
}
}
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:14,代码来源:JMapViewer.java
示例4: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
@Override
public void processCommand(JMVCommandEvent command) {
if (command.getCommand().equals(JMVCommandEvent.COMMAND.ZOOM) || command.getCommand().equals(JMVCommandEvent.COMMAND.MOVE))
{
}
}
开发者ID:petebrew,项目名称:fhaes,代码行数:9,代码来源:MapPanel.java
示例5: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
@Override
public void processCommand(JMVCommandEvent command) {
if (command.getCommand().equals(JMVCommandEvent.COMMAND.ZOOM)
|| command.getCommand().equals(JMVCommandEvent.COMMAND.MOVE)) {
updateZoomParameters();
}
}
开发者ID:nordpos,项目名称:nordpos,代码行数:8,代码来源:JMarkerEdit.java
示例6: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
@Override
public void processCommand(final JMVCommandEvent command)
{
if(command.getCommand().equals(JMVCommandEvent.COMMAND.ZOOM) ||
command.getCommand().equals(JMVCommandEvent.COMMAND.MOVE))
{
this.updateZoomParameters();
}
}
开发者ID:GitHubRGI,项目名称:swagd,代码行数:10,代码来源:MapViewWindow.java
示例7: setZoom
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
/**
* Set the zoom level and center point for display
*
* @param zoom new zoom level
* @param mapPoint point to choose as center for new zoom level
*/
public void setZoom(int zoom, Point mapPoint) {
if (zoom > tileController.getTileSource().getMaxZoom() || zoom < tileController.getTileSource().getMinZoom()
|| zoom == this.zoom)
return;
Coordinate zoomPos = getPosition(mapPoint);
tileController.cancelOutstandingJobs(); // Clearing outstanding load
// requests
setDisplayPosition(mapPoint, zoomPos, zoom);
this.fireJMVEvent(new JMVCommandEvent(COMMAND.ZOOM, this));
}
开发者ID:ne0fhyk,项目名称:3DRServices,代码行数:18,代码来源:JMapViewer.java
示例8: fireJMVEvent
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的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);
}
}
}
开发者ID:ne0fhyk,项目名称:3DRServices,代码行数:14,代码来源:JMapViewer.java
示例9: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
public void processCommand(JMVCommandEvent command) {
if (command.getCommand().equals(JMVCommandEvent.COMMAND.ZOOM)
|| command.getCommand().equals(JMVCommandEvent.COMMAND.MOVE)) {
updateZoomParameters();
}
}
开发者ID:iwabuchiken,项目名称:freemind_1.0.0_20140624_214725,代码行数:7,代码来源:MapDialog.java
示例10: moveMap
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
/**
* Moves the visible map pane.
*
* @param x
* horizontal movement in pixel.
* @param y
* vertical movement in pixel
*/
public void moveMap(int x, int y) {
tileController.cancelOutstandingJobs(); // Clear outstanding load
center.x += x;
center.y += y;
repaint();
this.fireJMVEvent(new JMVCommandEvent(COMMAND.MOVE, this));
}
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:16,代码来源:JMapViewer.java
示例11: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
void processCommand(JMVCommandEvent command);
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:2,代码来源:JMapViewerEventListener.java
示例12: processCommand
import org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent; //导入依赖的package包/类
public void processCommand(JMVCommandEvent command);
开发者ID:ne0fhyk,项目名称:3DRServices,代码行数:2,代码来源:JMapViewerEventListener.java
注:本文中的org.openstreetmap.gui.jmapviewer.events.JMVCommandEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论