DESY ACOP Beans Home

de.desy.acop.displayers.tools
Class GraphParametersTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.cosylab.gui.components.util.CosyTransferHandler
          extended by com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
              extended by de.desy.acop.displayers.tools.AbstractMDPTransferHandler
                  extended by de.desy.acop.displayers.tools.GraphParametersTransferHandler
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.awt.event.MouseMotionListener, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
AcopChartTransferHandler

public abstract class GraphParametersTransferHandler
extends AbstractMDPTransferHandler

GraphParametersTransferHandler is an extension of TransferHandler which can handle AcopGraphParameters

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
AcopGraphParameters, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.cosylab.gui.components.util.CosyTransferHandler
CosyTransferHandler.MouseFilter
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
 
Fields inherited from class com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
dialog, displayer, flavors
 
Fields inherited from class com.cosylab.gui.components.util.CosyTransferHandler
isDragging
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
GraphParametersTransferHandler(javax.swing.JComponent comp, boolean reciveEnabled, boolean exportEnabled, java.awt.datatransfer.DataFlavor[] f, boolean resetFlavors)
          Constructs new GraphParametersTransferHandler.
 
Method Summary
protected  DisplayerParameters[] castParameters(java.lang.Object... parameters)
           
protected  AcopDisplayerParameters convertParameters(AcopDisplayerParameters adp)
           
protected  AcopDisplayerParameters convertParameters(AcopGraphParameters agp)
          Override to provide conversion from AcopGraphParameters to higher level parameters.
protected  AcopDisplayerParameters convertParameters(ConnectionParameters adp)
           
protected abstract  AcopDisplayerParameters[] exportMultipleDisplayerParameters()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
           
protected  boolean importString(java.lang.String string)
           
 
Methods inherited from class de.desy.acop.displayers.tools.AbstractMDPTransferHandler
exportDisplayerParameters, importDisplayerParameters
 
Methods inherited from class com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
canImport, getComponent, getParameterSelectionDialog, getTransferDataFlavors, selectParameters, selectParameters, setParametersToDisplayer
 
Methods inherited from class com.cosylab.gui.components.util.CosyTransferHandler
addMouseFilter, canDrag, createTransferable, exportDone, getMouseFilters, getSourceActions, hookTransferHandler, hookTransferHandler, isDataFlavorSupported, isExportEnabled, isMouseDragGesture, isReceiveEnabled, mouseDragged, mouseMoved, registerTransferHandler, removeMouseFilter, setExportEnabled, setReceiveEnabled, unhookTransferHandler
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphParametersTransferHandler

public GraphParametersTransferHandler(javax.swing.JComponent comp,
                                      boolean reciveEnabled,
                                      boolean exportEnabled,
                                      java.awt.datatransfer.DataFlavor[] f,
                                      boolean resetFlavors)
Constructs new GraphParametersTransferHandler.

Parameters:
comp -
reciveEnabled -
exportEnabled -
f -
resetFlavors -
See Also:
AbstractMDPTransferHandler.AbstractMDPTransferHandler(JComponent, boolean, boolean, DataFlavor[], boolean)
Method Detail

importString

protected boolean importString(java.lang.String string)
                        throws java.beans.PropertyVetoException
Overrides:
importString in class AbstractMDPTransferHandler
Throws:
java.beans.PropertyVetoException

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Overrides:
getTransferData in class AbstractMDPTransferHandler
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

convertParameters

protected AcopDisplayerParameters convertParameters(AcopDisplayerParameters adp)
Overrides:
convertParameters in class AbstractMDPTransferHandler

convertParameters

protected AcopDisplayerParameters convertParameters(ConnectionParameters adp)
Overrides:
convertParameters in class AbstractMDPTransferHandler

convertParameters

protected AcopDisplayerParameters convertParameters(AcopGraphParameters agp)
Override to provide conversion from AcopGraphParameters to higher level parameters.

Parameters:
agp -
Returns:

castParameters

protected DisplayerParameters[] castParameters(java.lang.Object... parameters)
Overrides:
castParameters in class AbstractMDPTransferHandler

importData

public boolean importData(javax.swing.JComponent comp,
                          java.awt.datatransfer.Transferable t)
Overrides:
importData in class AbstractMDPTransferHandler

exportMultipleDisplayerParameters

protected abstract AcopDisplayerParameters[] exportMultipleDisplayerParameters()
Specified by:
exportMultipleDisplayerParameters in class AbstractMDPTransferHandler


Copyright © 2010. All Rights Reserved.