public class GraphDropTarget extends DropTarget
DropTarget.DropTargetAutoScroller
Modifier and Type | Field and Description |
---|---|
HashMap |
_map
A hastable to store the key->figure
mapping.
|
Constructor and Description |
---|
GraphDropTarget(JGraph g)
Construct a new graph target to operate
on the given JGraph.
|
Modifier and Type | Method and Description |
---|---|
void |
addDropKey(String key,
Object val)
Add a key to the drop target so that
when they key is dropped the figure will
be cloned and placed as a node in the
graph.
|
void |
removeDropKey(String key)
Remove a key from the target.
|
addDropTargetListener, addNotify, clearAutoscroll, createDropTargetAutoScroller, createDropTargetContext, dragEnter, dragExit, dragOver, drop, dropActionChanged, getComponent, getDefaultActions, getDropTargetContext, getFlavorMap, initializeAutoscrolling, isActive, removeDropTargetListener, removeNotify, setActive, setComponent, setDefaultActions, setFlavorMap, updateAutoscroll
public HashMap _map
public GraphDropTarget(JGraph g)
public void addDropKey(String key, Object val)
public void removeDropKey(String key)
addDropKey(String,Figure)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.