📄 panevent.java
字号:
// **********************************************************************// // <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 <= x <= 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -