JNA API 3.5.1
com.sun.jna.platform.dnd

Class GhostedDragImage

    • Constructor Detail

      • GhostedDragImage

        public GhostedDragImage(Component dragSource,
                        Icon icon,
                        Point initialScreenLoc,
                        Point cursorOffset)
        Create a ghosted drag image, using the given icon.
        Parameters:
        icon - image to be drawn
        initialScreenLoc - initial screen location of the image
    • Method Detail

      • setAlpha

        public void setAlpha(float alpha)
        Set the transparency of the ghosted image.
      • dispose

        public void dispose()
        Make all ghosted images go away.
      • move

        public void move(Point screenLocation)
        Move the ghosted image to the requested location.
        Parameters:
        screenLocation - Where to draw the image, in screen coordinates
      • returnToOrigin

        public void returnToOrigin()
        Animate the ghosted image returning to its origin.
JNA API 3.5.1

Copyright © 2007-2012 Timothy Wall. All Rights Reserved.