se.liu.ida.critiquer.gui
Class AgentSelection

java.lang.Object
  extended by se.liu.ida.critiquer.gui.AgentSelection
All Implemented Interfaces:
Transferable

public class AgentSelection
extends Object
implements Transferable


Field Summary
static DataFlavor agentFlavor
           
static DataFlavor agentParameterFlavor
           
 
Constructor Summary
AgentSelection(Agent agent, AgentParameter param)
           
 
Method Summary
 ImageIcon getPicture()
          Show the image of the agent when dragging
 Object getTransferData(DataFlavor flavor)
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentFlavor

public static DataFlavor agentFlavor

agentParameterFlavor

public static DataFlavor agentParameterFlavor
Constructor Detail

AgentSelection

public AgentSelection(Agent agent,
                      AgentParameter param)
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
                              IOException
Specified by:
getTransferData in interface Transferable
Throws:
UnsupportedFlavorException
IOException

getPicture

public ImageIcon getPicture()
Show the image of the agent when dragging

See Also:
Agent.getPicture()