viewerdragedevent.java

来自「geotools的源码」· Java 代码 · 共 34 行

JAVA
34
字号
package uk.ac.leeds.ccg.geotools;

import java.util.*;
/**
 * ViewerDragedEvent, thrown when a user clicks on a Viewer.
 * @since 0.7.7.2 2 June 2000
 * @author James Macgill
 */
public class ViewerDragedEvent extends ViewerEvent
{
    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 ViewerDragedEvent(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 + =
减小字号Ctrl + -
显示快捷键?