新聞中心
DragInfo

成都創(chuàng)新互聯(lián)是一家專注于成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)與策劃設(shè)計,余姚網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:余姚等地區(qū)。余姚做網(wǎng)站價格咨詢:13518219792
java.lang.Object
|---ohos.agp.components.DragInfo
public class DragInfo
extends Object存儲識別的拖動手勢的數(shù)據(jù)。
此類存儲特定于已識別的拖動手勢的數(shù)據(jù),并通過回調(diào)函數(shù)返回數(shù)據(jù)。
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| Point | downPoint | 表示手指觸摸屏幕位置的坐標。 |
| Point | startPoint | 指示手指開始拖動的位置的坐標。 |
| Point | updatePoint | 指示手指拖動時更新位置的坐標。 |
| double | xOffset | 表示水平偏移。 |
| double | xVelocity | 表示水平拖動的速度,以像素/秒為單位。 |
| double | yOffset | 表示垂直偏移。 |
| double | yVelocity | 表示垂直拖動的速度,以像素/秒為單位。 |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| DragInfo(Point downPoint, Point startPoint, Point updatePoint, double xOffset, double yOffset, double xVelocity, double yVelocity) | 創(chuàng)建拖動手勢的信息。 |
方法總結(jié)
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段詳細信息
downPoint
public final Point downPoint
表示手指觸摸屏幕位置的坐標。
startPoint
public final Point startPoint
指示手指開始拖動的位置的坐標。
一旦識別出拖動手勢,則將手指按下的位置視為起點。
updatePoint
public final Point updatePoint
指示手指拖動時更新位置的坐標。 一旦觸發(fā)拖動事件,則將拖動過程中手指的當前位置視為更新位置。
xOffset
public final double xOffset
表示水平偏移。
與之前的水平拖動相比,獲得了水平偏移。
xVelocity
public final double xVelocity
表示水平拖動的速度,以像素/秒為單位。
yOffset
public final double yOffset
表示垂直偏移。
與之前的垂直拖動相比,得到垂直偏移量。
yVelocity
public final double yVelocity
表示垂直拖動的速度,以像素/秒為單位。
構(gòu)造函數(shù)詳細信息
DragInfo
public DragInfo(Point downPoint, Point startPoint, Point updatePoint, double xOffset, double yOffset, double xVelocity, double yVelocity)
創(chuàng)建拖動手勢的信息。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| downPoint | 表示手指觸摸屏幕位置的坐標。 |
| startPoint | 指示手指開始拖動的位置的坐標。 |
| updatePoint | 指示手指拖動時更新位置的坐標。 |
| xOffset | 表示水平偏移,以像素為單位。 |
| yOffset | 表示垂直偏移,以像素為單位。 |
| xVelocity | 表示水平速度,以像素/秒為單位。 |
| yVelocity | 表示垂直速度,以像素/秒為單位。 |
網(wǎng)頁題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSDragInfo
URL分享:http://m.fisionsoft.com.cn/article/ccedihi.html


咨詢
建站咨詢
