DESY ACOP Beans Home

de.desy.acop.displayers.tools
Class AcopChartTransferHandler

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
                      extended by de.desy.acop.displayers.tools.AcopChartTransferHandler
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.awt.event.MouseMotionListener, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
AcopChartReorgTransferHandler

public class AcopChartTransferHandler
extends GraphParametersTransferHandler

TransferHandler which operates with MultipleAcopDisplayer that handles with AcopGraphParameters.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
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
AcopChartTransferHandler(MultipleAcopDisplayer<AcopGraphParameters> comp, boolean reciveEnabled, boolean exportEnabled, java.awt.datatransfer.DataFlavor[] f, boolean resetFlavors)
          Constructs a new AcopChartTransferHandler.
 
Method Summary
protected  AcopGraphParameters[] exportMultipleDisplayerParameters()
           
protected  boolean isMouseDragGesture(java.awt.event.MouseEvent e)
           
 boolean setParametersToDisplayer(java.lang.Object disp, DisplayerParameters parameters)
          Sets the supplied parameters to the displayer.
 
Methods inherited from class de.desy.acop.displayers.tools.GraphParametersTransferHandler
castParameters, convertParameters, convertParameters, convertParameters, getTransferData, importData, importString
 
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
 
Methods inherited from class com.cosylab.gui.components.util.CosyTransferHandler
addMouseFilter, canDrag, createTransferable, exportDone, getMouseFilters, getSourceActions, hookTransferHandler, hookTransferHandler, isDataFlavorSupported, isExportEnabled, 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

AcopChartTransferHandler

public AcopChartTransferHandler(MultipleAcopDisplayer<AcopGraphParameters> comp,
                                boolean reciveEnabled,
                                boolean exportEnabled,
                                java.awt.datatransfer.DataFlavor[] f,
                                boolean resetFlavors)
Constructs a new AcopChartTransferHandler.

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

isMouseDragGesture

protected boolean isMouseDragGesture(java.awt.event.MouseEvent e)
Overrides:
isMouseDragGesture in class CosyTransferHandler

exportMultipleDisplayerParameters

protected AcopGraphParameters[] exportMultipleDisplayerParameters()
Specified by:
exportMultipleDisplayerParameters in class GraphParametersTransferHandler

setParametersToDisplayer

public boolean setParametersToDisplayer(java.lang.Object disp,
                                        DisplayerParameters parameters)
                                 throws java.beans.PropertyVetoException
Description copied from class: AbstractDisplayerParametersTransferHandler
Sets the supplied parameters to the displayer.

Overrides:
setParametersToDisplayer in class AbstractDisplayerParametersTransferHandler
Parameters:
disp - destination displayer
parameters - parameters to be set
Returns:
true if successful
Throws:
java.beans.PropertyVetoException - when setting of parameters failed


Copyright © 2010. All Rights Reserved.