panevent.java

来自「openmap java写的开源数字地图程序. 用applet实现,可以像g」· Java 代码 · 共 85 行

JAVA
85
字号
// **********************************************************************// // <copyright>// //  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// // </copyright>// **********************************************************************// // $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/event/PanEvent.java,v $// $RCSfile: PanEvent.java,v $// $Revision: 1.2.2.1 $// $Date: 2004/10/14 18:26:46 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.event;/** * An event to request the map to pan. Event designates the direction * and magnitude (relative to map dimensions) to pan the map. */public class PanEvent extends java.util.EventObject {    /**     * Marks the first integer id for the range of pan event     * directions.     */    public static final int PAN_FIRST = 1300;    /**     * Marks the last integer id for the range of pan event     * directions.     */    public static final int PAN_LAST = 1307;    /**     * The possible pan directions     */    public static final int NORTH = 1300;    public static final int NORTH_EAST = 1301;    public static final int EAST = 1302;    public static final int SOUTH_EAST = 1303;    public static final int SOUTH = 1304;    public static final int SOUTH_WEST = 1305;    public static final int WEST = 1306;    public static final int NORTH_WEST = 1307;    protected float Az;    protected float c;    /**     * Create a PanEvent with source Object and direction.     * <p>     *      * @param source Object     * @param direction N, NE, E, SE, S, SW, W, NW     * @deprecated use new panning semantics     */    public PanEvent(Object source, int direction) {        this(source, dir2Az(direction), Float.NaN);    }    /**     * Create a PanEvent with source Object and direction.     * <p>     *      * @param source Object     * @param direction N, NE, E, SE, S, SW, W, NW     * @param amount 0.0 &lt;= x &lt;= 1.0     * @deprecated use new panning semantics     */    public PanEvent(Object source, int direction, float amount) {        this(source, dir2Az(direction), Float.NaN);    }    /**     * Create a PanEvent.     * <ul>     * <li><code>pan(

⌨️ 快捷键说明

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