Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.presentations
Class StackDropResult

java.lang.Object
  extended by 
org.eclipse.ui.presentations.StackDropResult

public final class StackDropResult
extends Object

This structure describes a drop event that will cause a dragged part to be stacked in a position currently occupied by another part.

Since:
3.0

Constructor Summary
StackDropResult ( Rectangle snapRectangle, Object cookie)
          Creates a drop result
 
Method Summary
  Object getCookie ()
          Returns the cookie for this drop result.
  Rectangle getSnapRectangle ()
          Returns a rectangle (screen coordinates) describing the target location for this drop operation.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackDropResult

public StackDropResult(
Rectangle snapRectangle,
                       
Object cookie)
Creates a drop result

Parameters:
snapRectangle - region that should be highlighted by the tracking rectangle (display coordinates)
cookie - the presentation may attach an object to this drop result in order to identify the drop location. This object will be passed back into the presentation's add method.
Method Detail

getSnapRectangle

public 
Rectangle getSnapRectangle()
Returns a rectangle (screen coordinates) describing the target location for this drop operation. While dragging, the tracking rectangle will snap to this position.

Returns:
a snap rectangle (not null)

getCookie

public 
Object getCookie()
Returns the cookie for this drop result. This object provided by the presentation, but is remembered by the workbench. It will be given back to the presentation's add method to indicate that a part is being added as a result of a drop operation.

Returns:
the drop cookie for this drop result

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire