org.objectweb.fractal.gui.graph.view
Class GraphViewNotifier

java.lang.Object
  extended byorg.objectweb.fractal.gui.graph.view.GraphViewNotifier
All Implemented Interfaces:
BindingController, GraphViewListener

public class GraphViewNotifier
extends Object
implements GraphViewListener, BindingController

A GraphViewListener that notifies other GraphViewListeners.


Field Summary
static String GRAPH_VIEW_LISTENERS_BINDING
          A collection client interface bound to the listeners of this component.
 
Constructor Summary
GraphViewNotifier()
          Constructs a new GraphViewNotifier component.
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
          Binds the client interface whose name is given to a server interface.
 String[] listFc()
          Returns the names of the client interfaces of the component to which this interface belongs.
 Object lookupFc(String clientItfName)
          Returns the interface to which the given client interface is bound.
 void mouseClicked(MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has been clicked.
 void mouseDragged(MouseEvent e)
          Notifies this listener that the mouse has been dragged in the graph view.
 void mouseEntered(MouseEvent e)
          Notifies this listener that the mouse has entered the graph view.
 void mouseExited(MouseEvent e)
          Notifies this listener that the mouse has exited the graph view.
 void mouseMoved(MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has mouved in the graph view.
 void mousePressed(MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has been pressed.
 void mouseReleased(MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has been released.
 void unbindFc(String clientItfName)
          Unbinds the given client interface.
 void viewChanged()
          Notifies this listener that the model represented by the view has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRAPH_VIEW_LISTENERS_BINDING

public static final String GRAPH_VIEW_LISTENERS_BINDING
A collection client interface bound to the listeners of this component.

See Also:
Constant Field Values
Constructor Detail

GraphViewNotifier

public GraphViewNotifier()
Constructs a new GraphViewNotifier component.

Method Detail

listFc

public String[] listFc()
Description copied from interface: BindingController
Returns the names of the client interfaces of the component to which this interface belongs.

Specified by:
listFc in interface BindingController
Returns:
the names of the client interfaces of the component to which this interface belongs.

lookupFc

public Object lookupFc(String clientItfName)
Description copied from interface: BindingController
Returns the interface to which the given client interface is bound. More precisely, returns the server interface to which the client interface whose name is given is bound. This server interface is necessarily in the same address space as the client interface (see bindFc).

Specified by:
lookupFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
Returns:
the server interface to which the given interface is bound, or null if it is not bound.

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
Description copied from interface: BindingController
Binds the client interface whose name is given to a server interface. More precisely, binds the client interface of the component to which this interface belongs, and whose name is equal to the given name, to the given server interface. The given server interface must be in the same address space as the client interface.

Specified by:
bindFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
serverItf - a server interface.

unbindFc

public void unbindFc(String clientItfName)
Description copied from interface: BindingController
Unbinds the given client interface. More precisely, unbinds the client interface of the component to which this interface belongs, and whose name is equal to the given name.

Specified by:
unbindFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.

viewChanged

public void viewChanged()
Description copied from interface: GraphViewListener
Notifies this listener that the model represented by the view has changed.

Specified by:
viewChanged in interface GraphViewListener

mousePressed

public void mousePressed(MouseEvent e,
                         ComponentPart p)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has been pressed.

Specified by:
mousePressed in interface GraphViewListener
Parameters:
e - a mouse pressed mouse event.
p - the component part corresponding to the event's coordinates.

mouseReleased

public void mouseReleased(MouseEvent e,
                          ComponentPart p)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has been released.

Specified by:
mouseReleased in interface GraphViewListener
Parameters:
e - a mouse released mouse event.
p - the component part corresponding to the event's coordinates.

mouseClicked

public void mouseClicked(MouseEvent e,
                         ComponentPart p)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has been clicked.

Specified by:
mouseClicked in interface GraphViewListener
Parameters:
e - a mouse clicke mouse event.
p - the component part corresponding to the event's coordinates.

mouseEntered

public void mouseEntered(MouseEvent e)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has entered the graph view.

Specified by:
mouseEntered in interface GraphViewListener
Parameters:
e - a mouse entered mouse event.

mouseExited

public void mouseExited(MouseEvent e)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has exited the graph view.

Specified by:
mouseExited in interface GraphViewListener
Parameters:
e - a mouse exited mouse event.

mouseDragged

public void mouseDragged(MouseEvent e)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has been dragged in the graph view.

Specified by:
mouseDragged in interface GraphViewListener
Parameters:
e - a mouse dragged mouse event.

mouseMoved

public void mouseMoved(MouseEvent e,
                       ComponentPart p)
Description copied from interface: GraphViewListener
Notifies this listener that the mouse has mouved in the graph view.

Specified by:
mouseMoved in interface GraphViewListener
Parameters:
e - a mouse moved mouse event.
p - the component part corresponding to the event's coordinates.