org.grinvin.graphbrowser

Class InvariantFactoryDropHandler

Implemented Interfaces:
DropHandler

public class InvariantFactoryDropHandler
extends java.lang.Object
implements DropHandler

Allows an invariant factory to be dropped onto objects that support HasInvariantList. After dropping, the user is asked to present parameters for the invariant.

Field Summary

static InvariantFactoryDropHandler
DROP_HANDLER
The unique shared object of this type.

Method Summary

boolean
acceptDrop(JComponent target, Object object, int seqNr)
boolean
allowsMultipleDrops(JComponent target)
Class
getDropClass(JComponent target)

Field Details

DROP_HANDLER

public static final InvariantFactoryDropHandler DROP_HANDLER
The unique shared object of this type.

Method Details

acceptDrop

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

allowsMultipleDrops

public boolean allowsMultipleDrops(JComponent target)

getDropClass

public Class getDropClass(JComponent target)