Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Class java.awt.PointerInfo
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Class PointerInfo

  • java.lang.Object
    • java.awt.PointerInfo
  • public class PointerInfo extends java.lang.Object
    A class that describes the pointer position. It provides the GraphicsDevice where the pointer is and the Point that represents the coordinates of the pointer.

    Instances of this class should be obtained via MouseInfo.getPointerInfo(). The PointerInfo instance is not updated dynamically as the mouse moves. To get the updated location, you must call MouseInfo.getPointerInfo() again.

    Since:
    1.5
    See Also:
    MouseInfo.getPointerInfo()
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator getDevice Reveal DetailHide Detail
      GraphicsDevice getDevice()
      Returns the GraphicsDevice where the mouse pointer was at the moment this PointerInfo was created.
      public GraphicsDevice getDevice()
      Returns the GraphicsDevice where the mouse pointer was at the moment this PointerInfo was created.
      Returns:
      GraphicsDevice corresponding to the pointer
      Since:
      1.5
      Ordinary member indicator getLocation Reveal DetailHide Detail
      Point getLocation()
      Returns the Point that represents the coordinates of the pointer on the screen.
      public Point getLocation()
      Returns the Point that represents the coordinates of the pointer on the screen. See MouseInfo.getPointerInfo() for more information about coordinate calculation for multiscreen systems.
      Returns:
      coordinates of mouse pointer
      Since:
      1.5
      See Also:
      MouseInfo, MouseInfo.getPointerInfo()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge