|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.businessobjects.crystalreports.designer.sdk.util.DNDHelper
public final class DNDHelper
This class provides utility methods for dragging and dropping objects on to Crystal Reports pages. Use the methods in this class to locate the editor and the report section at the screen location where an object is dropped.
Method Summary | |
---|---|
static ICrystalReportsEditor |
getCrystalReportsEditorAtScreenLocation(int x,
int y)
Locates the Crystal Reports editor at the screen location defined by the x and y coordinates. |
static ISection |
getDropTargetSection(ICrystalReportsEditorPage page,
Point location)
Returns the section of a report that is at the given location. |
static void |
translateToLocation(ICrystalReportsEditorPage page,
Point loc)
Calculates the canvas location of the drop. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ICrystalReportsEditor getCrystalReportsEditorAtScreenLocation(int x, int y)
x
and y
coordinates.
Use this method to determine which Crystal Reports editor an object was dropped on.
The x
and y
coordinates are relative to the display.
x
- the x
coordinate of the screen locationy
- the y
coordinate of the screen location
ICrystalReportsEditor
object representing the editor at the
screen location, or null
if there is no Crystal Reports editor at the screen locationpublic static final ISection getDropTargetSection(ICrystalReportsEditorPage page, Point location)
page
- the page that the object was dropped onlocation
- the location of the drop as defined by the drop event
null
if the section cannot be determinedICrystalReportsEditor.getActiveEditorPage()
public static final void translateToLocation(ICrystalReportsEditorPage page, Point loc)
loc
parameter.
page
- the page that the object was dropped onloc
- the location of the drop as defined by the drop eventICrystalReportsEditor.getActiveEditorPage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |