⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewerclickedevent.java

📁 geotools的源码
💻 JAVA
字号:
package uk.ac.leeds.ccg.geotools;

import java.util.*;
/**
 * ViewerClickedEvent, thrown when a user clicks on a Viewer.
 * @since 0.6.2
 * @author James Macgill
 */
public class ViewerClickedEvent extends java.util.EventObject
{
    private GeoPoint point;

    /**
     * Thrown whenever a user clicks in a Viewer window.
     * 
     * @param source The viewer that generated this event.
     * @param p A GeoPoint for the real world location coresponding to the point that has just been clicked on.
     */
    public ViewerClickedEvent(Object source,GeoPoint p){
        super(source);
        point = p;
    }
    /**
     * Gets the realworld coordinates of the point clicked on to generate this event.
     * 
     * @return A GeoPoint for the source coordinate.
     */
    
    public GeoPoint getLocation(){
        return point;
    }
}
    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -