com.tensegrity.gui.graphdocument
Interface GraphPanelListener

All Known Implementing Classes:
GraphPanelAdapter, SwingToolBar, SwtToolBar

public interface GraphPanelListener

This class specifies the layout of classes that like to be informed about events that originate from a GraphPanel.

Events that a GraphPanel informs registered listeners about are postAction() and alike.

Version:
$Id: GraphPanelListener.java,v 1.7 2005/02/18 16:30:57 BurkhardWick Exp $
Author:
Stepan Rutz

Method Summary
 void acted(int actID)
          Invoked after each interaction cycle.
 void postAction()
          Invoked when a user interaction has completed on a GraphPanel this instance of GraphPanelListener is registered with.
 void postDropBaseComposite(BaseComposite basecomposite)
          Invoked when a BaseComposite was dragged and dropped onto the GraphPanel this GraphPanelListener.
 void postMouseClick()
          Invoked when a mouse click has completed on a GraphPanel this instance of GraphPanelListener is registered with.
 void preAction()
          Invoked when a user interaction is about to begin on a GraphPanel this instance of GraphPanelListener is registered with.
 

Method Detail

postDropBaseComposite

public void postDropBaseComposite(BaseComposite basecomposite)
Invoked when a BaseComposite was dragged and dropped onto the GraphPanel this GraphPanelListener.

Parameters:
basecomposite - the

preAction

public void preAction()
Invoked when a user interaction is about to begin on a GraphPanel this instance of GraphPanelListener is registered with. the GraphPanel this GraphPanelListener.


acted

public void acted(int actID)
Invoked after each interaction cycle. This method should be used with care, as the operations that are potentially done in this method affect the perceived and actual performance of interaction.

Parameters:
actID - integer id that holds one of the values defined in InteractionConstants that are prefixed with ACT*; The id gives additional info about the type of interaction that actually occured (e.g. whether a composite was manipulated or whether one or many composites were moved.

postAction

public void postAction()
Invoked when a user interaction has completed on a GraphPanel this instance of GraphPanelListener is registered with. the GraphPanel this GraphPanelListener.


postMouseClick

public void postMouseClick()
Invoked when a mouse click has completed on a GraphPanel this instance of GraphPanelListener is registered with.



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.