|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.gui.graph.model.BasicTools
Basic implementation of the Tools
interface.
Field Summary | |
static 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(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
Interface |
getBindInterface()
Returns the client interface that will be bound by the Tools.BIND tool. |
int |
getTool()
Returns the currently selected tool. |
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 |
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(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TOOLS_LISTENERS_BINDING
listeners
of this model.
Constructor Detail |
public BasicTools()
BasicTools
component.
Method Detail |
public String[] listFc()
BindingController
listFc
in interface BindingController
public Object lookupFc(String clientItfName)
BindingController
bindFc
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName, Object serverItf)
BindingController
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.public int getTool()
Tools
getTool
in interface Tools
Tools.setTool(int)
public void setTool(int tool)
Tools
setTool
in interface Tools
tool
- the new selected tool.Tools.getTool()
public Interface getBindInterface()
Tools
Tools.BIND
tool.
getBindInterface
in interface Tools
Tools.BIND
tool.Tools.setBindInterface(org.objectweb.fractal.gui.model.Interface)
public void setBindInterface(Interface i)
Tools
Tools.BIND
tool.
setBindInterface
in interface Tools
i
- the client interface that will be bound by the Tools.BIND
tool.Tools.getBindInterface()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |