|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.gui.interaction.BasicDropRegion
org.openbp.jaspira.gui.interaction.BasicDragReactor
public class BasicDragReactor
A drop region that delays drag enter events to the drop client.
This prevents flickering of e. g. plugin containers while a plugin is dragged over it.
The delay time can be specified in the constructor. After timer expiration, the
InteractionClient.dragActionTriggered(java.lang.Object, java.awt.Point) method of the parent of this drop region is called.
| Field Summary |
|---|
| Fields inherited from class org.openbp.jaspira.gui.interaction.BasicDropRegion |
|---|
id, origin, parent, toolTipText |
| Fields inherited from interface org.openbp.jaspira.gui.interaction.DragAwareRegion |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Constructor Summary | |
|---|---|
BasicDragReactor(java.lang.Object id,
InteractionClient parent,
java.awt.Component source,
long delay)
Constructor. |
|
BasicDragReactor(java.lang.Object id,
InteractionClient parent,
java.awt.geom.RectangularShape shape,
java.awt.Component origin,
long delay)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canImport()
BasicDropRegion objects can always import. |
boolean |
dragEnter()
The mouse enters the drop region while in a dragging action. |
boolean |
dragExit()
The mouse exits the drop region while in a dragging action. |
boolean |
importData(java.awt.datatransfer.Transferable data,
java.awt.Point p)
Import will be performed by the parent itself, so we do nothing here |
| Methods inherited from class org.openbp.jaspira.gui.interaction.BasicDropRegion |
|---|
draw, getBounds, getCursor, getFrameColor, getId, getOrigin, getOverlay, getPaint, getParent, getShape, getStroke, getToolTipText, reactsOn, setCursor, setFrameColor, setId, setOrigin, setOverlay, setPaint, setParent, setShape, setStroke, setToolTipText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicDragReactor(java.lang.Object id,
InteractionClient parent,
java.awt.geom.RectangularShape shape,
java.awt.Component origin,
long delay)
delay - Delay in milliseconds
public BasicDragReactor(java.lang.Object id,
InteractionClient parent,
java.awt.Component source,
long delay)
delay - Delay in milliseconds| Method Detail |
|---|
public boolean canImport()
BasicDropRegion
canImport in interface DragAwareRegioncanImport in class BasicDropRegionpublic boolean dragEnter()
dragEnter in interface DragAwareRegiondragEnter in class BasicDropRegionpublic boolean dragExit()
dragExit in interface DragAwareRegiondragExit in class BasicDropRegion
public boolean importData(java.awt.datatransfer.Transferable data,
java.awt.Point p)
importData in interface DragAwareRegionimportData in class BasicDropRegiondata - Data to importp - Current mouse position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||