|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
edu.jhu.ece.iacl.jist.pipeline.tree.DraggableNode
public abstract class DraggableNode
A draggable node is a tree node that the user can drag.
| Field Summary | |
|---|---|
protected PipeModuleFactory |
factory
The factory. |
protected javax.swing.ImageIcon |
icon
The icon. |
static java.awt.datatransfer.DataFlavor |
MODULE_FLAVOR
The Constant MODULE_FLAVOR. |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
DraggableNode()
Default constructor. |
|
DraggableNode(PipeModuleFactory factory)
Default constructor. |
|
| Method Summary | |
|---|---|
PipeModuleFactory |
getFactory()
Get module factory. |
javax.swing.ImageIcon |
getIcon()
Gets the icon. |
java.lang.String |
getName()
Get module name for this node. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df)
implements Transferable interface. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
implements Transferable interface. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Returns true if data flavor is module type. |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.datatransfer.DataFlavor MODULE_FLAVOR
protected PipeModuleFactory factory
protected javax.swing.ImageIcon icon
| Constructor Detail |
|---|
public DraggableNode()
public DraggableNode(PipeModuleFactory factory)
factory - module factory| Method Detail |
|---|
public javax.swing.ImageIcon getIcon()
public PipeModuleFactory getFactory()
public java.lang.String getName()
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
getTransferData in interface java.awt.datatransfer.Transferabledf - the df
java.awt.datatransfer.UnsupportedFlavorException - the unsupported flavor exception
java.io.IOException - Signals that an I/O exception has occurred.public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferablepublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
isDataFlavorSupported in interface java.awt.datatransfer.Transferabledf - the df
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||