|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.gui.graph.control.EmptyGraphViewListener
org.objectweb.fractal.gui.graph.control.ZoomTool
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 String |
DISPLAY_BINDING
A mandatory client interface bound to a display model. |
static String |
TOOLS_BINDING
A mandatory client interface bound to a tools model. |
Constructor Summary | |
ZoomTool()
Constructs a new ZoomTool 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 |
mouseMoved(MouseEvent e,
ComponentPart p)
Notifies this listener that the mouse has mouved in the graph view. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
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 |
public static final String TOOLS_BINDING
tools
model. This
model is used to know if this tool is the currently selected tool or not.
public static final String DISPLAY_BINDING
display
model. This
model is modified by this controller component when the mouse is clicked.
Constructor Detail |
public ZoomTool()
ZoomTool
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 void mouseClicked(MouseEvent e, ComponentPart p)
GraphViewListener
mouseClicked
in interface GraphViewListener
mouseClicked
in class EmptyGraphViewListener
public void mouseMoved(MouseEvent e, ComponentPart p)
GraphViewListener
mouseMoved
in interface GraphViewListener
mouseMoved
in class EmptyGraphViewListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |