Skip navigation links
JNA API 4.4.0
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:
        dragSource - source of the drag
        icon - image to be drawn
        initialScreenLoc - initial screen location of the image
        cursorOffset - offset of the cursor from the image origin
    • Method Detail

      • setAlpha

        public void setAlpha(float alpha)
        Set the transparency of the ghosted image.
        Parameters:
        alpha - transparency level
      • 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 4.4.0

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