|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.vergil.basic.EditorDropTarget.DTListener
private class EditorDropTarget.DTListener
The drop target listener used with the diva graph object.
Field Summary | |
---|---|
private NamedObj |
_highlighted
|
private Figure |
_highlightedFigure
|
private AnimationRenderer |
_highlighter
|
Constructor Summary | |
---|---|
private |
EditorDropTarget.DTListener()
|
Method Summary | |
---|---|
private Figure |
_getFigureUnder(java.awt.geom.Point2D point)
Return the figure that is an icon of a NamedObj and is under the specified point, or null if there is none. |
private NamedObj |
_getObjectUnder(java.awt.geom.Point2D point)
Return the object under the specified point, or null if there is none. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Accept the event if the data is a known key. |
void |
dragExit(java.awt.dnd.DropTargetEvent dtde)
Remove any highlighting that might be active. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
If the location of the event is over an icon for an instance of NamedObj, then highlight that icon. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
If the transferrable object is recognized as a Ptolemy II object, then use the MoML description of the object to create a new instance of the object at the drop location. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Accept the event if the data is a known key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private NamedObj _highlighted
private Figure _highlightedFigure
private AnimationRenderer _highlighter
Constructor Detail |
---|
private EditorDropTarget.DTListener()
Method Detail |
---|
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
dtde
- The drop event.public void dragExit(java.awt.dnd.DropTargetEvent dtde)
dragExit
in interface java.awt.dnd.DropTargetListener
dtde
- The drop event.public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
dtde
- The drop event.public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
dtde
- The drop event.public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
dtde
- The drop event.private Figure _getFigureUnder(java.awt.geom.Point2D point)
point
- The point in the graph pane.
private NamedObj _getObjectUnder(java.awt.geom.Point2D point)
point
- The point in the graph pane.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |