|
||||||||||
| 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.SelectTool
A controller component to select, move and resize components. This controller component modifies a graph model, in reaction to events emited by a graph view.
| Field Summary | |
static String |
CONFIGURATION_BINDING
A mandatory client interface bound to a configuration
model. |
static String |
GRAPH_BINDING
A mandatory client interface bound to a graph model. |
static String |
SELECTION_BINDING
A mandatory client interface bound to a selection model. |
static String |
TOOLS_BINDING
A mandatory client interface bound to a tools model. |
| Constructor Summary | |
SelectTool()
Constructs a new SelectTool 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 |
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 org.objectweb.fractal.gui.graph.control.EmptyGraphViewListener |
mouseEntered, mouseExited |
| 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 CONFIGURATION_BINDING
configuration
model. When the user double clicks on a componnt, this tools changes the
root component of this configuration to the previous component.
public static final String GRAPH_BINDING
graph model.
This is the graph model that is used to move and resize the components.
public static final String SELECTION_BINDING
selection model.
This model is used to select components or interfaces, or to know the
component that must be moved or resized.
| Constructor Detail |
public SelectTool()
SelectTool component.
| Method Detail |
public String[] listFc()
BindingController
listFc in interface BindingControllerpublic Object lookupFc(String clientItfName)
BindingControllerbindFc).
lookupFc in interface BindingControllerclientItfName - 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 BindingControllerclientItfName - 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 BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.public void viewChanged()
GraphViewListener
viewChanged in interface GraphViewListenerviewChanged in class EmptyGraphViewListener
public void mousePressed(MouseEvent e,
ComponentPart p)
GraphViewListener
mousePressed in interface GraphViewListenermousePressed in class EmptyGraphViewListener
public void mouseReleased(MouseEvent e,
ComponentPart p)
GraphViewListener
mouseReleased in interface GraphViewListenermouseReleased in class EmptyGraphViewListener
public void mouseClicked(MouseEvent e,
ComponentPart p)
GraphViewListener
mouseClicked in interface GraphViewListenermouseClicked in class EmptyGraphViewListenerpublic void mouseDragged(MouseEvent e)
GraphViewListener
mouseDragged in interface GraphViewListenermouseDragged in class EmptyGraphViewListener
public void mouseMoved(MouseEvent e,
ComponentPart p)
GraphViewListener
mouseMoved in interface GraphViewListenermouseMoved in class EmptyGraphViewListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||