org.objectweb.fractal.gui.graph.control
Class ZoomTool

java.lang.Object
  extended byorg.objectweb.fractal.gui.graph.control.EmptyGraphViewListener
      extended byorg.objectweb.fractal.gui.graph.control.ZoomTool
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, GraphViewListener

public class ZoomTool
extends EmptyGraphViewListener
implements org.objectweb.fractal.api.control.BindingController

A controller component to zoom in or out a display. This controller component modifies a display model, in reaction to events emited by a graph view.


Field Summary
static java.lang.String DISPLAY_BINDING
          A mandatory client interface bound to a display model.
static java.lang.String TOOLS_BINDING
          A mandatory client interface bound to a tools model.
 
Constructor Summary
ZoomTool()
          Constructs a new ZoomTool component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void mouseClicked(java.awt.event.MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has been clicked.
 void mouseMoved(java.awt.event.MouseEvent e, ComponentPart p)
          Notifies this listener that the mouse has mouved in the graph view.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class org.objectweb.fractal.gui.graph.control.EmptyGraphViewListener
mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, viewChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLS_BINDING

public static final java.lang.String TOOLS_BINDING
A mandatory client interface bound to a tools model. This model is used to know if this tool is the currently selected tool or not.

See Also:
Constant Field Values

DISPLAY_BINDING

public static final java.lang.String DISPLAY_BINDING
A mandatory client interface bound to a display model. This model is modified by this controller component when the mouse is clicked.

See Also:
Constant Field Values
Constructor Detail

ZoomTool

public ZoomTool()
Constructs a new ZoomTool component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

mouseClicked

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

Specified by:
mouseClicked in interface GraphViewListener
Overrides:
mouseClicked in class EmptyGraphViewListener

mouseMoved

public void mouseMoved(java.awt.event.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
Overrides:
mouseMoved in class EmptyGraphViewListener