point.html
来自「API資料大全」· HTML 代码 · 共 1,126 行 · 第 1/5 页
HTML
1,126 行
<TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#setLocation(java.awt.Point)">setLocation</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Sets the location of the object relative to the parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/accessibility/Accessible.html">Accessible</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getAccessibleAt(java.awt.Point)">getAccessibleAt</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Returns the Accessible child, if one exists, contained at the local coordinate Point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>TextComponent.AccessibleAWTTextComponent.</B><B><A HREF="../../../java/awt/TextComponent.AccessibleAWTTextComponent.html#getIndexAtPoint(java.awt.Point)">getIndexAtPoint</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Given a point in local coordinates, return the zero-based index of the character under that Point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#setLocation(java.awt.Point)">setLocation</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Moves this <code>Rectangle</code> to the specified location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#contains(java.awt.Point)">contains</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Checks whether or not this <code>Rectangle</code> contains the specified <code>Point</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#add(java.awt.Point)">add</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> pt)</CODE><BR> Adds the specified <code>Point</code> to this <code>Rectangle</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Point.html">Point</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/Point.html#Point(java.awt.Point)">Point</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Constructs and initializes a point with the same location as the specified <code>Point</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/Rectangle.html#Rectangle(java.awt.Point, java.awt.Dimension)">Rectangle</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p, <A HREF="../../../java/awt/Dimension.html">Dimension</A> d)</CODE><BR> Constructs a new <code>Rectangle</code> whose top-left corner is specified by the <A HREF="../../../java/awt/Point.html"><CODE>Point</CODE></A> argument, and whose width and height are specified by the <A HREF="../../../java/awt/Dimension.html"><CODE>Dimension</CODE></A> argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/Rectangle.html#Rectangle(java.awt.Point)">Rectangle</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Constructs a new <code>Rectangle</code> whose top-left corner is the specified <code>Point</code>, and whose width and height are both zero.</TD></TR></TABLE> <P><A NAME="java.awt.dnd"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Point.html">Point</A> in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> that return <A HREF="../../../java/awt/Point.html">Point</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Point.html">Point</A></CODE></FONT></TD><TD><CODE><B>DropTargetDropEvent.</B><B><A HREF="../../../java/awt/dnd/DropTargetDropEvent.html#getLocation()">getLocation</A></B>()</CODE><BR> This method returns a <code>Point</code> indicating the <code>Cursor</code>'s current location in the <code>Component</code>'s coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Point.html">Point</A></CODE></FONT></TD><TD><CODE><B>DragGestureEvent.</B><B><A HREF="../../../java/awt/dnd/DragGestureEvent.html#getDragOrigin()">getDragOrigin</A></B>()</CODE><BR> This method returns a <code>Point</code> in the coordinates of the <code>Component</code> over which the drag originated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Point.html">Point</A></CODE></FONT></TD><TD><CODE><B>DropTargetDragEvent.</B><B><A HREF="../../../java/awt/dnd/DropTargetDragEvent.html#getLocation()">getLocation</A></B>()</CODE><BR> This method returns a <code>Point</code> indicating the <code>Cursor</code>'s current location within the <code>Component'</code>s coordinates.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> with parameters of type <A HREF="../../../java/awt/Point.html">Point</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>DragGestureRecognizer.</B><B><A HREF="../../../java/awt/dnd/DragGestureRecognizer.html#fireDragGestureRecognized(int, java.awt.Point)">fireDragGestureRecognized</A></B>(int dragAction, <A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Notify the DragGestureListener that a Drag and Drop initiating gesture has occurred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#startDrag(java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener, java.awt.datatransfer.FlavorMap)">startDrag</A></B>(<A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> trigger, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> imageOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> transferable, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl, <A HREF="../../../java/awt/datatransfer/FlavorMap.html">FlavorMap</A> flavorMap)</CODE><BR> Start a drag, given the <code>DragGestureEvent</code> that initiated the drag, the initial <code>Cursor</code> to use, the <code>Image</code> to drag, the offset of the <code>Image</code> origin from the hotspot of the <code>Cursor</code> at the instant of the trigger, the <code>Transferable</code> subject data of the drag, the <code>DragSourceListener</code>, and the <code>FlavorMap</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#startDrag(java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">startDrag</A></B>(<A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> trigger, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> dragOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> transferable, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Start a drag, given the <code>DragGestureEvent</code> that initiated the drag, the initial <code>Cursor</code> to use, the <code>Image</code> to drag, the offset of the <code>Image</code> origin from the hotspot of the <code>Cursor</code> at the instant of the trigger, the subject data of the drag, and the <code>DragSourceListener</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/dnd/DragSourceContext.html">DragSourceContext</A></CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer, java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">createDragSourceContext</A></B>(java.awt.dnd.peer.DragSourceContextPeer dscp, <A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> dgl, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> imageOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> t, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Create the <code>DragSourceContext</code> to handle this drag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragGestureEvent.</B><B><A HREF="../../../java/awt/dnd/DragGestureEvent.html#startDrag(java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">startDrag</A></B>(<A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> imageOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> transferable, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Start the drag given the initial <code>Cursor</code> to display, a drag <code>Image</code>, the offset of the <code>Image</code>, the <code>Transferable</code> object, and the <code>DragSourceListener</code> to use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/dnd/DropTarget.DropTargetAutoScroller.html">DropTarget.DropTargetAutoScroller</A></CODE></FONT></TD><TD><CODE><B>DropTarget.</B><B><A HREF="../../../java/awt/dnd/DropTarget.html#createDropTargetAutoScroller(java.awt.Component, java.awt.Point)">createDropTargetAutoScroller</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Point.html">Point</A> p)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?