org.objectweb.fractal.gui.graph.model
Class BasicTools

java.lang.Object
  extended byorg.objectweb.fractal.gui.graph.model.BasicTools
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, Tools

public class BasicTools
extends java.lang.Object
implements Tools, org.objectweb.fractal.api.control.BindingController

Basic implementation of the Tools interface.


Field Summary
static java.lang.String TOOLS_LISTENERS_BINDING
          A collection client interface bound to the listeners of this model.
 
Fields inherited from interface org.objectweb.fractal.gui.graph.model.Tools
BIND, MOVE, SELECT, ZOOM_IN, ZOOM_OUT
 
Constructor Summary
BasicTools()
          Constructs a new BasicTools component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 Interface getBindInterface()
          Returns the client interface that will be bound by the Tools.BIND tool.
 int getTool()
          Returns the currently selected tool.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void setBindInterface(Interface i)
          Sets the client interface that will be bound by the Tools.BIND tool.
 void setTool(int tool)
          Sets the currently selected tool.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLS_LISTENERS_BINDING

public static final java.lang.String TOOLS_LISTENERS_BINDING
A collection client interface bound to the listeners of this model.

See Also:
Constant Field Values
Constructor Detail

BasicTools

public BasicTools()
Constructs a new BasicTools 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

getTool

public int getTool()
Description copied from interface: Tools
Returns the currently selected tool.

Specified by:
getTool in interface Tools
Returns:
the currently selected tool.
See Also:
Tools.setTool(int)

setTool

public void setTool(int tool)
Description copied from interface: Tools
Sets the currently selected tool.

Specified by:
setTool in interface Tools
Parameters:
tool - the new selected tool.
See Also:
Tools.getTool()

getBindInterface

public Interface getBindInterface()
Description copied from interface: Tools
Returns the client interface that will be bound by the Tools.BIND tool.

Specified by:
getBindInterface in interface Tools
Returns:
the client interface that will be bound by the Tools.BIND tool.
See Also:
Tools.setBindInterface(org.objectweb.fractal.gui.model.Interface)

setBindInterface

public void setBindInterface(Interface i)
Description copied from interface: Tools
Sets the client interface that will be bound by the Tools.BIND tool.

Specified by:
setBindInterface in interface Tools
Parameters:
i - the client interface that will be bound by the Tools.BIND tool.
See Also:
Tools.getBindInterface()