org.grinvin.gui.dnd

Class FactoryDropHandler

Implemented Interfaces:
DropHandler

public class FactoryDropHandler
extends AbstractDropHandler

Allows a factory to be dropped onto a component. As a result, the user is asked to present parameters and a new graph is created and added to the component.

A component which uses this handler should be of type HasGraphList.

Method Summary

boolean
acceptDrop(JComponent target, Object object, int seqNr)
static FactoryDropHandler
getInstance()

Methods inherited from class org.grinvin.gui.dnd.AbstractDropHandler

allowsMultipleDrops, getDropClass

Method Details

acceptDrop

public boolean acceptDrop(JComponent target,
                          Object object,
                          int seqNr)

getInstance

public static FactoryDropHandler getInstance()