|
||||||||||
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 java.lang.String |
CONFIGURATION_BINDING
A mandatory client interface bound to a configuration
model. |
static java.lang.String |
GRAPH_BINDING
A mandatory client interface bound to a graph model. |
static java.lang.String |
SELECTION_BINDING
A mandatory client interface bound to a selection model. |
static java.lang.String |
TOOLS_BINDING
A mandatory client interface bound to a tools model. |
Constructor Summary | |
SelectTool()
Constructs a new SelectTool 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 |
mouseDragged(java.awt.event.MouseEvent e)
Notifies this listener that the mouse has been dragged in the graph view. |
void |
mouseMoved(java.awt.event.MouseEvent e,
ComponentPart p)
Notifies this listener that the mouse has mouved in the graph view. |
void |
mousePressed(java.awt.event.MouseEvent e,
ComponentPart p)
Notifies this listener that the mouse has been pressed. |
void |
mouseReleased(java.awt.event.MouseEvent e,
ComponentPart p)
Notifies this listener that the mouse has been released. |
void |
unbindFc(java.lang.String clientItfName)
|
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 java.lang.String TOOLS_BINDING
tools
model. This
model is used to know if this tool is the currently selected tool or not.
public static final java.lang.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 java.lang.String GRAPH_BINDING
graph
model.
This is the graph model that is used to move and resize the components.
public static final java.lang.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 java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.Object lookupFc(java.lang.String clientItfName)
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
bindFc
in interface org.objectweb.fractal.api.control.BindingController
public void unbindFc(java.lang.String clientItfName)
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
public void viewChanged()
GraphViewListener
viewChanged
in interface GraphViewListener
viewChanged
in class EmptyGraphViewListener
public void mousePressed(java.awt.event.MouseEvent e, ComponentPart p)
GraphViewListener
mousePressed
in interface GraphViewListener
mousePressed
in class EmptyGraphViewListener
public void mouseReleased(java.awt.event.MouseEvent e, ComponentPart p)
GraphViewListener
mouseReleased
in interface GraphViewListener
mouseReleased
in class EmptyGraphViewListener
public void mouseClicked(java.awt.event.MouseEvent e, ComponentPart p)
GraphViewListener
mouseClicked
in interface GraphViewListener
mouseClicked
in class EmptyGraphViewListener
public void mouseDragged(java.awt.event.MouseEvent e)
GraphViewListener
mouseDragged
in interface GraphViewListener
mouseDragged
in class EmptyGraphViewListener
public void mouseMoved(java.awt.event.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 |